mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
workloads/androbench: Fix extracting benchmark results
On some devices the entire results page fits on one screen and does not present a scrollable element, therefore only attempt to scroll if available.
This commit is contained in:
parent
ea5ea90bb6
commit
87ac9c6ab3
Binary file not shown.
@ -98,17 +98,23 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
|
||||
UiScrollable scrollView = new UiScrollable(new UiSelector().scrollable(true));
|
||||
Log.d(TAG, "Sequential Read Score " + seqRead.getText());
|
||||
scrollView.scrollIntoView(seqWrite);
|
||||
|
||||
if (scrollView.exists()){scrollView.scrollIntoView(seqWrite); }
|
||||
Log.d(TAG, "Sequential Write Score " + seqWrite.getText());
|
||||
scrollView.scrollIntoView(ranRead);
|
||||
|
||||
if (scrollView.exists()){scrollView.scrollIntoView(ranRead);}
|
||||
Log.d(TAG, "Random Read Score " + ranRead.getText());
|
||||
scrollView.scrollIntoView(ranWrite);
|
||||
|
||||
if (scrollView.exists()){scrollView.scrollIntoView(ranWrite);}
|
||||
Log.d(TAG, "Random Write Score " + ranWrite.getText());
|
||||
scrollView.scrollIntoView(sqlInsert);
|
||||
|
||||
if (scrollView.exists()){scrollView.scrollIntoView(sqlInsert);}
|
||||
Log.d(TAG, "SQL Insert Score " + sqlInsert.getText());
|
||||
scrollView.scrollIntoView(sqlUpdate);
|
||||
|
||||
if (scrollView.exists()){scrollView.scrollIntoView(sqlUpdate);}
|
||||
Log.d(TAG, "SQL Update Score " + sqlUpdate.getText());
|
||||
scrollView.scrollIntoView(sqlDelete);
|
||||
|
||||
if (scrollView.exists()){scrollView.scrollIntoView(sqlDelete);}
|
||||
Log.d(TAG, "SQL Delete Score " + sqlDelete.getText());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user