Example #1
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('project_two_envs')
    actions.navigate(urls.environments('project_two_envs'))
    environments.set_value('{"foo": {}, "bar": {}}')
    actions.click(environments.save_button)
    api.test.create_access_random_test('project_two_envs')
Example #2
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('test_list')
    common.navigate_menu('Tests')
    data.folder = actions.random_str()
    test_list.add_folder(data.folder)
    actions.refresh_page()
Example #3
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    common.navigate_menu('Project Settings')
    settings.set_settings_value('{"remote_browsers": {"browser001": {}}}')
    actions.click(settings.save_button)
    api.suite.create_access_suite(data.project)
Example #4
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    common.navigate_menu('Tests')
    actions.store('folder', actions.random_str())
    test_list.add_folder(data.folder)
    actions.refresh_page()
Example #5
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('run_suite')
    api.test.create_test('run_suite', 'test_one')
    api.test.create_test('run_suite', 'test_two')
    actions.store('suite_name', actions.random_str())
    api.suite.create_access_suite('run_suite', data.suite_name)
def setup(data):
    data.username1 = actions.random_str()
    data.username2 = actions.random_str()
    utils.create_user(data.username1, '123456')
    utils.create_user(data.username2, '123456')
    common.access_golem(data.env.url, data.env.admin)
    common.navigate_menu('Users')
    users.wait_for_table_to_load()
Example #7
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('report_execution')
    # data.test_name = 'simple_test'
    # utils.create_access_simple_suite('simple_suite01', data.test_name)

    data.success_test = utils.create_success_test(data.project)
    data.suite = api.suite.create_access_suite(data.project,
                                               tests=[data.success_test])
Example #8
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    common.navigate_menu('Tests')
    actions.store('folder_one', 'foo')
    test_list.add_folder(data.folder_one)
    actions.store('folder_two', 'bar.baz')
    test_list.add_folder(data.folder_two)
    actions.refresh_page()
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('report_execution')
    data.success_test = utils.create_success_test(data.project)
    data.error_test = utils.create_error_test(data.project)
    data.failing_test = utils.create_failing_test(data.project)
    # create suite with previous tests
    data.suite = api.suite.create_access_suite(
        data.project,
        tests=[data.success_test, data.error_test, data.failing_test])
Example #10
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('test_list')
    common.navigate_menu('Tests')
    data.folder_one = 'foo'
    test_list.add_folder(data.folder_one)
    data.folder_two = 'bar'
    data.folder_three = actions.random_str()
    data.folder_two_full = '{}.{}'.format(data.folder_two, data.folder_three)
    test_list.add_folder(data.folder_two_full)
    actions.refresh_page()
Example #11
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    api.test.create_access_test(data.project)
Example #12
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('test_list')
    data.test = api.test.create_test(data.project)
    common.navigate_menu('Tests')
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_project_if('test')
    api.test.create_access_random_test('test')
    actions.click(test_builder.code_button)
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('page_builder')
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    common.navigate_menu('Users')
    users.wait_for_table_to_load()
Example #16
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('page_list')
    data.page = api.page.create_page(data.project)
    common.navigate_menu('Pages')
Example #17
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('suite_list')
    common.navigate_menu('Suites')
Example #18
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    create_user.navigate_to_page()
Example #19
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    common.navigate_menu('Tests')
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    api.project.set_environments(data.project, {'foo': {}, 'bar': {}})
    api.test.create_access_test(data.project)
Example #21
0
def setup(data):
    data.user = utils.create_random_user()
    common.access_golem(data.env.url, data.user)
    common.navigate_menu('User Profile')
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('test_reports')
    actions.store('suite_name', 'suite00001')
    utils.create_access_suite_with_different_results(data.suite_name)
Example #23
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('test')
    api.test.create_access_random_test('test')
Example #24
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('suite_builder')
    api.suite.create_access_suite(data.project)
Example #25
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    actions.store('suite', actions.random_str())
    api.suite.create_suite(data.project, data.suite)
    common.navigate_menu('Suites')
Example #26
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    actions.store('test', actions.random_str())
    api.test.create_test(data.project, data.test)
    common.navigate_menu('Tests')
Example #27
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('test_builder')
    api.test.create_access_test(data.project)
Example #28
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('page_list')
    common.navigate_menu('Pages')
    data.folder = actions.random_str()
    page_list.add_folder(data.folder)
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
Example #30
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.using_project('suite_builder')
    data.test_one = api.test.create_test(data.project)
    data.test_two = api.test.create_test(data.project)
    data.suite_name = api.suite.create_access_suite(data.project)