def test(data):
    suite_builder.select_test(data.test)
    actions.click(suite_builder.run_suite_button)
    suite_builder.assert_suite_was_run(data.suite)
    suite_builder.access_suite_execution_from_toast()
    report_execution.wait_until_execution_end()
    report_execution.assert_amount_of_tests(1)
Пример #2
0
def test(data):
    suite_builder.run_suite()
    suite_builder.access_suite_execution_from_toast()
    report_execution.wait_until_execution_end()
    actions.assert_element_text_contains(report_execution.title, 'test reports - simple suite')
    report_execution.assert_amount_of_tests(1)
    report_execution.assert_result_of_test(data.test_name, 'success')
    report_execution.expand_test(data.test_name)
    report_execution.assert_test_detail_row_is_displayed(data.test_name)
    report_execution.assert_general_total_row(columns={'Total Tests': '1', 'Success': '1', 'Failure': '0'})
Пример #3
0
def test(data):
    suite_builder.run_suite()
    suite_builder.access_suite_execution_from_toast()
    report_execution.assert_report_is_running()
    report_execution.wait_until_execution_end()
    report_execution.assert_amount_of_tests(3)
    actions.assert_element_not_displayed(report_execution.main_spinner)
    report_execution.assert_result_of_test('success_test', 'success')
    report_execution.assert_result_of_test('failing_test', 'failure')
    report_execution.assert_result_of_test('error_test', 'error')
    report_execution.assert_general_total_row(columns={
        'Total Tests': '3',
        'Success': '1',
        'Failure': '1',
        'Error': '1'
    })
Пример #4
0
def test(data):
    suite_builder.run_suite()
    suite_builder.access_suite_execution_from_toast()
    report_execution.wait_until_execution_end()
    actions.assert_element_text_contains(
        report_execution.title, 'report execution - {}'.format(data.suite))
    report_execution.assert_amount_of_tests(1)
    assert report_execution.get_test_result(data.success_test,
                                            'test_one') == 'success'
    report_execution.expand_test(data.success_test, 'test_one')
    report_execution.assert_test_detail_row_is_displayed(
        data.success_test, 'test_one')
    report_execution.assert_general_total_row(columns={
        'Total Tests': '1',
        'Success': '1',
        'Failure': '0'
    })