1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 06:34:13 +00:00

Geekbench: Adding support for Version 5 of Geekbench Corporate

This commit is contained in:
Scott Jackson
2019-09-06 09:18:55 +00:00
committed by Marc Bonnici
parent d3af4e7515
commit 1a15f5c761
3 changed files with 5 additions and 5 deletions

View File

@@ -139,11 +139,11 @@ public class UiAutomation extends BaseUiAutomation {
uiDeviceSwipe(Direction.DOWN, 50);
scrollPage();
String packageName = isCorporate ? "com.primatelabs.geekbench4.corporate"
String packageName = isCorporate ? "com.primatelabs.geekbench.*.corporate"
: "com.primatelabs.geekbench";
UiObject runButton =
mDevice.findObject(new UiSelector().resourceId(packageName + ":id/runCpuBenchmarks")
.className("android.widget.Button"));
mDevice.findObject(new UiSelector().resourceIdMatches(packageName + ":id/runCpuBenchmarks"));
if (!runButton.waitForExists(WAIT_TIMEOUT_5SEC)) {
throw new UiObjectNotFoundException("Could not find Run button");
}