mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	Androbench: Handle storage permissions prompt.
Updating the workload to handle the storage permissions that present themselves on certain devices.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -43,9 +43,20 @@ public class UiAutomation extends BaseUiAutomation { | ||||
|  | ||||
|     @Test | ||||
|     public void setup() throws Exception { | ||||
|         dismissPermissions(); | ||||
|         dismissAndroidVersionPopup(); | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void dismissPermissions() throws Exception { | ||||
|         UiSelector selector = new UiSelector(); | ||||
|         UiObject cont = mDevice.findObject(selector.textContains("Continue")); | ||||
|  | ||||
|         if (cont.exists()) { | ||||
|             cont.click(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void runWorkload() throws Exception { | ||||
|         runBenchmark(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user