1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

Skype: Change timeout value for endcall

New override function added which uses uiAutoTimeout if no timeout value
has been specified.
Checking against the endcall button now uses this method.

Tested on a Huawei Mate 8 Device with just core 0 enabled (slowing it
down enough that the previous timeout of 0.5s caused the workload to
fail)
This commit is contained in:
Michael McGeagh 2017-06-20 15:01:05 +01:00
parent 1168c1ada8
commit 4010618631
2 changed files with 4 additions and 1 deletions

View File

@ -257,12 +257,15 @@ public class UiAutomation extends UxPerfUiAutomation implements ApplaunchInterfa
// Hang up the call and log how long that takes
logger = new ActionLogger(testTag + "_stop", parameters);
logger.start();
if (!(tryButton(endButton, 500))){
if (!(tryButton(endButton))){
throw new UiObjectNotFoundException("Could not find end call button on screen.");
}
logger.stop();
}
private boolean tryButton(UiObject button) throws Exception {
return tryButton(button, uiAutoTimeout);
}
private boolean tryButton(UiObject button, long timeout) throws Exception {
if (button.waitForExists(timeout)) {
button.click();