Forum Discussion

PM's avatar
PM
Contributor
7 years ago
Solved

how to get Endpoint URL from response in Property Transfer, any idea ?

I have created test suite which has around 10 Rows from EXCEL

 

DataSource - Excel

GET 

POST

Property Transfer

Data Sink 

 

I was able to fetch out data or Header from response from GET and POST, BUT need to get the request in EXCEL ...as always Developer as for the URL which Request was sent. Any idea how to get the data, as when i tried to use 

 

Note : Request Data was able to fetch from POST but i want full request which has URL along with Data.

 

Like RAW RESPONSE :-

 

GET http://dev-sii-webservices.ebs.ecomp.com:8882/service/CustomerPartNumbersService/v01_00/JSON/Location/STORE_ID/GB_1/Channel/EXTERNAL/Customer/11008101/CustomerPartNumbers?ProductNumber=100074 HTTP/1.1
Connection: close
Accept-Encoding: gzip,deflate
Authorization: Basic cnN3ZWJhcHBsaWNhdGlvbl92MV8wLXVzZXI6cGFzc3dvcmQ=
Accept: application/json
Content-Length: 0
Host: dev-sii-webservices.ebs.ecomp.com:8882
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_144)

 

  • Got the resolution :-

     

    Raw Response:-

    new String(testRunner.testCase.testSteps["GET"].testRequest.response.rawResponseData)

     

    Raw Request:-
    def testReq = testRunner.testCase.getTestStepByName("GET").getTestRequest().getResponse().getRawRequestData()
    new String(testReq)

6 Replies