Open
Description
We can add some functions for JSON response captures, like:
$.somearray.count()
--> counts the number of elements in an array$.somearray.first()
--> gets the first element of an array$.somearray.last()
--> gets the last element of an array$.somearray.firstWhere(prop == "abc")
--> gets the first object whose propertyprop
equals to"abc"
[
{
"id": 1,
"name": "ghi"
},
{
"id": 2,
"name": "abc" // this one
}
{
"id": 3,
"name": "def"
}
]
File to be changed: PororocaResponseValueCapturer.cs
+ unit tests