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
28 / 100
points

Answers

rohit D.
rohit D.

rohit D.

Level
0
28 / 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.

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

The regex does work. Yaml format is very specific, your indentation could be wrong or there may be extra spaces, can you send part of the file? In an attached file