def testNonBlocking(): # controllers = ctrl.setupControllers(False, True, True) p = helpers.findPort() server = helpers.MyWSGIRefServer(host="localhost", port=p) server.quiet = True print server.port brewme = webctrl.runbrew(helpers.timerCtrl(), helpers.getSimpleBSMX(), server) brewme.startNonBlocking() print "up and running" time.sleep(1) print "time to go" brewme.stop()
def setUp(self): p = helpers.findPort() server = webctrl.myserver.myserver(host="localhost", port=p) server.quiet = True self.brewme = webctrl.runbrew( helpers.timerCtrl(), helpers.getSimpleBSMX(), server) self.brewme.startNonBlocking() print "up and running" # Comment out next two lines to see firefox on local display self.vdisplay = Xvfb(width=1280, height=720) self.vdisplay.start() self.driver = webdriver.Firefox() self.driver.implicitly_wait(30) self.base_url = "http://localhost:%i" % p self.verificationErrors = [] self.accept_next_alert = True