-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add yml config usage for gradle plugin (#263)
Refactor to decouple params of different scopes; Add yml config for gradle plugin; Add type param to testSpec section of yml config, remove extraArgs;
- Loading branch information
1 parent
ca7a3df
commit ca03c47
Showing
25 changed files
with
737 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
gradle_plugin/doc/UML/gradle_plugin_yaml_config_design.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@startyaml | ||
hydraLabAPIServer: | ||
host: example.center-endpoint.com | ||
schema: https | ||
authToken: xxxxxxxxxx | ||
testSpec: | ||
device: | ||
deviceIdentifier: RANDOMDEVICESERIALNUMBER123 | ||
groupTestType: SINGLE | ||
deviceActions: | ||
setUp: | ||
- deviceType: Android | ||
method: setProperty | ||
args: | ||
- xxx | ||
- xxx | ||
- deviceType: Android | ||
method: pushFileToDevice | ||
args: | ||
- xxx | ||
tearDown: | ||
- deviceType: Android | ||
method: setProperty | ||
args: | ||
- xxx | ||
- deviceType: Android | ||
method: pullFileFromDevice | ||
args: | ||
- xxx | ||
triggerType: API | ||
runningType: INSTRUMENTATION | ||
appPath: ABSOLUTE_PATH_TO_APP_FILE | ||
pkgName: app.pkg.name | ||
testAppPath: ABSOLUTE_PATH_TO_TEST_APP_FILE | ||
testPkgName: test_app.pkg.name | ||
teamName: Default | ||
testRunnerName: androidx.test.runner.AndroidJUnitRunner | ||
testScope: CLASS | ||
testSuiteName: test.suite.class.name | ||
frameworkType: JUNIT4 | ||
runTimeOutSeconds: 1000 | ||
queueTimeOutSeconds: 500 | ||
needUninstall: true | ||
needClearData: true | ||
neededPermissions: | ||
- android.permission.READ_CONTACTS | ||
- android.permission.WRITE_CONTACTS | ||
attachmentConfigPath: ABSOLUTE_PATH_TO_ATTACHMENT_CONFIG_FILE | ||
attachmentInfos: | ||
- fileName: a.json | ||
filePath: ABSOLUTE_PATH_TO_A_JSON | ||
fileType: COMMON | ||
loadType: COPY | ||
loadDir: DIR_TO_COPY_A_TO | ||
- fileName: b.json | ||
filePath: ABSOLUTE_PATH_TO_A_JSON | ||
fileType: COMMON | ||
loadType: COPY | ||
loadDir: DIR_TO_COPY_B_TO | ||
artifactTag: artifact_file_name_tag | ||
testRunArgs: | ||
key1: value1 | ||
key2: value2 | ||
exploration: | ||
maxStepCount: 100 | ||
testRound: -1 | ||
|
||
@endyaml |
Oops, something went wrong.