Appium-BDD-python-mobile-app-testing
Appium-BDD-python-mobile-app-testing copied to clipboard
A mobile app automation test framework and scripts based on Appium, python, behave, Allure. Currently supports Android only.
Appium-BDD-python-mobile-app-testing
This is a smoke test for an Android mobile App
Write your own script
- Write feature file : /features/yourown.feature
- Implement the step files: /features/steps/steps.py
- Define page object and action in page files: /pages/android/newpage.py
- If you have some common action on all pages, then add them in: /utils/base_page.py
- The report and screenshot are generated: /reports/report/ Allure test report (http://allure.qatools.ru/)
Tips:
- How to write feature file: Try to use consise words or phrase, avoid use UX words like button or string or text, because that might be changed frequently. Gherkin standard: https://cucumber.io/docs/reference,
- How to implement step function: In step function, we implement the specific operation on the page. Try to reuse existing steps if they are applicable to your new case.
What does the report look like
Final Report:
TODO
- Integrate to cloud test farm (ex:Amazon test farm or Sourcelabs)
- Send out output report to emailbox
- Integrate to Jenkin or Bamboo
How to run this script
./run.sh
Note: before you run the script, make sure you change the configure for device.