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

workloads/gfxbench: Fix not detecting missing asset popup

Add check for a differently worded popup informing that assets are
missing.
This commit is contained in:
Marc Bonnici 2018-11-13 11:47:04 +00:00 committed by setrofim
parent ce94638436
commit e40517ab95
2 changed files with 11 additions and 7 deletions

View File

@ -74,14 +74,18 @@ public class UiAutomation extends BaseUiAutomation {
UiObject sync =
mDevice.findObject(new UiSelector().text("Data synchronization")
.className("android.widget.TextView"));
if (sync.exists()){
UiObject data =
mDevice.findObject(new UiSelector().resourceId("android:id/button1")
.className("android.widget.Button"));
data.click();
}
if (!sync.exists()){
sync = mDevice.findObject(new UiSelector().text("Pushed data not found")
.className("android.widget.TextView"));
}
if (sync.exists()){
UiObject data =
mDevice.findObject(new UiSelector().resourceId("android:id/button1")
.className("android.widget.Button"));
data.click();
}
UiObject home =
UiObject home =
mDevice.findObject(new UiSelector().resourceId("net.kishonti.gfxbench.gl.v50000.corporate:id/main_homeBack")
.className("android.widget.LinearLayout"));
home.waitForExists(300000);