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

Androbench: Updating Versions

Updating the workload to work with version 5.0 of the Androbench application.
This commit is contained in:
scott 2017-10-11 15:22:22 +01:00
parent 0578f26bc7
commit 486c0c6887
2 changed files with 7 additions and 1 deletions

View File

@ -43,7 +43,13 @@ public void runUiAutomation() throws Exception {
sleep(3);
UiObject btn_microbench = mDevice.findObject(selector.textContains("Micro")
.className("android.widget.Button"));
btn_microbench.click();
if (btn_microbench.exists()) {
btn_microbench.click();
} else {
UiObject bench =
mDevice.findObject(new UiSelector().resourceIdMatches("com.andromeda.androbench2:id/btnStartingBenchmarking"));
bench.click();
}
UiObject btn_yes= mDevice.findObject(selector.textContains("Yes")
.className("android.widget.Button"));