This project has API and app functional testing using BrowserStack and Pytest. It includes both API tests and app automation tests, integrated with BrowserStack.
To isolate dependencies for this project, create and activate a Python virtual environment:
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# For macOS/Linux:
source venv/bin/activate
# For Windows:
venv\Scripts\activateInstall all required Python packages:
pip install -r requirements.txtNote: Add your credentials (username and accesskey) to .yml files
- Change BrowserStack config file:
export BROWSERSTACK_CONFIG_FILE="api_test_config.yml"- Run API Tests:
browserstack-sdk pytest tests/test_api.py- Change BrowserStack config file:
export BROWSERSTACK_CONFIG_FILE="app_automate_config.yml"- Run Automation Tests:
browserstack-sdk pytest tests/test_automation.py