Skip to content

A python mobile automation testing framework for on-premises CI/CD flow

Notifications You must be signed in to change notification settings

TachunLin/pytestAllure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Mobile Automation Testing Framework


A python mobile automation testing framework based on Appium, Pytest and Allure


Framework Dependencies

  • Appium 1.7 above
  • Python 3.5.2
  • Pytest 1.7.10
  • Allure Framework 1.x

Features

  1. Automated trigger and close server

  2. Command line trigger with on-demand argument

  3. Display execution log and save in file

  4. Generate clear HTML test report

    image

  5. Attached failure screenshot and log on test report

    image

  6. Reusable page object and common library

  7. Support parallel testing (Android)

    image


Prerequisite and Required Package


Trigger Testing

  1. Launch emulator or connect real device

  2. Run command in terminal

    pytest -v -s --device [deviceName] [test file] --tb=short --alluredir report

    ex. pytest -v -s --device AVD6.0 API_Demos.py --tb=short --alluredir report

    This will connect to Android 6.0 emulator then trigger test script, generate test result in repport folder

  3. Generate Allure test report

    allure generate report/ -o report/html

    This will generate test report in your project report/html folder


Open test report

  1. If you are using Pycharm, you can right click html/index.html to open it in browser

  2. You can also change to report folder in terminal and run command

    allure report open --report-dir ./html


Contact me at

Blog: http://blog.autoruby.com/
Email: davidtclin58@gmail.com
Linkedin: https://www.linkedin.com/in/davidtclin/

About

A python mobile automation testing framework for on-premises CI/CD flow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published