Forum Discussion
nmrao
Champion Level 3
Ok, let me give an example to capture the response time into test case level property, RESPONSE_TIME as shown below in the Script Assertion and the same works both in free and pro versions as well.
//Check if there is a value in the response time taken using assert assert messageExchange.response.timeTaken, "Response time is empty or null" //set the value to test case level custom property context.testCase.setPropertyValue('RESPONSE_TIME', (messageExchange.response.timeTaken).toString())
rayapudi904
9 years agoOccasional Contributor
Thank you so much Rao.
It worked, Need one more input for Timestamp am getting the below value INFO:1457454710086
How to convert this into a meaning full value
Please advice.
- nmrao9 years agoChampion Level 3May be explain with more details by opening a new question.
Related Content
Recent Discussions
- 25 minutes agoMike89