def test_s_6(): driver = login() time.sleep(0.5) check_enty(driver) time.sleep(0.5) name = create_group(driver) time.sleep(0.5) result = check_for_a_single_group_with_a_similar_name(driver, name) if result == 'ERROR': driver.close() assert 0, 'Не смог найти созданную группу' time.sleep(0.5) delete_first_groop(driver) time.sleep(0.5) result = check_for_a_single_group_with_a_similar_name(driver, name) if result != 'ERROR': driver.close() assert 0, 'Группа не удалилась' driver.close()
def test_10(): driver = login_page.login() time.sleep(0.5) login_page.check_enty(driver) time.sleep(1) arrived_at_the_warehouse_no_sorting.check_menu(driver) number = '11-1111-1112' time.sleep(0.5) arrived_at_the_warehouse_no_sorting.enter_object_number(driver, number) time.sleep(0.5) result = arrived_at_the_warehouse_no_sorting.check_error(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close() assert result == 'Номер объекта не валидный: 11-1111-1112', 'Система вернула другую ошибку'
def test_s_9(): driver = login() time.sleep(0.5) check_enty(driver) time.sleep(0.5) check_menu(driver) number = '11-1111-1111' time.sleep(0.5) enter_object_number(driver, number) time.sleep(0.5) result = check_element_11_1111_1111(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close() assert result == number, 'Накладная 11-1111-1111 не была добавлена'
def test_s_11(): driver = login() time.sleep(0.5) check_enty(driver) time.sleep(0.5) check_menu(driver) number = '0012345666' time.sleep(0.5) enter_object_number(driver, number) time.sleep(0.5) result = check_error(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close() assert result == 'Марка не привязана', 'Система вернула другую ошибку'
def test_s_10(): driver = login() time.sleep(0.5) check_enty(driver) time.sleep(0.5) check_menu(driver) number = '11-1111-1112' time.sleep(0.5) enter_object_number(driver, number) time.sleep(0.5) result = check_error(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close() assert result == 'Номер объекта не валидный: 11-1111-1112', 'Система вернула другую ошибку'
def test_9(): driver = login_page.login() time.sleep(0.5) login_page.check_enty(driver) time.sleep(0.5) arrived_at_the_warehouse_no_sorting.check_menu(driver) number = '11-1111-1111' time.sleep(0.5) arrived_at_the_warehouse_no_sorting.enter_object_number(driver, number) time.sleep(0.5) result = arrived_at_the_warehouse_no_sorting.check_element_11_1111_1111(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close() assert result == number, 'Накладная 11-1111-1111 не была добавлена'
def test_11(): driver = login_page.login() time.sleep(0.5) login_page.check_enty(driver) time.sleep(0.5) arrived_at_the_warehouse_no_sorting.check_menu(driver) number = '0012345666' time.sleep(0.5) arrived_at_the_warehouse_no_sorting.enter_object_number(driver, number) time.sleep(0.5) result = arrived_at_the_warehouse_no_sorting.check_error(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close() assert result == 'Марка не привязана', 'Система вернула другую ошибку'
def test_s_1(): driver = login() time.sleep(0.5) check_enty(driver) driver.close()
def test_1(): driver = login_page.login() time.sleep(0.5) login_page.check_enty(driver) driver.close()
def test_s_5(): driver = login() time.sleep(0.5) check_enty(driver) time.sleep(0.5) editing_user_groups_button(driver) driver.close()
def test_5(): driver = login_page.login() time.sleep(0.5) login_page.check_enty(driver) time.sleep(0.5) service_menu.editing_user_groups_button(driver) driver.close()
def test_s_8(): driver = login() time.sleep(0.5) check_enty(driver) time.sleep(0.5) check_menu(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close()
def test_8(): driver = login_page.login() time.sleep(0.5) login_page.check_enty(driver) time.sleep(0.5) arrived_at_the_warehouse_no_sorting.check_menu(driver) driver.close() driver.switch_to.window(driver.window_handles[0]) driver.close()