Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def stopDjango(self):
     Executor.execute(Command(["kill", "-9", "%s" % self.django_pid]))
     Executor.execute(Command(["kill", "-9", "%s" % str(int(self.django_pid)+1)]))
Exemplo n.º 5
0
 def stopSeleniumServer(self):
     Executor.execute(Command(["kill", "-9", "%s" % self.selenium_pid]))
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 def stopDjango(self):
     Executor.execute(Command(["kill", "-9", "%s" % self.django_pid]))
     Executor.execute(
         Command(["kill", "-9",
                  "%s" % str(int(self.django_pid) + 1)]))
Exemplo n.º 8
0
 def stopSeleniumServer(self):
     Executor.execute(Command(["kill", "-9", "%s" % self.selenium_pid]))