Esempio n. 1
0
 def setUp(self):
     execute("npm install")
     execute(
         location("./node_modules/protractor/bin/webdriver-manager update"))
     prepare_db()
     self.p = Process(target=start_server)
     self.p.start()
Esempio n. 2
0
 def test_run_e2e_tests(self):
     selenium = Process(target=start_selenium)
     selenium.start()
     time.sleep(5)
     result = execute(location("./node_modules/protractor/bin/protractor e2e.conf.js"))
     self.assertTrue(result)
     selenium.terminate()
Esempio n. 3
0
 def test_run_e2e_tests(self):
     selenium = Process(target=start_selenium)
     selenium.start()
     time.sleep(5)
     result = execute(
         location("./node_modules/protractor/bin/protractor e2e.conf.js"))
     self.assertTrue(result)
     selenium.terminate()
Esempio n. 4
0
def start_selenium():
    muterun(location("./node_modules/protractor/bin/webdriver-manager start"))
Esempio n. 5
0
 def test_run_unit_tests(self):
     result = execute(location("./node_modules/karma/bin/karma start"))
Esempio n. 6
0
def start_selenium():
    muterun(location("./node_modules/protractor/bin/webdriver-manager start"))
Esempio n. 7
0
 def test_run_unit_tests(self):
     result = execute(location("./node_modules/karma/bin/karma start"))
Esempio n. 8
0
 def setUp(self):
     execute("npm install")
     execute(location("./node_modules/protractor/bin/webdriver-manager update"))
     prepare_db()
     self.p = Process(target=start_server)
     self.p.start()