Note
It is expected that you cannot run this project without the api base url and its endpoints.
The purpose of this project is to demonstrate that I've developed something for personal use and future reference.
If you have any questions, feel free to contact me through one of my socials on my github profile.
QA Automation Test
python
selenium
pytest
pyyaml
requests
faker
gspread
oauth2client
google-api-python-client
opencv-python
pytesseract
pyperclip
- [Mobile]
- Python 3 (Make sure python is added to your system PATH)
- Python Extension (VSCode)
- pip
- virtualenv
- tesseract
- creds.json
-
Clone this project on your local machine
https://github.com/markuusche/mobile.playground
-
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
-
Create the needed folder for the run:
mkdir -p sreenshots/decoded
mkdir logs
Thats it! You have setup your local environment to run test for this project.
Run the script in visual mode (Recommended)
Important
this command already includes verbosity, stdout & stderr and quiet flags. See pytest.ini
pytest
Run the script in headless mode
pytest --headless
Run the script with a gsreport
Note
all test status will be recorded in the google sheet.
pytest --gsreport
Caution
Be aware that the test script might be flaky sometimes.
Important
If the test case failed on the first run. Re-run the test case base on what the test case that failed.
For ex. the baccarat game failed, you can run this specific test case with:
pytest -k test_baccarat
.
If one or several test case failed, verify or replicate if the test case really failed.