Unanswered question

how to use dynamic values for validation

Hi ,
can we use any dynamic value for validation
For eg: in my application thers a caseid and on clicking that caseid i get that ids detail, i want to use the name in that details for validation
but it changes with each case id
so how to put validation for such thing?

Answers

Hi ,
I have added that content , but the assertion failed
I have attached the file
I have captured the value in the request and placed in the validation tab.

I can see that you've configured two validations in your response. What was the content of the error when you run your check user or test?

Could you copy/paste the content here?

If your variable name has not been replaced then it means that this variable was unkown when NeoLoad tried to use it.

Have you created your variable extractor on a previous request or on the same where you have configured your validation?

Ok so it explains why it does not work. You can't create and use your variable extractor on the same request. The variable does not exist yet when it is evaluated by the validation mechanism.

You have to create your variable extractor before that request.

christophe M.
christophe M.

christophe M.

Level
4
5000 / 5000
points
Team

Getting back to your case, you can use the RexExp used in the Variable Extractor directly in the validation with 'Contains the regexp' option.