mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	UiAutomatorWorkloads: Updated to use the new parameter passing functionality.
Each workload has be modfied to remove the old manual paremeter conversion and instead to retrieve the desired type from the parameter bundle directly.
This commit is contained in:
		| @@ -90,7 +90,7 @@ class Skype(AndroidUxPerfWorkload): | ||||
|         super(Skype, self).validate() | ||||
|         self.uiauto_params['my_id'] = self.login_name | ||||
|         self.uiauto_params['my_pwd'] = self.login_pass | ||||
|         self.uiauto_params['name'] = self.contact_name.replace(' ', '0space0') | ||||
|         self.uiauto_params['name'] = self.contact_name | ||||
|         self.uiauto_params['duration'] = self.duration | ||||
|         self.uiauto_params['action'] = self.action | ||||
|  | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| @@ -45,8 +45,8 @@ public class UiAutomation extends UxPerfUiAutomation implements ApplaunchInterfa | ||||
|  | ||||
|         parameters = getParams(); | ||||
|  | ||||
|         String contactName = parameters.getString("name").replace("0space0", " "); | ||||
|         int callDuration = Integer.parseInt(parameters.getString("duration")); | ||||
|         String contactName = parameters.getString("name"); | ||||
|         int callDuration = parameters.getInt("duration"); | ||||
|         String callType = parameters.getString("action"); | ||||
|         String resultsFile = parameters.getString("results_file"); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user