Compuware dynatrace is an application performance management software company which focuses on performance management software which are running on premise and cloud. Compuware acquired dynatrace software on 2011. In this article, you are going to learn how to integrate HP LoadRunner and Apache JMeter with dynatrace, so that you get a clear picture in dynatrace server about the HTTP requests.
How it works?
In built option is available with dynatrace to integrate it with HP LoadRunner. But to integrate it with Apache JMeter, dedicated and independent tool is available with dynatrace. When the integration happens, LoadRunner Script Converter will inject the dynatrace headers to the HTTP requests.
How to integrate dynatrace with HP LoadRunner?
As I said earlier, in-built tool is available with dynatrace called LoadRunner Script Converter.
- Launch dynatrace
- Go to Tools > LoadRunner Script Converter
- Click on Browse to load the LoadRunner script folder
- LoadRunner Script Converter will display the LoadRunner script files such as *.c and *.h
- Select the radio button All Files to modify all the LoadRunner files.
- Click on Patch button
You can see the converting progress on the progress bar. Once the conversion is done, open the LoadRunner script in VuGen where you can see the globals.h and the Actions.c file got modified with the dynatrace script.
globals.h will have the dynatrace method and the Actions.c will have the call to the dynatrace method. It parses the Actions.c and inserts the dynatrace call before one of the following functions:
Below is the dynatrace method gets inserted in the globals.h file.
Inside the Actions.c, you can see the dynatrace header calls.
As you see in the addDynaTraceHeader method, it determines the ID of each Vuser and the current timestamp and it appends it to the header. It also add the headers to below LoadRunner methods, but it will not contain a PageContext.
If you execute the LoadRunner scripts which has dynatrace headers, you can see the web requests under Tagged Web Requests dashlet.
How to unpatch LoadRunner Scripts in dynatrace?
If you like to revert the LoadRunner script without dynatrace headers, load the script to the LoadRunner Script Converter, and click on Unpatch button.
How to integrate dynatrace with Apache JMeter?
Now, you are going to learn about how to integrate dynatrace with Apache JMeter.
Go to below link and download JMeter Script Converter
Steps to follow
Extract the JMeter Script Converter tool and open command prompt.
Execute below command, make sure that there is no space in the folder path or file name.
JMeterConvert -source <sourceFilePath> -target <targetFilePath>
JMeterConvert -source C:\Sample.jmx -target C:\Sample_dynatraceHeaders.jmx
Once the command executed successfully, (if there is any error, you can see it in the command prompt), go to the target file path where you can find the JMeter script with dynatrace headers.
You could see the Browser-derived headers and the dynatrace headers with the timer as shown below.
To integrate dynatrace for the web service calls, simply add the below header for each of the requests.
It is very simple to integrate dynatrace with HP LoadRunner and Apache JMeter which extends the functionality to monitor the requests (under Tagged Web Requests dashlet) for the effective monitoring and identify the bottlenecks using dynatrace.
If you like my article, please do share in your favorite social media. Please do not forget to subscribe to my weekly newsletter, it is FREE.