mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	Move package parameters to UxperfUiAutomation
All the uxperf workloads get some common package parameters. These are moved to the parent class and a new method is introduced to fill these parameter values. All the uxperf workloads can call this method to resolve the package parameters.
This commit is contained in:
		| @@ -16,8 +16,19 @@ | ||||
| package com.arm.wlauto.uiauto; | ||||
|  | ||||
| import java.util.logging.Logger; | ||||
| import android.os.Bundle; | ||||
|  | ||||
| public class UxPerfUiAutomation extends BaseUiAutomation { | ||||
|      | ||||
|     protected Bundle parameters; | ||||
|     protected String packageName; | ||||
|     protected String packageID; | ||||
|  | ||||
|     //Get application package parameters and create package ID | ||||
|     public void getPackageParameters() { | ||||
|         packageName = parameters.getString("package"); | ||||
|         packageID = packageName + ":id/"; | ||||
|     } | ||||
|  | ||||
|     private Logger logger = Logger.getLogger(UxPerfUiAutomation.class.getName()); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user