Forum Discussion
Ganesh_Kalyanam
16 years agoOccasional Contributor
Hi,
I'm able to retrieve the Raw data by using the below Groovy Script.
Suppose i have a Test Step by Name "Test Request", then
def testReq = testRunner.testCase.getTestStepByName("Test Request").getTestRequest().getResponse().getRawRequestData()
This will return the Raw Data in Array of Bytes(byte[]). To convert it to proper string
def rawData = new String(testReq)
If any one has a better script to fetch the Raw Data, please provide it.
Thanks,
Ganesh
I'm able to retrieve the Raw data by using the below Groovy Script.
Suppose i have a Test Step by Name "Test Request", then
def testReq = testRunner.testCase.getTestStepByName("Test Request").getTestRequest().getResponse().getRawRequestData()
This will return the Raw Data in Array of Bytes(byte[]). To convert it to proper string
def rawData = new String(testReq)
If any one has a better script to fetch the Raw Data, please provide it.
Thanks,
Ganesh
Related Content
- 10 months agorratchat
- 3 years agoenriquebravo
- 2 years agoLRuoc
Recent Discussions
- 2 days agoemoya
- 3 days agoMyBalanceNow