mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-14 06:40:52 +01: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:
parent
1168c1ada8
commit
4010618631
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
|
// 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user