This example illustrates how to structure a cross platform Appium test. It makes use of the Page Object design pattern described here: Page Object Tutorial. The tests also make use of the TestObject Suite Setup which allows tests to be run in parallel on multiple devices.
To run the tests on TestObject, you will need to specify the following environment variables:
TESTOBJECT_API_KEY: The API key for the project that you are testingPLATFORM: Either Android or iOS
In addition, you also need to update the value for testObjectSuiteId in the @TestObject annotation of the test class.
To run the tests locally, you will only need to specify the PLATFORM environment variable and set testLocally to true in the @TestObject annotation of the test class.