1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-04-15 15:20:45 +01:00

Merge pull request #413 from jimboatarm/skype-timeoutincrease

Skype: Change timeout value for endcall
This commit is contained in:
setrofim 2017-06-20 15:05:21 +01:00 committed by GitHub
commit 1a177dd52f
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 // Hang up the call and log how long that takes
logger = new ActionLogger(testTag + "_stop", parameters); logger = new ActionLogger(testTag + "_stop", parameters);
logger.start(); logger.start();
if (!(tryButton(endButton, 500))){ if (!(tryButton(endButton))){
throw new UiObjectNotFoundException("Could not find end call button on screen."); throw new UiObjectNotFoundException("Could not find end call button on screen.");
} }
logger.stop(); logger.stop();
} }
private boolean tryButton(UiObject button) throws Exception {
return tryButton(button, uiAutoTimeout);
}
private boolean tryButton(UiObject button, long timeout) throws Exception { private boolean tryButton(UiObject button, long timeout) throws Exception {
if (button.waitForExists(timeout)) { if (button.waitForExists(timeout)) {
button.click(); button.click();