Forum Discussion

PM's avatar
PM
Contributor
7 years ago

Actual Raw Response and Groovy RawResponse are different, please suggest - if i am missing something

RAW Response of  Ready API :-

 

HTTP/1.1 200 OK
X-Backside-Transport: OK OK
Connection: close
Transfer-Encoding: chunked
Server: Apache-Coyote/1.1
X-Version: 1.0.0
Content-Type: application/json;charset=utf-8
Date: Thu, 15 Mar 2018 14:01:28 GMT
X-Client-IP: 10.249.32.9

{"GetCustomerAccountsResp":{"PartyType":"SOLD_TO","CustomerAccountCollection":{"CustomerAccount":[{"CustomerNumber":"13706234","AccountGroup":"SOLD_TO","AddressLineCollection":{"AddressLine":["〒470-0224","愛知県 みよし市三好町西田35-1","株式会社サンコー精機"]}}]}}}

 

Groovy Response -

 

Script Entered - 

 

// Response :-
new String(testRunner.testCase.testSteps["Request 1"].testRequest.response.rawResponseData)

 

Raw Response from Groovy :-

 

HTTP/1.1 200 OK
X-Backside-Transport: OK OK
Connection: close
Transfer-Encoding: chunked
Server: Apache-Coyote/1.1
X-Version: 1.0.0
Content-Type: application/json;charset=utf-8
Date: Thu, 15 Mar 2018 14:01:28 GMT
X-Client-IP: 10.249.32.9

{"GetCustomerAccountsResp":{"PartyType":"SOLD_TO","CustomerAccountCollection":{"CustomerAccount":[{"CustomerNumber":"13706234","AccountGroup":"SOLD_TO","AddressLineCollection":{"AddressLine":["〒470-0224","愛知県 �よ�市三好町西田35�1","株�会社サンコー精機"]}}]}}}

  • I got the solution after comparing with Old SOAPUI (which my developer has)

     

    GO TO - > 

    ReadyAPI-2.3.0\bin\ReadyAPI.vmoptions

     

    Updated with 

    -Dfile.encoding=UTF8

     

    Restart ReadyApi and try to run the script, it worked .....yuppi ........

  • PM's avatar
    PM
    Contributor

    I got the solution after comparing with Old SOAPUI (which my developer has)

     

    GO TO - > 

    ReadyAPI-2.3.0\bin\ReadyAPI.vmoptions

     

    Updated with 

    -Dfile.encoding=UTF8

     

    Restart ReadyApi and try to run the script, it worked .....yuppi ........