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:
parent
9a931f42ee
commit
3be00b296d
Binary file not shown.
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user