mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 04:18:58 +00:00
PCMark: Removing hard coded index to make the workload more robust
This commit is contained in:
parent
4ce41407e9
commit
e398083f6e
Binary file not shown.
@ -104,14 +104,14 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
installtext.click();;
|
||||
}
|
||||
UiObject installed =
|
||||
mDevice.findObject(new UiSelector().description("RUN")
|
||||
mDevice.findObject(new UiSelector().text("RUN")
|
||||
.className("android.view.View"));
|
||||
installed.waitForExists(360000);
|
||||
installed.waitForExists(180000);
|
||||
if (!installed.exists()){
|
||||
UiObject installedtext =
|
||||
mDevice.findObject(new UiSelector().text("RUN")
|
||||
UiObject installeddesc =
|
||||
mDevice.findObject(new UiSelector().description("RUN")
|
||||
.className("android.view.View"));
|
||||
installedtext.waitForExists(1000);
|
||||
installeddesc.waitForExists(1000);
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
UiObject run =
|
||||
mDevice.findObject(new UiSelector().resourceId("CONTROL_PCMA_WORK_V2_DEFAULT")
|
||||
.className("android.view.View")
|
||||
.childSelector(new UiSelector().index(1)
|
||||
.childSelector(new UiSelector().text("RUN")
|
||||
.className("android.view.View")));
|
||||
if (run.exists()) {
|
||||
run.click();
|
||||
|
Loading…
x
Reference in New Issue
Block a user