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)
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())
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)
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()
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): 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()
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): 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)
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)
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)
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)
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)
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'))
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')
def setup(data): project.using_project('general') actions.store('user', user_factory.create_user_if('general__read-only'))
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)
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')
def setup(data): actions.store('user', utils.create_random_user()) common.access_golem(data.env.url, data.user) common.navigate_menu('User Profile')
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')
def test(data): actions.store('a key', 'a value') assert execution.data['a key'] == 'a value'
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)
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')
def setup(data): project.using_project('general') actions.store('dir', actions.random_str()) project.create_suite_directory(data.project, data.dir)
def test(data): actions.store('a', 'b') assert actions.get_data().foo == data.foo assert actions.get_data().a == 'b'
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())
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'] == []
def setup(data): actions.store('username', actions.random_str()) users.create_new_user(data.username, '123456', '*****@*****.**')
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)
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')
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)