lea_chch
9 years agoNew Contributor
Solved
how to show attribute details for each assertion in the Test Case logging
My test check if a list of attributes are present in the returned result:
Product ID: 123
Product Name; Glare Screen
Product Color: black
When an assertion fails, the logging doesn't display the details of what we are looking for. It just says the step failed.
I was expecting to see something like:
Step 2 failed; expected "Product Name: Glare Screen"; observed "Product Name: Monitor Screen"
How do I configure the logging so I can see more details of what we are looking for, and what we actually get?
thanks.
- What kind of assertion are you using currently?
If it needs to be done, I would use script assertion something like below:
assert expected==actual, "Your customized message"