-
Install and configure Python3
-
Setup your IDE (Preferably Pycharm Community Edition)
-
Import cloned repository as project
-
Install allure plugin for reporting
-
For Windows:
- Run this command in powershell
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
- After installing scoop run this command
scoop install allure
- Run this command in powershell
-
For Mac:
- Run this command on terminal to install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- After installing homebrew run this command
brew install allure
- Run this command on terminal to install homebrew
-
For Linux:
- Run following commands to install the allure on linux
sudo apt-add-repository ppa:qameta/allure sudo apt-get update sudo apt-get install allure
- Run following commands to install the allure on linux
-
-
Install all required packages using this command
pip install -r requirements.txt
-
Add your test case under TestScripts folder
-
Add your test data to TestData_Prod.xslx/ TestData_Staging.xslx file
-
Goto execution_commands.md and select specific command to execute the test case
- Open pycharm terminal (Alt+F12) and run following command to invoke the chrome browser locally on staging environment
py.cleanup -p && py.test --environment=staging --browser=local_chrome --alluredir ExecutionReports/
- Trigger Allure Reports
allure serve ExecutionReports/