コード例 #1
0
def setup(data):
    project.using_project('general')
    actions.store('dir_one', actions.random_str())
    actions.store('dir_two', '{}.{}'.format(actions.random_str(),
                                            actions.random_str()))
    project.create_test_directory(data.project, data.dir_one)
    project.create_test_directory(data.project, data.dir_two)
コード例 #2
0
def setup(data):
    project.using_project('general')
    data.suite = project.create_random_suite(data.project)
    data.test = project.create_random_test(data.project)
    suite.save_suite(data.project, data.suite, tests=[data.test])
    response = suite.run_suite(data.project, data.suite)
    actions.store('timestamp', response.json())
コード例 #3
0
def setup(data):
    project.using_project('general')
    actions.store('dir', actions.random_str())
    project.create_page_directory(data.project, data.dir)
    data.page_name = actions.random_str()
    actions.store('page_full', '{}.{}'.format(data.dir, data.page_name))
    project.create_page(data.project, data.page_full)
コード例 #4
0
ファイル: rename_folder.py プロジェクト: ATTO-DT/golem-tests
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()
コード例 #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)
コード例 #6
0
def setup(data):
    actions.store('username1', actions.random_str())
    actions.store('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()
コード例 #7
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()
コード例 #8
0
def setup(data):
    project.using_project('general')
    data.suite = project.create_random_suite(data.project)
    data.test_name = project.create_random_test(data.project)
    suite.save_suite(data.project, data.suite, tests=[data.test_name])
    response = suite.run_suite(data.project, data.suite)
    actions.store('timestamp', response.json())
    report.wait_for_execution_to_finish(data.project, data.suite,
                                        data.timestamp)
コード例 #9
0
def test(data):
    actions.store('folder_one', actions.random_str())
    suite_list.add_folder(data.folder_one)
    suite_list.assert_folder_exists(data.folder_one)
    actions.store('folder_two', 'folder1.' + actions.random_str())
    suite_list.add_folder(data.folder_two)
    suite_list.assert_folder_exists(data.folder_two)
    actions.refresh_page()
    suite_list.assert_folder_exists(data.folder_one)
    suite_list.assert_folder_exists(data.folder_two)
コード例 #10
0
def test(data):
    suite_list.dismiss_no_tests_alert_if()
    # to root
    actions.store('suite_one', actions.random_str())
    suite_list.add_suite(data.suite_one)
    suite_list.assert_suite_exists(data.suite_one)
    # to folder
    actions.store('suite_two', 'folder1.' + actions.random_str())
    suite_list.add_suite(data.suite_two)
    suite_list.assert_suite_exists(data.suite_two)
    actions.refresh_page()
    suite_list.assert_suite_exists(data.suite_one)
    suite_list.assert_suite_exists(data.suite_two)
コード例 #11
0
def setup(data):
    project.using_project('general')
    actions.store('dir', actions.random_str())
    actions.store('test_name', actions.random_str())
    actions.store('test', '{}.{}'.format(data.dir, data.test_name))
    project.create_test_directory(data.project, data.dir)
    project.create_test(data.project, data.test)
コード例 #12
0
def setup(data):
    actions.store('project', 'general')
    actions.store('page_one', actions.random_str())
    actions.store('page_two', actions.random_str())
    project.create_project_if(data.project)
    project.create_page(data.project, data.page_one)
    project.create_page(data.project, data.page_two)
コード例 #13
0
def setup(data):
    project.using_project('general')
    data.page = project.create_random_page(data.project)
    actions.store('user', user_factory.create_user_if('general__standard'))
コード例 #14
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')
コード例 #15
0
def setup(data):
    project.using_project('general')
    actions.store('user', user_factory.create_user_if('general__read-only'))
コード例 #16
0
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)
コード例 #17
0
ファイル: access_page.py プロジェクト: ATTO-DT/golem-tests
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    api.project.create_access_random_project()
    actions.store('page', 'page')
    api.page.create_page(data.project, data.page)
    common.navigate_menu('Pages')
コード例 #18
0
def setup(data):
    actions.store('user', utils.create_random_user())
    common.access_golem(data.env.url, data.user)
    common.navigate_menu('User Profile')
コード例 #19
0
def setup(data):
    actions.store('username1', actions.random_str())
    actions.store('username2', actions.random_str())
    users.create_new_user(data.username1, '123456')
    users.create_new_user(data.username2, '123456')
コード例 #20
0
def test(data):
    actions.store('a key', 'a value')
    assert execution.data['a key'] == 'a value'
コード例 #21
0
ファイル: project.py プロジェクト: ATTO-DT/golem-tests
def using_project(project_name, user=None):
    """Create project if it does not exist, store it in data.project"""
    create_project_if(project_name, user)
    actions.store('project', project_name)
コード例 #22
0
ファイル: select_tests.py プロジェクト: ATTO-DT/golem-tests
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('suite_builder')
    actions.store('test', actions.random_str())
    api.test.create_test('suite_builder', data.test)
    api.suite.create_access_random_suite('suite_builder')
コード例 #23
0
def setup(data):
    project.using_project('general')
    actions.store('dir', actions.random_str())
    project.create_suite_directory(data.project, data.dir)
コード例 #24
0
def test(data):
    actions.store('a', 'b')
    assert actions.get_data().foo == data.foo
    assert actions.get_data().a == 'b'
コード例 #25
0
def setup(data):
    project.using_project('general')
    data.test = project.create_random_test(data.project)
    response = test_.run_test(data.project, data.test)
    actions.store('timestamp', response.json())
コード例 #26
0
def test(data):
    actions.store('new_dir', actions.random_str())
    response = suite.rename_suite_directory(data.project, data.dir,
                                            data.new_dir)
    assert response.status_code == 200
    assert response.json()['errors'] == []
コード例 #27
0
def setup(data):
    actions.store('username', actions.random_str())
    users.create_new_user(data.username, '123456', '*****@*****.**')
コード例 #28
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('test_reports')
    actions.store('test_name', 'simple_test')
    utils.create_access_simple_suite('simple_suite01', data.test_name)
コード例 #29
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')
コード例 #30
0
def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    index.create_access_project('test')
    actions.store('test_name', actions.random_str())
    api.test.create_access_test('test', data.test_name)