Skip to main content

Appium OSS Supported Commands

SeeTest Client Commands

CommandDocumentationSupported OSComments
installAppInstalliOS



Android
Installs the application with the given package name or bundle ID:



driver.installApp("cloud:com.experitest.ExperiBank/.LoginActivity")



Installs the application with given unique name:



driver.installApp("cloud:unqiueName=app_unique_name")



Installs the application with given release version or build version or both:



driver.installApp("cloud:com.experitest.ExperiBank/.LoginActivity:releaseVersion=1.0")

driver.installApp("cloud:com.experitest.ExperiBank/.LoginActivity:buildVersion=1234")

driver.installApp("cloud:com.experitest.ExperiBank/.LoginActivity:releaseVersion=1.0:buildVersion=1234")



* If several matching applications are found, the latest uploaded application is installed.

* The application is installed in non-instrumented mode (instrument=false).



Android only:



keepData: If true, this upgrades the existing application installed without losing its data.

By default this false.



driver.installApp("cloud:com.experitest.ExperiBank/.LoginActivity:keepData=true")
reportReportiOS



Android
Adds a step to the generated report.



//adds a passed step with message step should be passed

driver.executeScript("seetest:client.report", "step should be passed", "true");



//adds a failed step with the message step should be failed

driver.executeScript("seetest:client.report", "step should be failed","false");
launchWithOptionsLaunch with OptionsiOS



Android
Example for iOS:



JsonObject launchOptions = new JsonObject();

launchOptions.addProperty("relaunch", true);

// Create ENV vars JSON Object to pass to the application so it will run in DEBUG with a secret key

JsonObject envVars = new JsonObject();

envVars.addProperty("secret_key", "DFSF5343543CAA");

envVars.addProperty("DEBUG", true);



launchOptions.add("launch_env",envVars);

driver.executeScript("seetest:client.launch", bundelId, launchOptions.toString());



Example for Android, instrumented launch:



// Library that was used to build JsonObject:

// implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'

JsonObject launchOptions = new JsonObject();

launchOptions.addProperty("relaunch", true);

launchOptions.addProperty("instrumented", true);

String appActivity = "com.experitest.ExperiBank/.LoginActivity";

driver.executeScript("seetest:client.launch", appActivity, launchOptions.toString());



Example for Android , passing multiple options:



// Library that was used to build JsonObject:



<br/><br/>JsonObject launchOptions = new JsonObject(); <br/><br/>launchOptions.addProperty("-D", ""); <br/><br/>launchOptions.addProperty("--es", "environment UAT_4_DIGITAL"); <br/><br/> <br/><br/>JsonArray multipleArgs = new JsonArray(); <br/><br/>multipleArgs.add("enableWebviewDebug true"); <br/><br/>multipleArgs.add("showOAuth true"); <br/><br/>launchOptions.add("--ez", multipleArgs); <br/><br/> <br/><br/>String appActivity = "com.usb.environmentselector/com.usb.settings.view.MainActivity"; <br/><br/>driver.executeScript("seetest:client.launch", appActivity, launchOptions.toString());<br/><br/>
launch (iOS Settings URLs)LaunchiOSJsonObject launchOptions = new JsonObject();



driver.executeScript("seetest:client.launch", "com.apple.Preferences/App-prefs:SAFARI", launchOptions.toString());
setAuthenticationReplySetAuthenticationReply(Reply, Delay) - TouchIDiOS



Android
driver.executeScript("seetest:client.setAuthenticationReply", "AUTHENTICATION_SUCCEEDED", "10000");
simulateCaptureSimulateCaptureiOS



Android
// Simulates a capture. It works only with a URL, not local files

driver.executeScript("seetest:client.simulateCapture", "<FILE_URL>");



// or files uploaded to the cloud through file repository

driver.executeScript("seetest:client.simulateCapture", "cloud:<FILE_UNIQUE_NAME>");
startPerformanceTransactionStartPerformanceTransactioniOS



Android
Starts a performance transaction.



driver.executeScript("seetest:client.startPerformanceTransaction", "Monitor");







Youn need to use endPerformanceTransaction at the end.
startPerformanceTransactionForApplicationStartPerformanceTransactionForApplicationiOS 



Android
Starts a performance transaction.



driver.executeScript("seetest:client.startPerformanceTransactionForApplication", "com.experitest.ExperiBank", "Monitor");



You need to use endPerformanceTransaction at the end.
endPerformanceTransactionEndPerformanceTransactioniOS



Android
driver.executeScript("seetest:client.endPerformanceTransaction", "<Report_Name>");
sendKeysWithBTSendKeysWithBTiOS



Android
driver.executeScript("seetest:client.sendKeysWithBT", "" + Keys.CONTROL+ Keys.ALT + "I");
HybridClearCacheHybridClearCacheiOS



Android
Clears the browser's cache.



To continue with the test in the browser, use driver.context to set the context back to the web.



Usage:



driver.executeScript("seetest:client.hybridClearCache()");
startStepsGroupReport Grouping CommandsiOS



Android
driver.executeScript("seetest:client.startStepsGroup", "<Group_Name">);
stopStepsGroupReport Grouping CommandsiOS



Android
driver.executeScript("seetest:client.stopStepsGroup");
setNetworkConnectionsetNetworkConnectionAndroiddriver.executeScript("seetest:client.setNetworkConnection", "<MODE>", true);
getNetworkConnectionGetNetworkConnectionAndroidGets the network connection for a device.



It executes any of these modes: 



* airplane_mode

* wifi

* mobile_data

* bluetooth



Returns true if the chosen mode is set to On in the device.



driver.executeScript("seetest:client.getNetworkConnection", "<MODE>");
addTestPropertyAddTestPropertyiOS



Android
driver.executeScript("seetest:client.addTestProperty", "<propertyName>", "<propertyValue>");
setLocationPlaybackFileSetLocationiOS



Android
Changes the device location according to a series of location points provided by the Csv file in order to mimic the behavior of a location movement.



* LocationProvider argument is optional, Default value is GPS.

* When using this command, you need to set newCommandTimeout (Timeout Capabilities) capability with a bigger value than the command waiting time (that is set by the WaitForSetLocationEnd command).







driver.executeScript("seetest:client.setLocationPlaybackFile", "cloud:LocationCsvFile", delay, "LocationProvider");
waitForSetLocationEndwaitForSetLocationToEndiOS



Android
Specifies the waiting time for setLocationPlaybackFile.



driver.executeScript("seetest:client.waitForSetLocationEnd", 5000);
setPasscodeSeeTest Client - setPasscodeiOSSets the device passcode.



The passcode is defined by the Cloud administrator. Therefore, the command does not take any parameters.



driver.executeScript("seetest:client.setPasscode");
clearPasscodeSeeTest Client - clearPasscodeiOSClear the passcode from the device. If it fails, it throws an exception.



driver.executeScript("seetest:client.clearPasscode");
setNetworkConditionsSeeTest Client - setNetworkConditionsiOS



Android
Select the profile configured on the Network Virtualization server to test the device under the different network conditions.



driver.executeScript("seetest:client.setNetworkConditions", "Monitor", 60000);
clearLocationSeeTest Client - ClearLocationiOS



Android
Clear the device’s location services.



driver.executeScript("seetest:client.clearLocation");
stopLocationPlaybackSeeTest Client - stopLocationPlaybackiOS



Android
Use this command to search for any active setLocation task on the device and stop it.



driver.executeScript("seetest:client.stopLocationPlayback");
activateVoiceAssistanceSeeTest Client - ActivateVoiceAssistanceiOS



Android
Use this command to activate the voice assistant service on the device (for example, Siri or Google Assistant). It sends the text parameter as if it is a spoken directive.



driver.executeScript("seetest:client.activateVoiceAssistance", "open google");
setGroupStatusReport Grouping CommandsiOS



Android
driver.executeScript("seetest:client.setGroupStatus", "<Status>");
applicationClearDataApplicationClearDataiOS



Android
Use this command to clear the entire application data and cache from the device it is installed on during runtime.



driver.executeScript("seetest:client.applicationClearData","com.experitest.ExperiBank/.LoginActivity");
info

For more supported Continuous Testing Cloud commands for Appium OSS, see Using The File Repository .