cancel
Showing results for 
Search instead for 
Did you mean: 

TestRunner: Supressing error details output

SOLVED
New Contributor

TestRunner: Supressing error details output

Hello everyone, I have faced a problem using TestRunner functionality

In short, after executing testcase and printing "TestCaseRunner Summary" report, it also outputs errors that were detected by the testcase during execution. 

The problem is that I do not need those errors in main output log.

Searching through ReadyAPI documentation I'v found a description about  TestRunner "-I" option:

    it will ignore any error during testCase execution, but it does not abort testCase if error occures.

 

My goal is to supress those errors at the end of the execution.

Version of ReadyAPI is 2.7.0

 

Visually it looks like this:

 INFO [SoapUIProTestCaseRunner] TestCase [T1] finished with status [FAIL] in xxx ms
ReadyAPI 2.7.0 TestCaseRunner Summary
-----------------------------
Time Taken: xxxxx ms
Total TestSuites: 0
Total TestCases: 5 (1 failed)
Total TestSteps: 11
Total Request Assertions: 3
Total Failed Assertions: 2
Total Exported Results: 15

//// FROM HERE ERROR DETAILS ARE POSTED BY TESTRUNNER ////
[Comparison failed.]
Status: FAIL
Time Taken: 1142
Size: 129
Timestamp: xxxxxxxx
TestStep: Read file 1

----------------- Messages ------------------------------
[result] Comparison failed.

----------------- Properties ------------------------------
HTTP Version: HTTP/1.1
Endpoint: xxxxxx
Method: POST
StatusCode: 200
URL: xxxxxxxx

---------------- Request ---------------------------
Connection: [Keep-Alive]
Host: [xxxxx]
.....

POST xxxxxx
HTTP/1.1
Accept-Encoding: gzip,deflate
.....
---------------- Response --------------------------
Transfer-Encoding: [chunked]
Server: [openresty]
Access-Control-Allow-Origin: [*]
.....
"some error response"

I need just a summary report but not those errors details.

  

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: TestRunner: Supressing error details output

Hi @vorokai,

 

Could you please check if you see the same behavior in the latest ReadyAPI version?

https://support.smartbear.com/downloads/readyapi/

 

If the issue persists, please contact the ReadyAPI Support Team to investigate this behavior.

---------
Tanya Gorbunova
SmartBear Community Manager

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!

View solution in original post

2 REPLIES 2
Highlighted
Community Manager

Re: TestRunner: Supressing error details output

Hi @vorokai,

 

Could you please check if you see the same behavior in the latest ReadyAPI version?

https://support.smartbear.com/downloads/readyapi/

 

If the issue persists, please contact the ReadyAPI Support Team to investigate this behavior.

---------
Tanya Gorbunova
SmartBear Community Manager

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!

View solution in original post

Highlighted
Moderator

Re: TestRunner: Supressing error details output

Hi @vorokai,

 

What stage are you on now? Does the behavior persist with the new version? 

Don't hesitate to contact the support team and let us know your updates.


Olga Terentieva
SmartBear Assistant Community Manager