def startDjango(self): self.django_pid = Executor.execute(Command([ "python", os.path.join(self.dir, "manage.py"), "runserver", "127.0.0.1:8888" ]), background=True) time.sleep(1)
def startSeleniumServer(self): # TODO: fix path to selenium.jar self.selenium_pid = Executor.execute(Command([ "java", "-jar", "/Users/fatrix/Downloads/selenium-server-standalone-2.0b3.jar" ]), background=True) time.sleep(10)
def startDjango(self): self.django_pid = Executor.execute(Command(["python", os.path.join(self.dir, "manage.py"), "runserver", "127.0.0.1:8888"]), background=True) time.sleep(1)
def stopDjango(self): Executor.execute(Command(["kill", "-9", "%s" % self.django_pid])) Executor.execute(Command(["kill", "-9", "%s" % str(int(self.django_pid)+1)]))
def stopSeleniumServer(self): Executor.execute(Command(["kill", "-9", "%s" % self.selenium_pid]))
def startSeleniumServer(self): # TODO: fix path to selenium.jar self.selenium_pid = Executor.execute(Command(["java", "-jar", "/Users/fatrix/Downloads/selenium-server-standalone-2.0b3.jar"]), background=True) time.sleep(10)
def stopDjango(self): Executor.execute(Command(["kill", "-9", "%s" % self.django_pid])) Executor.execute( Command(["kill", "-9", "%s" % str(int(self.django_pid) + 1)]))