mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	cameracapture & camerarecord: Fixed parameters
Parameters were not being passed to the UI automation properly
This commit is contained in:
		| @@ -40,13 +40,10 @@ class Cameracapture(UiAutomatorWorkload): | ||||
|                   description='Time, in seconds, between two consecutive camera clicks.'), | ||||
|     ] | ||||
|  | ||||
|     def __init__(self, device, **kwargs): | ||||
|         super(Cameracapture, self).__init__(device, **kwargs) | ||||
|         self.uiauto_params['no_of_captures'] = self.no_of_captures | ||||
|         self.uiauto_params['time_between_captures'] = self.time_between_captures | ||||
|  | ||||
|     def initialize(self, context): | ||||
|         api = self.device.get_sdk_version() | ||||
|         self.uiauto_params['no_of_captures'] = self.no_of_captures | ||||
|         self.uiauto_params['time_between_captures'] = self.time_between_captures | ||||
|         self.uiauto_params['api_level'] = api | ||||
|         self.package = self.api_packages[api] | ||||
|         version = self.device.get_installed_package_version(self.package) | ||||
|   | ||||
| @@ -38,13 +38,10 @@ class Camerarecord(UiAutomatorWorkload): | ||||
|                   description='The video recording time in seconds.'), | ||||
|     ] | ||||
|  | ||||
|     def __init__(self, device, **kwargs): | ||||
|         super(Camerarecord, self).__init__(device) | ||||
|     def initialize(self, context): | ||||
|         self.uiauto_params['recording_time'] = self.recording_time  # pylint: disable=E1101 | ||||
|         self.uiauto_params['version'] = "button" | ||||
|         self.run_timeout = 3 * self.uiauto_params['recording_time'] | ||||
|  | ||||
|     def initialize(self, context): | ||||
|         api = self.device.get_sdk_version() | ||||
|         self.uiauto_params['api_level'] = api | ||||
|         self.package = self.api_packages[api] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user