def pytest_runtest_teardown(item, nextitem): name, location = get_test_idents(item) art_client.fire_hook('finish_test', test_location=location, test_name=name, slaveid=SLAVEID, ip=appliance_ip_address, grab_result=True) art_client.fire_hook('sanitize', test_location=location, test_name=name, words=words) art_client.fire_hook('ostriz_send', test_location=location, test_name=name, slaveid=SLAVEID, polarion_ids=extract_polarion_ids(item))
def pytest_runtest_teardown(item, nextitem): name, location = get_test_idents(item) app = get_or_create_current_appliance() ip = app.address fire_art_test_hook(item, 'finish_test', slaveid=store.slaveid, ip=ip, wait_for_task=True) fire_art_test_hook(item, 'sanitize', words=words) jenkins_data = { 'build_url': os.environ.get('BUILD_URL'), 'build_number': os.environ.get('BUILD_NUMBER'), 'git_commit': os.environ.get('GIT_COMMIT'), 'job_name': os.environ.get('JOB_NAME') } try: caps = app.browser.widgetastic.selenium.capabilities param_dict = { 'browserName': caps['browserName'], 'browserPlatform': caps['platform'], 'browserVersion': caps['version'] } except Exception as e: logger.error(e) param_dict = None fire_art_test_hook(item, 'ostriz_send', env_params=param_dict, slaveid=store.slaveid, polarion_ids=extract_polarion_ids(item), jenkins=jenkins_data)
def pytest_runtest_teardown(item, nextitem): name, location = get_test_idents(item) app = get_or_create_current_appliance() ip = app.address fire_art_test_hook( item, 'finish_test', slaveid=store.slaveid, ip=ip, wait_for_task=True) fire_art_test_hook(item, 'sanitize', words=words) jenkins_data = { 'build_url': os.environ.get('BUILD_URL'), 'build_number': os.environ.get('BUILD_NUMBER'), 'git_commit': os.environ.get('GIT_COMMIT'), 'job_name': os.environ.get('JOB_NAME') } try: caps = app.browser.widgetastic.selenium.capabilities param_dict = { 'browserName': caps['browserName'], 'browserPlatform': caps['platform'], 'browserVersion': caps['version'] } except Exception as e: logger.error(e) param_dict = None fire_art_test_hook( item, 'ostriz_send', env_params=param_dict, slaveid=store.slaveid, polarion_ids=extract_polarion_ids(item), jenkins=jenkins_data)
def pytest_runtest_teardown(item, nextitem): name, location = get_test_idents(item) ip = urlparse(env['base_url']).netloc fire_art_test_hook(item, 'finish_test', slaveid=store.slaveid, ip=ip, grab_result=True) fire_art_test_hook(item, 'sanitize', words=words) jenkins_data = { 'build_url': os.environ.get('BUILD_URL', None), 'build_number': os.environ.get('BUILD_NUMBER', None), 'git_commit': os.environ.get('GIT_COMMIT', None), 'job_name': os.environ.get('JOB_NAME', None) } fire_art_test_hook(item, 'ostriz_send', slaveid=store.slaveid, polarion_ids=extract_polarion_ids(item), jenkins=jenkins_data)