Unanswered question

Use of variables in regular expression in content validations

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 !

Philippe L.
Philippe L.

Philippe L.

Level
0
2 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

This query has been sent to the NeoLoad product manager. But next time you should post in the idea section instead of answers section.

Markus T.
Markus T.

Markus T.

Level
0
43 / 100
points

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.

Mario C.
Mario C.

Mario C.

Level
0
12 / 100
points

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.