Example #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)
Example #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)
Example #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)
Example #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)]))
Example #5
0
 def stopSeleniumServer(self):
     Executor.execute(Command(["kill", "-9", "%s" % self.selenium_pid]))
Example #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)
Example #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)]))
Example #8
0
 def stopSeleniumServer(self):
     Executor.execute(Command(["kill", "-9", "%s" % self.selenium_pid]))