mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	Skype: Change timeout value for endcall
New override function added which uses uiAutoTimeout if no timeout value has been specified. Checking against the endcall button now uses this method. Tested on a Huawei Mate 8 Device with just core 0 enabled (slowing it down enough that the previous timeout of 0.5s caused the workload to fail)
This commit is contained in:
		
							
								
								
									
										5
									
								
								wlauto/workloads/skype/uiauto/app/src/main/java/com/arm/wlauto/uiauto/skype/UiAutomation.java
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										5
									
								
								wlauto/workloads/skype/uiauto/app/src/main/java/com/arm/wlauto/uiauto/skype/UiAutomation.java
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -257,12 +257,15 @@ public class UiAutomation extends UxPerfUiAutomation implements ApplaunchInterfa | ||||
|         // Hang up the call and log how long that takes | ||||
|         logger = new ActionLogger(testTag + "_stop", parameters); | ||||
|         logger.start(); | ||||
|         if (!(tryButton(endButton, 500))){ | ||||
|         if (!(tryButton(endButton))){ | ||||
|             throw new UiObjectNotFoundException("Could not find end call button on screen."); | ||||
|         } | ||||
|         logger.stop(); | ||||
|     } | ||||
|  | ||||
|     private boolean tryButton(UiObject button) throws Exception { | ||||
|         return tryButton(button, uiAutoTimeout); | ||||
|     } | ||||
|     private boolean tryButton(UiObject button, long timeout) throws Exception { | ||||
|         if (button.waitForExists(timeout)) { | ||||
|             button.click(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user