Simplify Mobile Automation Test
- Easy to write automated test of mobile app
- Support Android and Ios
- Human readable
- Enable Visual testing (soon)
- Run command
pipenv install
to install required libraries inside python virtual environment (pipenv) - Run command
cp .env.sample .env
to create new config, edit the keys with your desired app info - Spawn appium server by running command
appium
* Note if you spawn with specific port, please update list of appium port at methodget_appium_server()
atlibrary/drivers.py
- Run the test by using command
pipenv run pytest tests/pertamax_test.py
- I recommend to install scrcpy to ease monitoring device in computer using mirror device screen share
- To find current activity/package info at android you can use command
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'