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.
- Integrate to cloud test farm (ex:Amazon test farm or Sourcelabs)
- Send out output report to emailbox
- Integrate to Jenkin or Bamboo
./run.sh
Note: before you run the script, make sure you change the configure for device.