Skip to content

💰 casino game [ mobile mode emulation ] automation

License

Notifications You must be signed in to change notification settings

markuusche/mobile.playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

mobile.playground (casino)

QA Automation Test

Project Dependencies

  • python
  • selenium
  • pytest
  • pyyaml
  • requests
  • faker
  • gspread
  • oauth2client
  • google-api-python-client
  • opencv-python
  • pytesseract
  • pyperclip

Coverage

  • [Mobile]

Pre-requisites

  1. Python 3 (Make sure python is added to your system PATH)
  2. Python Extension (VSCode)
  3. pip
  4. virtualenv
  5. tesseract
  6. creds.json

Setting up first run on your local machine

  1. Clone this project on your local machine

    https://github.com/markuusche/mobile.playground
    
  2. Open a terminal inside your local clone of the repository.

  3. 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

  4. 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
  5. Install the project dependencies.

     pip install -r requirements.txt
  6. 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.