aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/robot/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/robot/src/main/resources')
-rw-r--r--profiles/robot/src/main/resources/open-cli-robot.properties16
-rw-r--r--profiles/robot/src/main/resources/open-cli-schema/robot/auto-discover-robot-testcases.yaml48
2 files changed, 64 insertions, 0 deletions
diff --git a/profiles/robot/src/main/resources/open-cli-robot.properties b/profiles/robot/src/main/resources/open-cli-robot.properties
new file mode 100644
index 00000000..9b157596
--- /dev/null
+++ b/profiles/robot/src/main/resources/open-cli-robot.properties
@@ -0,0 +1,16 @@
+# Copyright 2020 Simran Singhal.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+cli.robot.discover=false
+cli.robot.api_tests_folder_path= \ No newline at end of file
diff --git a/profiles/robot/src/main/resources/open-cli-schema/robot/auto-discover-robot-testcases.yaml b/profiles/robot/src/main/resources/open-cli-schema/robot/auto-discover-robot-testcases.yaml
new file mode 100644
index 00000000..a03dbd18
--- /dev/null
+++ b/profiles/robot/src/main/resources/open-cli-schema/robot/auto-discover-robot-testcases.yaml
@@ -0,0 +1,48 @@
+# Copyright 2020 Simran Singhal.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+
+name: auto-discover-robot-testcases
+
+description: Auto discover and register all robot test cases
+
+info:
+ product: open-cli
+ service: discover
+ type: cmd
+ author: Simran Singhal singhalsimran0@gmail.com
+
+parameters:
+ - name: api-tests-folder-path
+ type: string
+ description: Location to api-tests folder
+ short_option: l
+ long_option: api-tests-folder-path
+ is_optional: false
+ - name: format
+ type: string
+ description: Output formats, supported formats such as table, csv, json, yaml
+ short_option: f
+ long_option: format
+ default_value: text
+ is_default_param: true
+
+robot:
+ command:
+ - python3 $s{env:OPEN_CLI_HOME}/script/discover-robot-testcases.py --api-tests-folder-path ${api-tests-folder-path}
+ success_codes:
+ - 0
+ working_directory: .
+ output: $stdout \ No newline at end of file