GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ifram333/mobile-testing-python: This project contains a template for mobile testing using Python and Appium.

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
apps
apps
 
 
features
features
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
behave.ini
behave.ini
 
 
requirements.txt
requirements.txt
 
 
rerun.sh
rerun.sh
 
 
run.sh
run.sh
 
 

Repository files navigation

Testing Mobile Template PY

This project contains a template for mobile test automation.

Project technologies

The project is developed with the Python programming language and the Appium mobile automation framework.

  • Python 3.11.6

  • Appium Server 2.1.3

  • PIP 23.3.1

The following are the dependencies of the project:

Dependency Version
Allure Behave 2.13.2
Allure Python Commons 2.13.2
Appium Python Client 3.1.0
Behave 1.2.6
Selenium 4.14.0

Project structure

testing-mobile-template
│ behave.ini
│ run.sh
│ requirements.txt  
└─apps
| | *.apk
| | *.app
| | *.ipa
└─features
| | _*.feature
| | environment.py
| └─pages
| | | base_page.py
| | └─android
| | | | *_page.py
| | └─ios
| | | | *_page.py
| └─steps
|   | base_steps.py
|   | click_steps.py
|   | compound_steps.py
|   | send_keys_steps.py
|   | swipe_steps.py
|   | validation_steps.py
└─utils
| | mobile_capabilities.py
| | mobile_driver.py

Setting up the project before execution

The mobile_capabilities.py file located in the /utils path must be modified, adding the capabilities for each device used for testing.

ios-simulator: {
  "platformName": "iOS",
  "platformVersion": "16.1",
  "automationName": "XCUITest",
  "deviceName": "iPhone 14"
}

ios-real: {
  "platformName": "iOS",
  "platformVersion": "15.4",
  "automationName": "XCUITest",
  "deviceName": "iPhone XS Max",
  "udid": "XXXXXXXX-XXXXXXXXXXXXXXXX",
  "xcodeOrgId": "XXXXXXXXXX",
  "xcodeSigningId": "iPhone Developer"
}

android-simulator: {
  "platformName": "Android",
  "appium:avd": "Android_8",
  "automationName": "UiAutomator2",
  "appium:deviceName": "Android_8"
}

android-real: {
  "platformName": "Android",
  "automationName": "UiAutomator2",
  "appium:deviceName": "XXXXXXXXX"
}

Executing the project

The project is executed by running the run.sh file in Terminal.

> /run.sh

Or by running the following command in Terminal

behave -f allure -o ./reports/report/ ./features/

Generating report

By default, the allure report folder will be generated in the ROOT_DIR/reports/report path.

If you want to change the report path, modify the ./reports/report line in the run.sh file or the behave command.

About

This project contains a template for mobile testing using Python and Appium.

Topics

android-testingappium-androidappium-iosappium-testingappium-testsios-testingmobile-testmobile-testingpythonpython-appiumpython-appium-frameworkpython3

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.