示例#1
0
def test(data):
    actions.click(test_builder.run_button)
    test_run_modal.wait_for_test_to_run()
    test_run_modal.assert_result_log_line(
        0, 'Test execution started: {}'.format(data.test_name))
    test_run_modal.assert_result_log_line(1, 'INFO Browser: chrome')
    test_run_modal.assert_result_log_line(2, 'INFO Test Result: SUCCESS')
    test_run_modal.assert_result('success')
    test_run_modal.assert_result_errors([])
    test_run_modal.assert_result_steps_is_empty()
示例#2
0
def test(data):
    test_builder.add_step_to_test('test', 'fail', params=["'failure message'"])
    actions.click(test_builder.run_button)
    test_run_modal.wait_for_test_to_run()
    test_run_modal.assert_result_log_line(0, 'Test execution started: {}'.format(data.test))
    test_run_modal.assert_result_log_line(1, 'INFO Browser: chrome')
    test_run_modal.assert_result_log_line(2, 'INFO Test started: test')
    test_run_modal.assert_result_log_line(3, 'ERROR AssertionError: failure message')
    test_run_modal.assert_result('failure')
    test_run_modal.assert_result_errors(['AssertionError: failure message'])
    test_run_modal.assert_result_steps(['Failure - AssertionError: failure message'])
示例#3
0
def test(data):
    test_builder.add_action('error', params=["'error message'"])
    actions.click(test_builder.run_button)
    test_run_modal.wait_for_test_to_run()
    test_run_modal.assert_result_log_line(
        0, 'Test execution started: {}'.format(data.test_name))
    test_run_modal.assert_result_log_line(1, 'INFO Browser: chrome')
    test_run_modal.assert_result_log_line(2, 'ERROR error message')
    test_run_modal.assert_result_log_line(3, 'INFO Test Result: ERROR')
    test_run_modal.assert_result('error')
    test_run_modal.assert_result_errors(['error message'])
    test_run_modal.assert_result_steps(['ERROR - error message'])
示例#4
0
def test(data):
    test_builder.add_action('step', params=['unassigned'])
    actions.click(test_builder.run_button)
    test_run_modal.wait_for_test_to_run()
    test_run_modal.assert_result_log_line(
        0, 'Test execution started: {}'.format(data.test_name))
    test_run_modal.assert_result_log_line(1, 'INFO Browser: chrome')
    test_run_modal.assert_result_log_line(
        2, "ERROR NameError: name 'unassigned' is not defined")
    test_run_modal.assert_result('code error')
    test_run_modal.assert_result_errors(
        ["NameError: name 'unassigned' is not defined"])
    test_run_modal.assert_result_steps(
        ["Error - NameError: name 'unassigned' is not defined"])
def test(data):
    test_builder.open_run_configurations_modal()
    actions.click(test_run_config_modal.run_button)
    test_run_modal.assert_result('success')
def test(data):
    actions.click(test_builder_code.run_config_button)
    actions.wait_for_element_displayed(test_run_config_modal.config_modal)
    actions.click(test_run_config_modal.run_button)
    test_run_modal.assert_result('success')
示例#7
0
def test(data):
    actions.click(test_builder_code.run_button)
    test_run_modal.wait_for_test_to_run()
    test_run_modal.assert_result('success')
示例#8
0
def test(data):
    test_list.click_run_test_button(data.test)
    actions.wait_for_element_displayed(test_run_config_modal.config_modal)
    actions.click(test_run_config_modal.run_button)
    test_run_modal.wait_for_test_to_run()
    test_run_modal.assert_result('success')