Mobile SUT Information
Use these commands and functions in your SenseTalk scripts to gather information about your Eggplant Functional mobile systems under test (SUTs). See Mobile Commands and Functions by Mobile Device Type for a summary of supported SenseTalk commands, functions, and typetext keywords for different mobile devices.
AppList
Function
This command is not supported by Sauce Labs.
Behavior: The AppList
function returns a list of apps installed on a connected mobile device.
Parameters: None, Simple
, or Full
.
Syntax:
AppList( {listType} )
Returns: When you use the function with no parameter, it returns the list of apps that was most recently retrieved from the connected mobile device (possibly not since the connection was established). When called with a parameter, it requests a refreshed list of apps from the device. This updated list reflects any apps that have been installed or uninstalled since connecting to the device.
Using the Simple
parameter with AppList()
is much the same as using the function with no parameter except it requests an updated list of apps from the device. The returned list might appear something like the following:
(com.sec.android.widgetapp.dualclockdigital,com.blurb.checkout,com.google.android.youtube,com.sec.android.widgetapp.activeapplicationwidget,com.android.chrome,com.sec.android.Kies,com.sec.dsm.system,com.wowwee.mip,com.sec.yosemite.tab,com.sec.esdk.elm)
When you use the Full
parameter, the function requests the updated list and returns a list of property lists, where each installed app includes the following properties:
- appID: An identifier string for the app (i.e., application ID on Android, bundle ID on iOS)
- appName: The name of the app
- canUninstall: true or false, whether the app can be uninstalled
- deviceName: the name of the device where the app is installed
The output when using the Full
parameter might look like this:
((appID:"com.samsung.android.app.ledcoverdream", appName:"com.samsung.android.app.ledcoverdream", canUninstall:"False", deviceName:"SM-G950U1"),(appID:"com.android.cts.priv.ctsshim", appName:"com.android.cts.priv.ctsshim", canUninstall:"False", deviceName:"SM-G950U1"),(appID:"com.gd.mobicore.pa", appName:"com.gd.mobicore.pa", canUninstall:"False", deviceName:"SM-G950U1"))