Need help with writing the following test script.
Verifying the count returned in the response body is equal to 33.
var jsonData = JSON.parse(responseBody); var expectedCount = 33; tests["Response count is: " + expectedCount] = jsonData.length === expectedCount;
The above works, but I want to set
expectedCount as a collection variable or environmental variable instead of providing the value in the script. How to do that?