Prerequsite
- Xcode 9.4.1 or later installed on your macOS
- Appium application( installed by GUI/ CMI)
npm install -g appium
- Python - there are many ways to do this but i use brew for mac
brew install python
- Appium-Python-Client
pip install Appium-Python-Client
- pytest
pip install -U pytest
- carthage
brew install carthage
- DEMO IOS Application Find a demo app with source code to work with or build yours. in this case i used the demo app i found at https://www.appcoda.com
To run Code
- Install all the pre-requsite applications
- Copy files in this project
- Go to the /tests/
- Run
pytest test_login.py
Improvements
This is just the basic from the tutorial at https://www.appcoda.com. There a number of things i can add to make this into a proper framework. As i get time and add the improvements i will remove from the list.
- Add a reporting framework ie Allure
- Reorder code in a page object model structure
- Multi ios device screen size support. extend code so it runs on different simulator ios device size
- Optional real device support
- Auto record screenshots of fails
- support for browserstack
Credits
i started this small project based on a tutorial by Lawrence Tan @ https://www.appcoda.com