SkillAgentSearch skills...

Appium.POP.Example

Appium Java tests implemented using the Page Object Pattern for XTC usage

Install / Use

/learn @xamarin-automation-service/Appium.POP.Example
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Appium Java Cross-Platform Tests

Note: This is an in-progress example of cross-platform (Android/iOS) Appium Java tests and how to run them in Xamarin Test Cloud. As features become available, this sample will change.

Requirements

  • Appium server
  • Xcode 8
  • IntelliJ
  • Maven (on macOS you can also easily install it with brew install maven)
  • Additional Setup to run on iOS Devices can be found here.

Setting up the test server

From command line

  • Run appium-doctor on command line. Ensure that all checks pass.
  • Run appium to start the server

From Appium desktop app

  • Open app
  • Click start server button

Running the tests locally

From command line

  • Run mvn test -P [platform] from the project directory
    • [platform] should be either android, ios, or ios-simulator depending on which platform you want to run your tests on

From IntelliJ

  • Open the "Maven Projects" tool window
  • Under "Profiles" choose the platform you wish to test on (making sure only one is checked)
    • Should be either android, ios, or ios-simulator
  • Right click on the test(s) that you wish to run and choose "Run"

Uploading the tests to Xamarin Test Cloud

  • Follow these instructions to prepare your tests for Test Cloud.
  • Go to Test Cloud and start a new test run
  • Go through the wizard and then select Appium on the last step
  • Follow the provided instructions to install the CLI and uplaod your tests

Related Skills

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated5y ago
Forks10

Languages

Java

Security Score

60/100

Audited on Apr 1, 2021

No findings