TestArchitect and Appium

TestArchitect allows you to run automated tests on real devices in WebDriver based cloud services (Appium enabled).

Restriction:
Screenshot Recording is currently not supported on automated tests in mobile cloud environment. (See here for a detour solution.)

Supported platforms

TestArchitect supports testing mobile web applications on the following platforms:

  • Safari on iOS devices
  • Google Chrome on Android devices

Note:
You can run your automated tests on the supported platforms either remotely from your local host or in a specific cloud service. (See below for details.)

Supported Appium versions

  • Windows: Appium version 1.7.2
  • macOS: Appium version 1.7.2

Running Appium locally

You can run your automated tests as Appium client on your local computer. This is the approach supported by TestArchitect, when you typically would automate mobile web applications on cloud devices in the specific Remote TestKit cloud service. (Learn more.)

Running Appium in cloud

Your automated tests can also be run in cloud. Tests are run against the rented devices as soon as they become available. (Learn more.)

Attention:

Session

Automation in Appium is performed in the context of a session. Clients initiate a session with a server in ways specific to each library, but they all end up sending a POST /session request to the server, with a JSON object called the desired capabilities object. At this point the server will start up the automation session and respond with a session ID which is used for sending further commands.

Note:
In TestArchitect, session ID of the rented mobile cloud device can be retrieved through the connect cloud device and get cloud device session id built-in actions.

Desired capabilities

Desired capabilities are a set of keys and values sent to the Appium server to tell the server what kind of automation session should be starting up (learn more). There are also various capabilities which can modify the behavior of the server during automation.

For example:

  • We might set the platformName capability to iOS to tell Appium that we want an iOS session.
  • Or we might set the browserName capability to Chrome in order to ensure that Google Chrome will be invoked to run automated tests.

Note:
See the Desired Capabilities documentation for the list of capabilities available for Appium.

Along with the capabilities of Appium, some WebDriver based cloud services might have their own set of capabilities.

In TestArchitect, desired capabilities are defined through the assign cloud device built-in action (learn more), or in a JSON file (learn more).

Creating mobile web application test
Explains general workflow to test mobile web applications on iOS and Android cloud devices in WebDriver cloud based services.


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400