def test_100_Setup(self):
        global venueServer, processManager, venue, venueUrl

        # initialize toolkit and environment
        app = Toolkit.Service().instance()
        app.Initialize("Node_test", sys.argv[:1])
        log = app.GetLog()

        # Start process manager
        processManager = ProcessManager()

        # Find venue server exe
        bin = AGTkConfig.instance().GetBinDir()
        venueserverexe = os.path.join(bin, 'VenueServer.py')

        # Start the venue server
        exe = sys.executable
        opts = [
            venueserverexe,
            '-p',
            str(venueserverport),
        ]
        processManager.StartProcess(exe, opts)

        # Create proxy to the venue server
        venueServer = VenueServerIW('https://localhost:%d/VenueServer' %
                                    (venueserverport, ))

        # Wait for server to become reachable
        print "Wait for venue server..."
        up = 0
        while not up:
            try:
                up = venueServer.IsValid()
                print "up = ", up
                continue
            except:
                print "waiting for venue server..."
                pass
            time.sleep(1)

        venueUrl = venueServer.GetDefaultVenue()
        venue = VenueIW(venueUrl)
OK = 0
WARN = 1
CRITICAL = 2

privateId = None
retval = -1
retstring = ""
enteredFlag = threading.Event()
enteredFlag.clear()
warnFlag = threading.Event()
warnFlag.clear()
runningFlag = threading.Event()
runningFlag.clear()

# initialize app
app = Toolkit.Service()

app.AddCmdLineOption(
    Option("-v",
           "--venueUrl",
           type="string",
           dest="venueUrl",
           default="https://localhost:8000/Venues/default",
           metavar="VENUE_URL",
           help="Set the url of the venue to enter"))
app.AddCmdLineOption(
    Option("-t",
           "--timeout",
           type="int",
           dest="timeout",
           default=10,