GetDeviceProperty
Description
This command can be used retrieve device properties.
Parameters
Name | Value | Description |
---|---|---|
Property Name | Property | Set of name of the properties whose values can be queried |
Supported Properties
Property | String | Comments |
---|---|---|
Name | device.name | Name of the device |
Serial Number | device.sn | Serial number of the device |
OS | device.os | iOS or Android |
Version | os.version | full os version |
Manufacture | device.manufacture | Device Manufacture |
Model | device.model | Device Model |
Model Name | device.modelname | Device Model Name |
Time | device.time | Device Time |
Remote | device.remote | Is the device on a remote machine? (True/False) |
Device screen size | device.screensize | Screen Size of Device |
Host | device.host | The IP and port of the host machine (127.0.0.1 or USB for local devices) |
Category | device.category | Phone or Tablet |
Application Bundle Version | app.CFBundleVersion | Only for iOS devices, for instrumented applications - released and unreleased versions |
Application Bundle Short Version | app.CFBundleShortVersionString | Only for iOS devices, for instrumented applications |
Application version | app.version | In iOS - only for instrumented applications |
Instrumentation version | instrumentation.version | Only for iOS devices, for instrumented applications |
Orientation | orientation | Landscape or Portrait |
Instrumentation log level | ios.instrumentation.log.level | Only for iOS devices, for instrumented applications |
Usage
Command can be used to get the property of the device using the property name.
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
GetProperty
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
...
...
// this command gets the given property
seetest.getDeviceProperty("device.name");s