Using Live Http Headers with JMeter

Recently we were having difficulty creating an Apache JMeter test for an application that relied on multiple domains for single sign on. I often use the Live Http Headers Firefox add-on to monitor the exact request and response values when troubleshooting issues. Although JMeter has the ability to proxy traffic in order to create scripts, it seemed like it wasn’t capturing everything I needed. I ended up writing a quick Groovy script that let me convert the log from a Live Http Headers session into a JMeter script that I could then tweak to get a working JMeter test. The script does the transformation in two parts, first it converts the Live Http Headers log into xml and the transforms that into the .jmx xml format. You could easily modify the script to just output Live Http Header informatin in an XML format. You can find the script on GitHub here. Any feedback welcome.

Tagged with: