Forum Discussion
NishantJadhav
10 years agoOccasional Contributor
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. ↓↓↓