marcl
10 years agoOccasional Contributor
Failing "message content assertions" in reports
Hello,
I've got some test suites which are run nightly (using Jenkins), and for whose I receive a report every morning. This report is generated using "testrunner.bat -j", which puts the data in a JUnit-like XML file.
In my tests, I use a lot of "message content assertions". But when one of those fail, I can't seems to find the reason of the failure in the report. It basically looks like this:
Failing due to failed test step My Test Step Failed [My Test Step] Message Content Assertion failed : failed/compared = 1/160 Status: FAILED Time Taken: 63 Size: 37917 Timestamp: Tue Oct 27 21:57:06 UTC 2015 TestStep: My Test Step ----------------- Messages ------------------------------ [My Test Step] Message Content Assertion failed : failed/compared = 1/160 ----------------- Properties ------------------------------ HTTP Version: HTTP/1.1 Endpoint: http://myhost:12345 Encoding: UTF-8 Method: GET StatusCode: 200 URL: http://myhost:12345/db/foo?bar=42&filter=all ---------------- Request --------------------------- Connection: [Keep-Alive] User-Agent: [Apache-HttpClient/4.3.1 (java 1.5)] Host: [myhost:12345] Accept-Encoding: [gzip,deflate] GET http://myhost:12345/db/foo?bar=42&filter=all HTTP/1.1 Accept-Encoding: gzip,deflate Host: cas01:38022 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.3.1 (java 1.5) ---------------- Response -------------------------- Connection: [keep-alive] #status#: [HTTP/1.1 200 OK] Content-Length: [37917] Content-Type: [application/json] {"some":"data", "I":"obfuscated"}
As you can see, we know that one check in the MCA failed, but we have no idea which one.
Is there any way I can get this information without having to re-play the test afterwards from a GUI instance of SoapUI?