Hi,
Is there a way to capture the response time for the ‘HTTP Request’ activity? I looked through the property panel of this activity but could not find one. All I could fine is the timeout in the request but nothing to capture how long it took to get the response… I would like capture response time and write to the logs. Thanks in advance!
Hi @Sarat_Y
I suppose you could try the timer activities to achieve this:
@loginerror Could you please elaborate a bit? Since submitting a request and capturing the response happens within HTTP Request Activity, wondering how can I start the timer when request is submitted and stop it when response is received. Thanks.
I think you could start the timer just before the HTTP Request activity, and then immediately stop it afterwards.
This way you might be able to catch the duration of the request, although the accuracy of this method should be tested to see if it solves your use case.
Right. This method gives me something to work with. Thanks!
Hi @Sarat_Y
You can also try to Assign activity before and after 'HTTP Request’ activity to capture start and end time and calculate the response time.
- Assign startTime = Now.ToString
- HTTP Request
- Assign endTime = Now.ToString
- Assign responseTime = (CDate(endTime) - CDate(startTime)).TotalMilliseconds.ToString
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.