mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-07 13:41:24 +00:00
workloads/speedometer: Misc Fixes
- Fix formatting - Skip teardown automation if elements are not present on some devices instead of failing the workload. - Give extra time for start button to appear as some devices can be slow to load.
This commit is contained in:
parent
ba4004db5f
commit
755417f139
Binary file not shown.
@ -79,7 +79,7 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
UiObject start =
|
UiObject start =
|
||||||
mDevice.findObject(new UiSelector().description("Start Test")
|
mDevice.findObject(new UiSelector().description("Start Test")
|
||||||
.className("android.widget.Button"));
|
.className("android.widget.Button"));
|
||||||
if (start.exists()){
|
if (start.waitForExists(2000)){
|
||||||
start.click();
|
start.click();
|
||||||
} else {
|
} else {
|
||||||
UiObject starttext =
|
UiObject starttext =
|
||||||
@ -100,6 +100,9 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
UiObject tabselector =
|
UiObject tabselector =
|
||||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/tab_switcher_button")
|
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/tab_switcher_button")
|
||||||
.className("android.widget.ImageButton"));
|
.className("android.widget.ImageButton"));
|
||||||
|
if (!tabselector.exists()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
tabselector.click();
|
tabselector.click();
|
||||||
UiObject menu =
|
UiObject menu =
|
||||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/menu_button")
|
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/menu_button")
|
||||||
@ -110,4 +113,3 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
closetabs.click();
|
closetabs.click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user