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

Androbench: Handle storage permissions prompt.

Updating the workload to handle the storage permissions that present themselves on certain devices.
This commit is contained in:
scojac01 2020-03-20 13:44:32 +00:00 committed by Marc Bonnici
parent 9a931f42ee
commit 3be00b296d
2 changed files with 11 additions and 0 deletions

View File

@ -43,9 +43,20 @@ public class UiAutomation extends BaseUiAutomation {
@Test
public void setup() throws Exception {
dismissPermissions();
dismissAndroidVersionPopup();
}
@Test
public void dismissPermissions() throws Exception {
UiSelector selector = new UiSelector();
UiObject cont = mDevice.findObject(selector.textContains("Continue"));
if (cont.exists()) {
cont.click();
}
}
@Test
public void runWorkload() throws Exception {
runBenchmark();