Skip to main content

SeeTestAutomation- GetDeviceProperty

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

Description:

This command retrieves the following device properties:

Parameters

  • Property: Desired information (String)

PropertyStringComments
Namedevice.name
Serial Numberdevice.sn
OSdevice.osiOS or Android
Versionos.versionfull os version
Manufacturedevice.manufacture
Modeldevice.model
Model Namedevice.modelname
Timedevice.time
Remotedevice.remoteIs the device on a remote machine? (True/False)
Device screen sizedevice.screensize
Hostdevice.hostThe IP and port of the host machine (127.0.0.1 or USB for local devices)
Categorydevice.categoryPhone or Tablet
Application Bundle Versionapp.CFBundleVersionOnly for iOS devices, for instrumented applications - released and unreleased versions
Application Bundle Short Versionapp.CFBundleShortVersionStringOnly for iOS devices, for instrumented applications
Application versionapp.versionIn iOS - only for instrumented applications
Instrumentation versioninstrumentation.versionOnly for iOS devices, for instrumented applications
OrientationorientationLandscape or Portrait
Instrumentation log levelios.instrumentation.log.levelOnly for iOS devices, for instrumented applications

Example:

Example

client.getDeviceProperty("device.name");
client.getDeviceProperty("device.sn");
client.getDeviceProperty("device.os");
client.getDeviceProperty("os.version");
client.getDeviceProperty("device.manufacture");
client.getDeviceProperty("device.model");
client.getDeviceProperty("device.modelname");
client.getDeviceProperty("device.time");
client.getDeviceProperty("device.remote");
client.getDeviceProperty("device.screensize");
client.getDeviceProperty("device.host");
client.getDeviceProperty("device.category");
client.getDeviceProperty("app.CFBundleShortVersionString");
client.getDeviceProperty("app.CFBundleVersion");
client.getDeviceProperty("app.version");
client.getDeviceProperty("instrumentation.version");
client.getDeviceProperty("orientation");

Android Output

Get device property: device.name
SM-N7505
Get device property: device.sn
32049b2612d2b1b9
Get device property: device.os
ANDROID
Get device property: os.version
5.1.1
Get device property: device.manufacture
samsung
Get device property: device.model
SM-N7505
Get device property: device.modelname
Galaxy Note3 Neo
Get device property: device.time
2018-08-02 14:20:45,639
Get device property: device.remote
false
Get device property: device.screensize
720x1280
Get device property: device.host
127.0.0.1:5037
Get device property: device.category
PHONE
Get device property: app.CFBundleShortVersionString
UNKNOWN
Get device property: app.CFBundleVersion
UNKNOWN
Get device property: app.version
1.0
Get device property: instrumentation.version
UNKNOWN
Get device property: orientation
Portrait

iOS Output

 Get device property: device.name
iPhone 5c
Get device property: device.sn
cbc20b1088c65f4a27dca70b158843f69f249a64
Get device property: device.os
IOS_APP
Get device property: os.version
10.3.3
Get device property: device.manufacture
Apple
Get device property: device.model
iPhone 5c
Get device property: device.modelname
iPhone 5c
Get device property: device.time
2018-08-02 02:24:04
Get device property: device.remote
false
Get device property: device.screensize
640x1136
Get device property: device.host
127.0.0.1:27015
Get device property: device.category
PHONE
Get device property: app.CFBundleShortVersionString
UNKNOWN
Get device property: app.CFBundleVersion
UNKNOWN
Get device property: app.version
UNKNOWN
Get device property: instrumentation.version
UNKNOWN
Get device property: orientation
Portrait
Get device property: ios.instrumentation.log.level
DEBUG