def main():
    logging.basicConfig(level=logging.INFO)

    authenticate()
    repos = collect_repos()
    clone_repos(repos)
    browser.quit()
Beispiel #2
0
    def tearDownClass(cls):
        browser.quit()

# For remote test execution

# chrome_options = webdriver.ChromeOptions()
# chrome_options.add_argument("--disable-notifications")
# chrome_options.add_argument("--enable-automation")
# chrome_options.add_argument("--start-maximized")
#
# driver = webdriver.Remote(
#     command_executor='http://127.0.0.0.1:4444/wd/hub',
#     desired_capabilities=desired_cap)
def setup_session(request):
    if not bc.test_session_started:
        print("\n>>> Before Session")
        bc.set_test_session_started()
        configure_driver()
        rerun_controller.add_test_to_listener(request.node.items[-1])

    yield
    print("CHECKING RUNS")
    if rerun_controller.are_reruns_out():
        bc.set_test_session_closed()
        browser.quit()
        print("\n>>> After Session\n")
        print("CLOSING SSH CONNECTION\n")
Beispiel #4
0
def setup(request):

    yield browser
    browser.quit()
Beispiel #5
0
def teardown_module(module):
    browser.quit()
Beispiel #6
0
def setup():
    browser.open_url('https://www.google.com')
    yield
    browser.quit()
 def teardown_module() -> None:
     """ Выход из браузера """
     browser.quit()
Beispiel #8
0
def after_all(context):
    browser.quit()
    print('>>>>AFTER ALL')
Beispiel #9
0
 def fin():
     browser.quit()
Beispiel #10
0
 def tearDown(self):
     SQLHelper.delete_tasks_for_user(self.get_first_test_user())
     SQLHelper.delete_tasks_for_user(self.get_second_test_user())
     browser.quit()