qxf2 / qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
https://qxf2.com
MIT License
256 stars 191 forks source link

Added async API test, non-blocking HTTP methods #421

Closed shivahari closed 3 weeks ago

shivahari commented 1 month ago

Added:

  1. An Async API test that uses TaskGroup to collect and run non-blocking tasks
  2. Non-blocking functions for existing HTTP request functions
  3. Async abstract methods in API_Player

How to run the test:

Run python -m pip install -r requirements.txt to install pytest-async package, this package is needed to run the test function in an event loop Use python -m pytest -k async to run the Async API test

Caveat:

The Async API test can only be run with Python3.11 or higher, a pytest marker is used to skip running tests on Python < 3.11