Skip to content

Swan9250/python-aqa-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python AQA tests

Проект демонстирует мои навыки автоматизации тестирования на Python. Здесь собраны примеры тестов API/UI/whatever, а также некоторые вспомогательные абстракции.

Стек технологий

  • pytest
  • requests
  • allure
  • selenium
  • sqlalchemy
  • alembic
  • Faker

Simple UI test

from pages.main import MainPage


def test_open_main_page(browser):
    main_page = MainPage(browser)
    browser.get(main_page.URL.human_repr())
    assert main_page.get_header().is_displayed(), "Header is not displayed"
    assert main_page.get_work_area().is_displayed(), "Work area is not displayed"
    assert main_page.get_footer().is_displayed(), "Footer is not displayed"
    assert main_page.get_logo().is_displayed(), "Logo is not displayed"

Simple API test

def test_location_regions(auth_header, endpoints, attach_info):
    with allure.step("Send request to API"):
        response = requests.get(
            url=endpoints.regions(),
            headers=auth_header,
            timeout=DEFAULT_REQUEST_TIMEOUT_S,
        )
    with allure.step("Check Status Code < 400"):
        assert response.ok

    attach_info(response)

Allure report example

Снимок экрана от 2025-09-09 17-06-21

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published