cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to capture HTML Acknowledgement || Linux Command line.

ZH
New Contributor

Unable to capture HTML Acknowledgement || Linux Command line.

Hi Guys,i am running Soapui from command line in Linux, and is struggling to capture the acknowledgement that comes as  HTML:

 

I am able to capture the request and acknowledgement form the Soapui GUI after running in Windows.

Request: is attached

Acknowledgement: is attached

 

---------------------------------------------------------------------------------------------------------------------------------------------------

The Linux command line output generates an output file something like this:

 

Status: FAILED
Time Taken: 557
Size: 0
Timestamp: Fri Jul 06 23:23:23 NZST 2018
TestStep: Query Place

----------------- Messages ------------------------------
java.net.SocketException: Connection reset

----------------- Properties ------------------------------
Endpoint: https://www.test.com
Encoding: UTF-8

---------------- Request ---------------------------
<soapenv:Envelope xmlns:mes="http://www.tcf.org.nz/v0.0.1/bif/MessageDiagnosticHeader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:touc="http://www.tcf.org.nz/v5/bif/touchpoint">
   <soapenv:Header>
      <mes:MessageDiagnosticHeader URI="">
         <diagnosticHeaderId>123</diagnosticHeaderId>
         <createdDateTime>2018-07-07T23:23:23.605+12:00</createdDateTime>
         <fromPartyId>test</fromPartyId>
         <toPartyId>test</toPartyId>
      </mes:MessageDiagnosticHeader>
   </soapenv:Header>
   <soapenv:Body>
      <touc:QueryPlaceRequest>
         <PlaceInteraction>
            <PlaceInteractionItem>
               <Place>
                  <id>100</id>
               </Place>
            </PlaceInteractionItem>
         </PlaceInteraction>
      </touc:QueryPlaceRequest>
   </soapenv:Body>
</soapenv:Envelope>

---------------- Response --------------------------
- missing response / garbage collected -

 

====================================================

So here the response should be the HTML one saying that the portal is currently under maintenance.

thanks.

1 REPLY 1
Moderator

Re: Unable to capture HTML Acknowledgement || Linux Command line.

Hi,

 

Thank you for your post! You can try the following to avoid the "java.net.SocketException: Connection reset" exception: 

1. Disable the “Close connections after request” option on the HTTP tab in Preferences.
2. Leave the Socket timeout field empty on the HTTP tab in Preferences.

Please see the screenshot: https://www.screencast.com/t/qMe61b7B 

 

After that run testrunner.sh and specify the soapui-settings.xml file which will be used using the -t argument. 

TestRunner arguments: https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html

 


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

February News
Top Kudoed Authors