Unanswered question

can we get the assertion failed reason in the javascript?

during the test running process, it is very possible that we get Assertion failed error(extract variable failed or validation failed) on some requests/pages; is there any way(API) for us to grab the related assertion error's detail message in the Javascript?
for example, i got an Assertion error with the following detail info "Assertion failed. The response does not contain the specified pattern: test.page."; and i want to grab those detailed info from the Javascript;

Billy Z.
Billy Z.

Billy Z.

Level
0
4 / 100
points

Answers

There's no way to get that kind of information even using the NeoLoad API. You could post an idea here so the NeoLoad product manager can add such feature in future NeoLoad versions.

Luke R.
Luke R.

Luke R.

Level
0
31 / 100
points

Another workaround could be to put the request in a try/catch
Then have a variable extractor which takes the response, but doesn't throw an assertion failed when it doesn't find anything.

Then in the catch folder put your javascript and write out the variable extractor that looks for the assertion info to a logger.

Hopefully that makes sense