mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
Merge pull request #413 from jimboatarm/skype-timeoutincrease
Skype: Change timeout value for endcall
This commit is contained in:
commit
1a177dd52f
Binary file not shown.
5
wlauto/workloads/skype/uiauto/app/src/main/java/com/arm/wlauto/uiauto/skype/UiAutomation.java
Normal file → Executable file
5
wlauto/workloads/skype/uiauto/app/src/main/java/com/arm/wlauto/uiauto/skype/UiAutomation.java
Normal file → Executable 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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user