1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-31 23:22:14 +00:00

glbenchmark: Updated version numbers from X.X.X to X.X.

Apks contain version number in format X.X therefore when trying to
match for versions using X.X.X the apk is never found.
This commit is contained in:
Marc Bonnici
2016-12-13 14:24:46 +00:00
parent f7e4232eaa
commit e4fdf0bdb9
3 changed files with 10 additions and 10 deletions

View File

@@ -81,7 +81,7 @@ public class UiAutomation extends BaseUiAutomation {
UiObject useCaseText = new UiObject(selector.className("android.widget.TextView")
.text(useCase)
);
if (version.equals("2.7.0")){
if (version.equals("2.7")){
UiObject variantText = useCaseText.getFromParent(selector.className("android.widget.TextView")
.text(variant));
int scrolls = 0;
@@ -94,7 +94,7 @@ public class UiAutomation extends BaseUiAutomation {
}
variantText.click();
}
else if (version.equals("2.5.1")){
else if (version.equals("2.5")){
int scrolls = 0;
while(!useCaseText.exists()) {
testList.scrollForward();
@@ -123,7 +123,7 @@ public class UiAutomation extends BaseUiAutomation {
public void waitForResults(String version, String useCase, int timeout) throws Exception {
UiSelector selector = new UiSelector();
UiObject results = null;
if (version.equals("2.7.0"))
if (version.equals("2.7"))
results = new UiObject(selector.text("Results").className("android.widget.TextView"));
else
results = new UiObject(selector.text(useCase).className("android.widget.TextView"));