0

There is a string appearing in console which is getting evaluated and displaying the response time and correlation id. This string then saves data into a logging database via APIs. I need to implement something on the lines of web_get_int_property(HTTP_INFO_DOWNLOAD_TIME) in TruClient. By capturing the correlation id and associated time, I can then deep dive into the application logs. And the below string gets the required data.

Performance for the page {PAGE_NAME} id [6a26dcea1a9842578b12ea66df0373d4] is [7742.400146484375] msecs anomaly [FULL_PAGE_LOAD] resourceDuration[5870.7001953125] ajaxDuration[857.39990234375] spaLoadDuration[12731.89990234375] jsLagTime[12.5] perf_

I need to capture the values appearing in bold. It would be an add-on if this could be done in javascript since TruClient can evaluate javascript code.

I have tried a few ways (as below), however none of them have an exact answer for this. https://community.microfocus.com/adtd/loadrunner/f/sws-loadrunner_sf/103759/how-do-i-print-output-message-on-reply-log-in-tureclient-script/210797#210797

How to read from Chrome's console in JavaScript TIA!

0 Answers0