1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 22:54:18 +00:00

Add setScreenOrientation to BaseUiAutomation class

This allows workloads to be launched in a pre-determined orientation not the orientation of the physical device itself.

Updated the productivity workloads to take advantage of this new facility.
This commit is contained in:
James Hartley
2016-05-10 13:57:02 +01:00
parent c4bf3c59de
commit e95227175d
9 changed files with 37 additions and 2 deletions

View File

@@ -43,12 +43,14 @@ public class UiAutomation extends UxPerfUiAutomation {
public void runUiAutomation() throws Exception {
parameters = getParams();
setScreenOrientation(ScreenOrientation.NATURAL);
confirmAccess();
dismissWelcomeView();
gesturesTest();
editPhotoColorTest();
cropPhotoTest();
rotatePhotoTest();
unsetScreenOrientation();
writeResultsToFile(timingResults, parameters.getString("output_file"));
}