Exporting the results of a Test do not show the Assertion message. Message expected to be found on the report:
AssertionError: Password Invalida: expected ‘ErrorUserBlockedByPassword’ to equal ‘Success’
Those messages have never been part of that output from the runner, or at least as far back as I can remember. That report is more of a metric based output of passed and failed tests.
How are you intending to use the output? It’s quite a manual step each time, what’s the workflow you had in mind?
Hi @danny-dainton
What a bummer I was hoping that something was missing… I thought I could export this data and use it in a more complex report for non-technical people who could understand why each iteration failed.
For example the Assertion is comparing the pm.response.json().OperationResult and for this example is giving me ‘ErrorUserBlockedByPassword’ so I want this value to be shown so the user can actually understand why the test failed.
This also shows the need to consider your test policy\strategy including your naming conventions and assertion rules.
I personally recommend that the test case name needs to be relevant and ideally should be able to tell you exactly what has failed by the test case name alone.
Be careful with the number of assertions.
I would recommend 1-2 assertions max for each test block.
Anything more than that, and you might want to consider breaking it into separate tests, so you can a more accurate feedback.
You might also want to consider defining variables for each element you want to check.
Yes but what if my test is running thousand of transactions so the user would need to scroll on this UI report one by one and on top of that they have no way to group the errors or do any sort/search function.