Skip to main content

SeeTest Client - 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)

Properties

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
Device screen propertiesdevice.screen.propertiesOnly for iOS devices.



Using device.screen.properties will return all properties.



If a single property is needed, then device.screen.properties.<property_name> can be used.



Example: device.screen.properties.nativeScale will return only nativeScale property.



Available properties:



* nativeScale

* nativeBounds

* pixelPerInch

* scale
Device phone numberdevice.phoneNumber1
Device second phone numberdevice.phoneNumber2Only for device with dual-SIM

Examples

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");
client.getDeviceProperty("device.screen.properties");
client.getDeviceProperty("device.phoneNumber1");
client.getDeviceProperty("device.phoneNumber2");

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
Get device property: device.screen.properties

Get device property: device.phoneNumber1
97254000000

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
Get device property: device.screen.properties
{"availableDisplays":{"default":{"y":0.0,"x":0.0,"width":375.0,"height":667.0},"zoomed":{"y":0.0,"x":0.0,"width":320.0,"height":568.0}},"displayMode":"default","nativeScale":2.0,"nativeBounds":{"y":0.0,"x":0.0,"width":750.0,"height":1334.0},"pixelPerInch":"326","scale":2.0}
Get device property: device.phoneNumber1
97254000000