mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +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:
		| @@ -60,10 +60,9 @@ public class UiAutomation extends BaseUiAutomation { | ||||
|         if (parameters.size() <= 0) | ||||
|            return; | ||||
|  | ||||
|         int tolerance = Integer.parseInt(parameters.getString("tolerance")); | ||||
|         int samplingInterval = Integer.parseInt(parameters | ||||
|                            .getString("sampling_interval")); | ||||
|         String videoName = parameters.getString("video_name").replace("0space0", " "); //Hack to get around uiautomator limitation | ||||
|         int tolerance = parameters.getInt("tolerance"); | ||||
|         int samplingInterval = parameters.getInt("sampling_interval"); | ||||
|         String videoName = parameters.getString("video_name"); | ||||
|  | ||||
|         UiObject search = new UiObject(new UiSelector() | ||||
|              .className("android.widget.ImageButton").index(0)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user