Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Assertion on response in neoload as code

$
0
0

i want to perform an assertion that specific text is present in the response of API, i have followed the steps mentioned in documentation but the assertion fails,

My response:

{
"assessmentName": "Tool",
"questnrVerId": 21,

}
i want to check if i have this "questnrVerId" in my response and its a number

i have added following items in userpath for assertion

assertions:

  • contains: ^.*questnrVerId.*$
  • regexp: true

    but it fails, can you please help me why my assertion is failing ?


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>