Shopping automation
pytest
pyyaml
selenium==4.13.00
Faker
- Sign up
- Women Category Shopping
- Men Category Shopping
- Kids Category Shopping
- Checkout
- Payment
- Python 3 (Make sure python is added to your system PATH)
- Python Extension (VSCode)
- pip
- virtualenv
-
Clone this project on your local machine
https://github.com/markuusche/shopping-pytest
-
Open a terminal inside your local clone of the repository.
-
Using python's virtualenv, create a virtual environment inside the project.
Install:pip install virtualenv
Create a virtual environment:
virtualenv venv
where venv is the name of the virtual environment you are creating. It is also recommended to use venv as the name of your virtual environment cause this is the recognized file exception on our
.gitignore
-
Activate the virtualenv you just created.
- Windows CMD
venv\Scripts\activate
- Windows Git Bash
source venv/scripts/activate
- Windows Powershell
venv\Scripts\activate.ps1
- MacOS/Linux
source venv/bin/activate
- Windows CMD
-
Install the project dependencies.
pip install -r requirements.txt
Thats it! You have setup your local environment to run test for this project.
Run the script:
pytest -v -rA