Forum Discussion

vaicha's avatar
vaicha
Occasional Contributor
7 years ago

How to get complete request and response even test case passed

What I am doing:

1. Sending request to server and getting response for REST Service.

2. Add several Assertions

3. But in assertion if test case failed, description of error is shown to us in message.

4. But if test case passed there is no such message. So, I want that same information for request and response will show there even if test case passed.

 

Is it any how it is feasible or not? Either some settings are there for this or some scripts?

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Any reason for storing the request and response though the step is successful?
    • vaicha's avatar
      vaicha
      Occasional Contributor

      Yes, I want that, my complete request and response will show in the Test Suite report (feature of Soapui pro). But currently message will only show for failed assertion and not for passed assertion. I have tried in teardown script but the same thing I will get. Is there any way to get request and response for Passed test case also i.e. Customized message.

      • nmrao's avatar
        nmrao
        Champion Level 3
        Sorry, little confused.

        Do you want a message (string literal) on the test report for successful tests?

        Or is it that you need to store request and response?

        Not sure which one you want?