This repository was archived by the owner on Apr 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,3 +131,18 @@ Feature: Testing JSONContext
131131 And the JSON node "root[4]" should be equal to the number 1312
132132 And the JSON node "root[4]" should be equal to the number 1312.0
133133 And the JSON node "root[5]" should be equal to the number 1936.2
134+
135+ Scenario : Check not null values
136+ Given I am on "/json/notnullvalues.json"
137+ Then the response should be in JSON
138+ And the JSON node '' should have 5 elements
139+ And the JSON node "one" should not be null
140+ And the JSON node "one" should be false
141+ And the JSON node "two" should not be null
142+ And the JSON node "two" should be true
143+ And the JSON node "three" should not be null
144+ And the JSON node "three" should be equal to the string ""
145+ And the JSON node "four" should not be null
146+ And the JSON node "four" should be equal to the string "foo"
147+ And the JSON node "five" should not be null
148+ And the JSON node "five" should be equal to the number 5
Original file line number Diff line number Diff line change 1+ {
2+ "one" : false ,
3+ "two" : true ,
4+ "three" : " " ,
5+ "four" : " foo" ,
6+ "five" : 5
7+ }
You can’t perform that action at this time.
0 commit comments