Variables can be used in regular expression when doing variables extraction (advanced mode must be enabled for that).
However, for content validations, it is not possible to use a variable if the validation is done using a regexp.
This feature should really be added to the upcoming versions of NeoLoad !
This query has been sent to the NeoLoad product manager. But next time you should post in the idea section instead of answers section.
If the question is still open. You can use the JSONPath Function at the Validation window - that's quiet helpful! I searched for that function too and found that cool possability.
It doesn't seem to work for creation JSONPath expressions using variables and JSONPath scripts:
$.data.list[?(@.id == "${text}")].category.id
How can one do a comparison of variables in neoload like for the same GET requests storing a variable_1 and in the same GET do a variable_2 Validation against variable_1?
variable_1 == variable_2
Wouldn't that be the point of the "Validation" section too...is to also validate a particular response content value against a stored variable?
The attached fails...Error message is that its not a valid JSONPath....I have validated my path using a JSONPAth validator.