mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-30 22:54:18 +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:
Binary file not shown.
@@ -43,11 +43,9 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
public void runUiAutomation() throws Exception {
|
||||
Bundle parameters = getParams();
|
||||
if (parameters.size() > 0) {
|
||||
iterations = Integer.parseInt(parameters
|
||||
.getString("no_of_captures"));
|
||||
timeDurationBetweenEachCapture = Integer.parseInt(parameters
|
||||
.getString("time_between_captures"));
|
||||
api = Integer.parseInt(parameters.getString("api_level"));
|
||||
iterations = parameters.getInt("no_of_captures");
|
||||
timeDurationBetweenEachCapture = parameters.getInt("time_between_captures");
|
||||
api = parameters.getInt("api_level");
|
||||
String versionString = parameters.getString("version");
|
||||
version = splitVersion(versionString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user