✨ Mobile Automation Testing using Robot Framework with Appium Library & Python ✨
What will be used on this project
Item | Source |
---|---|
Editor | VS Code (https://code.visualstudio.com/download) |
Package Manager | PIP (https://pip.pypa.io/en/stable/getting-started/) |
UI Test Tools | Appium (http://appium.io/docs/en/2.0/quickstart/install) |
Robot Framework with Python (https://robotframework.org/#getting-started) | |
Appium Library (https://github.com/serhatbolsu/robotframework-appiumlibrary) | |
PyYaml (https://pypi.org/project/PyYAML/) | |
Design Pattern | POM or Page Object Model |
Test Reporter | Robot Framework with Python (https://robotframework.org/#getting-started) |
Device | Android 5 and above |
Install VS Code Editor, Python, and PIP
To check whether you already installed Python & PIP
python --version
python -m pip --version
Install Appium v 2.0
npm i -g appium@next
Install Robot Framework
python -m pip install robotframework
Install Appium Library
python3 -m pip install --upgrade robotframework-appiumlibrary
Install PyYAML
python -m pip install pyyaml
👉 Clone this Repository through Terminal or Command Prompt
Open this Automation Project using VS Code Editor
Run the "My Cafe App" APK on Android Emulator or Real device connected with Debugging mode
The APK file available on RobotAppiumTest/apk/MyCafeApp.apk
Run Appium on Terminal or Command Prompt
appium --base-path /wd/hub
On Another Terminal or Command Prompt
Change to Project directory
cd RobotAppiumTest
Run Specific Test Execution on Terminal
robot --outputdir output/ step/test_home.robot
Run All Test Execution on Terminal
robot --outputdir output/ .
Note: Please wait until all test execution finished
✅ Report available on RobotAppiumTest/output/report.html