mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-20 17:48:44 +00:00
Fix for Skype on particular devices and updated jar files
Some devices issue a pop up to confirm local file access which needs to be handled.
This commit is contained in:
parent
c624979caa
commit
26443f66cc
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -49,6 +49,7 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
|
|
||||||
// Run tests
|
// Run tests
|
||||||
handleLoginScreen(loginName, loginPass);
|
handleLoginScreen(loginName, loginPass);
|
||||||
|
confirmLocalFileAccess();
|
||||||
selectContact(contactName, contactSkypeId);
|
selectContact(contactName, contactSkypeId);
|
||||||
if ("video".equalsIgnoreCase(callType)) {
|
if ("video".equalsIgnoreCase(callType)) {
|
||||||
videoCallTest(callDuration);
|
videoCallTest(callDuration);
|
||||||
@ -76,6 +77,15 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
signinButton.clickAndWaitForNewWindow();
|
signinButton.clickAndWaitForNewWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void confirmLocalFileAccess() throws Exception {
|
||||||
|
// First time run requires confirmation to allow access to local files
|
||||||
|
UiObject allowButton = new UiObject(new UiSelector().textContains("Allow")
|
||||||
|
.className("android.widget.Button"));
|
||||||
|
if (allowButton.waitForExists(timeout)) {
|
||||||
|
allowButton.clickAndWaitForNewWindow(timeout);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void selectContact(String name, String id) throws Exception {
|
private void selectContact(String name, String id) throws Exception {
|
||||||
Timer timer = new Timer();
|
Timer timer = new Timer();
|
||||||
timer.start();
|
timer.start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user