Verify only desired objects are loaded in an Array (Tosca 11.0)
i used the search function to find out if there's a topic about this already, but i couldn't find one. If there's one -> please point me to it.
I'm starting to use the new API Engine for backend tests in Tosca 11.0 (used the old webservice engine a while now) and i'm having trouble finding a way to make sure, certain data is not loaded in a response.
e.g. an insurance customer loads the list of all this contracts. he's also able to filter the search using search parameters like - let's say - "category" or "contractNumber". If i use a search parameter i want to make sure, in a Test Case, only the desired results are loaded and nothing else.
So, how can i do that using the API Engine in Tosca 11.0?
• The response deliveres an array of contracts
• I can verify the desired data is shown using ActionMode Constraint and verify e.g. a contract number.
How to i verify a certain contract is not loaded?
• Constraint doesn't work, because the data to look for is not there. of course.
• I could count the number of returned contracts - but how? (in the webservice engine i used a count on the root array).
Please help - i really want to find a solution and i'm hoping i just don't see the obvious way to do it ;)