mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	Merge pull request #314 from marcbonnici/skype
SkypeWorkload: Workload Fixes
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -126,16 +126,18 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|         waitObject(search, 10); |         waitObject(search, 10); | ||||||
|         search.setText(name); |         search.setText(name); | ||||||
|  |  | ||||||
|         UiObject peopleItem = clickUiObject(BY_TEXT, name, "android.widget.TextView"); |         UiObject peopleItem = new UiObject(new UiSelector().textContains(name) | ||||||
|  |                                            .resourceId(packageID + "people_item_full_name")); | ||||||
|  |         peopleItem.click(); | ||||||
|  |  | ||||||
|         UiObject avatarPresence = |         UiObject search_item_icon = | ||||||
|             new UiObject(new UiSelector().resourceId(packageID + "skype_avatar_presence")); |             new UiObject(new UiSelector().resourceId(packageID + "search_item_icon")); | ||||||
|  |  | ||||||
|         UiObject confirm = |         UiObject confirm = | ||||||
|             new UiObject(new UiSelector().resourceId(packageID + "fab")); |             new UiObject(new UiSelector().resourceId(packageID + "fab")); | ||||||
|  |  | ||||||
|         // On some devices two clicks are needed to select a contact. |         // On some devices two clicks are needed to select a contact. | ||||||
|         if (!avatarPresence.waitUntilGone(uiAutoTimeout)) { |         if (!search_item_icon.waitUntilGone(uiAutoTimeout)) { | ||||||
|             if (!sharingResource || !confirm.exists()) { |             if (!sharingResource || !confirm.exists()) { | ||||||
|                 peopleItem.click(); |                 peopleItem.click(); | ||||||
|             } |             } | ||||||
| @@ -205,7 +207,9 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|         // Hang up the call and log how long that takes |         // Hang up the call and log how long that takes | ||||||
|         logger = new ActionLogger(testTag + "_stop", parameters); |         logger = new ActionLogger(testTag + "_stop", parameters); | ||||||
|         logger.start(); |         logger.start(); | ||||||
|         tryButton(endButton, 500); |         if (!(tryButton(endButton, 500))){ | ||||||
|  |             throw new UiObjectNotFoundException("Could not find end call button on screen."); | ||||||
|  |         } | ||||||
|         logger.stop(); |         logger.stop(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user