Forum Discussion
Hi,
Please check this :
Time taken by Request :
log.info "Time taken" + testRunner.testCase.testSteps["Request 1"].testRequest.response.timeTaken
Size of the reponse content:
def size = testRunner.testCase.testSteps["Request 1"].testRequest.response.contentLength
Full Response size (in bytes):
log.info "Full Response size (in bytes) " + testRunner.testCase.testSteps["Request 1"].testRequest.response.rawResponseData.length
The size discrepancy most likely arises due to the way that your operating system saves files to the disk, as well as the way it reports the sizes.
Lemme know if this helps you.
Did my reply answer your question? Give Kudos and Accept it as a Solution to help others, Thanks. ↓↓↓
- 50ReggieTest10 years agoOccasional Contributor
Thanks for the reply.
My tests is about comparing the size of queryResponses of different operations before and after a new deployment/release. If these 2 codes are displaying different information, my tests would be invalid.
Showing the size of the response should not be different whether it is in xml or in plain text format.