![]() |
T-Plan
Robot Enterprise Plugin Home |
8
November 2019 |
IMPORTANT: This is an outdated document which is
not being maintained any more. For the most recent
instructions and downloads go to: https://docs.t-plan.com/robot/mobile-automation/iosx |
The plugin requires T-Plan Robot 5.0.6 or higher. Download:
To install the plugi:
iosx.jar
file to
the plugins/
directory under the Robot
installation directory. This will make Robot load the classes on
the start up. Make sure to remove any older versions of the
plugin.
Script Name
Description
com.tplan.iosx.ActiveApp
Get bundle ID of the active application.
com.tplan.iosx.Kill
Kill (deactivate) an application.
com.tplan.iosx.Start
Start an application on the iOS device.
com.tplan.iosx.Orientation
Set the screen orientation to portrait or landscape left.
The plugin scripts are to be called from TPR test scripts using
the Run command.
The command instances may be easily created using the Command Wizard
tool. To edit an existing Run command right click it and select Properties
in the context menu.
// Start Safari
Run "com.tplan.iosx.Start" bundleid="com.apple.mobilesafari"
// Retrieve the active app bundle ID to the _IOS_ACTIVE_APP variable and verify that it is Safari
Run "com.tplan.iosx.ActiveApp"
if ("{_IOS_ACTIVE_APP}" != "
com.apple.mobilesafari") {
Exit 1 desc="Safari failed to start!"
}
// Rotate the screen to landscape
Run "com.tplan.iosx.Orientation"
orientation=
"landscape"
// Test code here...
// Deactivate Safari
Run "com.tplan.iosx.Kill" bundleid="com.apple.mobilesafari"