I am making SOAP calls from Javascript and the target performance is not captured for those calls. Is there an approach that I can follow to measure the target service performance when calls to target are made from JAvascript.
Solved! Go to Solution.
Maybe? It depends on what you mean by "measure".
One way to accomplish what you want may be:
Does this sound like what you want?
the JS part looks like this:
var before = context.getVariable('system.timestamp'); // send request here, await response var after = context.getVariable('system.timestamp'); var delta = Math.floor(end - start); context.setVariable('time-total-elapsed', delta);
Reading 'system.timestamp' gives you a 64-bit (long) integer containing the number of milliseconds elapsed since midnight, on January 1, 1970 UTC. I know this from having read the variables reference.