Skip to main content

GetLastCommandResultMap

Description

Use this command to retrieve information on the last command executed.

KeyTypeDescription
packageStringPackage name of last installed app
positionElement position (upper left corner of the element)
WinTitleActive device the action was made on
statusBooleanIf the command succeeded
dtimeTime of a command execution
widthElement width
heightElement height
clickClick coordinates on click elements
img.heightReport image height
img.widthReport image width
screen.heightScreen height
screen.widthScreen width
logLineStringCommand summary
outFileStringReport image path
timeTime from command to operation
bcolor.nameBackground color name (TEXT Zone only)
bcolorBackground color value (TEXT Zone only)
colorText color value (TEXT Zone only)
color.nameText color name (TEXT Zone only)
font.sizeFont size (TEXT Zone only)
stepIndex of command step in the test
foundBooleanWhether the element was found
keysWhen command fails to execute
errorMessageStringError indication
exceptionStringException stack trace (optional)

Usage

info

Replace <server> with the appropriate URL.

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());