mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	Removed surplus back command that was causing AppShare workload to fail
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -31,8 +31,7 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|  |  | ||||||
|     public void runUiAutomation() throws Exception { |     public void runUiAutomation() throws Exception { | ||||||
|         // Override superclass value |         // Override superclass value | ||||||
|         this.uiAutoTimeout = TimeUnit.SECONDS.toMillis(10); |         this.uiAutoTimeout = TimeUnit.SECONDS.toMillis(10);     | ||||||
|          |  | ||||||
|         parameters = getParams(); |         parameters = getParams(); | ||||||
|  |  | ||||||
|         // Setup the three uiautomator classes with the correct information |         // Setup the three uiautomator classes with the correct information | ||||||
| @@ -62,8 +61,7 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|         logIntoSkype(loginName, loginPass); |         logIntoSkype(loginName, loginPass); | ||||||
|         // Skype won't allow us to login and share on first visit so invoke |         // Skype won't allow us to login and share on first visit so invoke | ||||||
|         // once more from googlephotos |         // once more from googlephotos | ||||||
|         pressBack(); |         pressBack();         | ||||||
|         pressBack(); |  | ||||||
|         sendToSkype(contactName); |         sendToSkype(contactName); | ||||||
|  |  | ||||||
|         unsetScreenOrientation(); |         unsetScreenOrientation(); | ||||||
| @@ -78,9 +76,9 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|  |  | ||||||
|     private void sendToGmail(String recipient) throws Exception { |     private void sendToGmail(String recipient) throws Exception { | ||||||
|         String gID = gmail.packageID; |         String gID = gmail.packageID; | ||||||
|  |          | ||||||
|         shareUsingApp("Gmail", "gmail"); |         shareUsingApp("Gmail", "gmail"); | ||||||
|  |          | ||||||
|         gmail.clearFirstRunDialogues(); |         gmail.clearFirstRunDialogues(); | ||||||
|  |  | ||||||
|         UiObject composeView = |         UiObject composeView = | ||||||
| @@ -102,7 +100,7 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|  |  | ||||||
|     private void logIntoSkype(String loginName, String loginPass)  throws Exception { |     private void logIntoSkype(String loginName, String loginPass)  throws Exception { | ||||||
|         shareUsingApp("Skype", "skype_setup"); |         shareUsingApp("Skype", "skype_setup"); | ||||||
|  |          | ||||||
|         skype.handleLoginScreen(loginName, loginPass); |         skype.handleLoginScreen(loginName, loginPass); | ||||||
|  |  | ||||||
|         sleep(10); // Pause while the app settles before returning |         sleep(10); // Pause while the app settles before returning | ||||||
| @@ -110,7 +108,7 @@ public class UiAutomation extends UxPerfUiAutomation { | |||||||
|  |  | ||||||
|     private void sendToSkype(String contactName) throws Exception { |     private void sendToSkype(String contactName) throws Exception { | ||||||
|         shareUsingApp("Skype", "skype"); |         shareUsingApp("Skype", "skype"); | ||||||
|  |          | ||||||
|         skype.searchForContact(contactName); |         skype.searchForContact(contactName); | ||||||
|         skype.dismissUpdatePopupIfPresent(); |         skype.dismissUpdatePopupIfPresent(); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user