Unanswered question

Assertion on response in neoload as code

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 ?

rohit D.
rohit D.

rohit D.

Level
0
27 / 100
points

Answers

rohit D.
rohit D.

rohit D.

Level
0
27 / 100
points

can i get some update on this ? i have double checked regex and it should be true. why is my assertion failing ?

please find screenshot of regex being valid.