aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-bdd/features/examples
diff options
context:
space:
mode:
authorAvi Gaffa <avi.gaffa@amdocs.com>2018-08-05 08:09:14 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-05 08:09:14 +0000
commitbc16f708119e8907fd4beb8d1de9c525d4b9d9ee (patch)
tree9fc7e6c63af685062652d47987dc1e49e0b03eb2 /workflow-bdd/features/examples
parent8372b56a5c36293dc06f2dda6bb9389467d3eba7 (diff)
parent02201e449b644790e99bbb230579d96cae4a53da (diff)
Merge "Refactor and add test flows"
Diffstat (limited to 'workflow-bdd/features/examples')
-rw-r--r--workflow-bdd/features/examples/ResponseDataChecks.feature50
1 files changed, 50 insertions, 0 deletions
diff --git a/workflow-bdd/features/examples/ResponseDataChecks.feature b/workflow-bdd/features/examples/ResponseDataChecks.feature
new file mode 100644
index 00000000..2f8ff52f
--- /dev/null
+++ b/workflow-bdd/features/examples/ResponseDataChecks.feature
@@ -0,0 +1,50 @@
+Feature: Example for checking response data
+ Scenario: Example Checks
+ # setting some data just for testing purposes
+ Given Response Data:
+ """
+ {
+ "field1" : "string field",
+ "field2" : true,
+ "field3": "5",
+ "field4" : [{"entry1":"a"},{"entry2":"b"},{"entry3":"c"}],
+ "inputs": [
+ {
+ "mandatory": true,
+ "name": "in1",
+ "type": "STRING"
+ },
+ {
+ "mandatory": true,
+ "name": "in2",
+ "type": "INTEGER"
+ }
+ ],
+ "outputs": [
+ {
+ "mandatory": true,
+ "name": "workflow",
+ "type": "TIMESTAMP"
+ },
+ {
+ "mandatory": true,
+ "name": "out2",
+ "type": "BOOLEAN"
+ }
+ ]
+ }
+ """
+ # printing out for test purposes
+ Then I want to print the context data
+
+ # running the different options of checking the respone data
+ Then I want to check property "field1" for value "string field"
+ Then I want to check property "field2" to be true
+ Then I want to check property "field3" for value 5
+ Then I want to check property "field4" to have length 3
+ Then I want to check property "field4[0].entry1" exists
+ Then I want to check property "field4[0].no_exist" does not exist
+ Then I want to check property "outputs[0].name" exists
+ Then I want to check property "outputs[0].name" for value "workflow"
+ Then I want to check in the list "outputs" property "name" with value "out2" exists
+ Then I want to check in the list "outputs" property "name" with value "out3" does not exist