GetLastCommandResultMap
Description
Use this command to retrieve information on the last command executed.
| Key | Type | Description |
|---|---|---|
| package | String | Package name of last installed app |
| position | Element position (upper left corner of the element) | |
| WinTitle | Active device the action was made on | |
| status | Boolean | If the command succeeded |
| dtime | Time of a command execution | |
| width | Element width | |
| height | Element height | |
| click | Click coordinates on click elements | |
| img.height | Report image height | |
| img.width | Report image width | |
| screen.height | Screen height | |
| screen.width | Screen width | |
| logLine | String | Command summary |
| outFile | String | Report image path |
| time | Time from command to operation | |
| bcolor.name | Background color name (TEXT Zone only) | |
| bcolor | Background color value (TEXT Zone only) | |
| color | Text color value (TEXT Zone only) | |
| color.name | Text color name (TEXT Zone only) | |
| font.size | Font size (TEXT Zone only) | |
| step | Index of command step in the test | |
| found | Boolean | Whether the element was found |
| keys | When command fails to execute | |
| errorMessage | String | Error indication |
| exception | String | Exception stack trace (optional) |
Usage
info
Replace <server> with the appropriate URL.
- Public Digital.ai Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Digital.ai Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Digital.ai Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
Example
GetLastCommandResultMap
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
seetest .getDeviceProperty("device.sn");
// Gets the map of last command i.e deviceProperty of device.sn
System.out.println(seetest.getLastCommandResultMap());