I’ve just recently began using JMeter to stress/load test a Coldfusion application. After reading some blogs on JMeter I got everything set up locally and created a proxy site to my application. But I quickly realized that the proxy is not supported for applications running under an SSL.
The JMeter forum revealed that an easy way to create test cases under an SSL is to actually create the test with a program called Badboy. Luckily for me I’ve been using badboy for automated regression testing for the past year or so. I had never noticed however, that once a badboy test is created there is an export to JMeter option. After exporting a test case I then learned that the badboy export has not yet been updated to support JMeter 2.4. However, it does support JMeter 2.3.4
So the steps for setting up an environment for creating JMeter 2.4 test cases for an application running under an SSL are:
- Download JMeter 2.4 (http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi)
- Download JMeter 2.3 (http://archive.apache.org/dist/jakarta/jmeter/binaries/)
- Download BadBoy (http://www.badboy.com.au/download/index)
Note that both versions of JMeter are downloaded on the assumption that you will want to execute your JMeter tests in 2.4, but you will need 2.3 to make the test cases compatible with 2.4. If you are happy just using 2.3 then you will not need to download 2.4.
Once you have the necessary software do the following:
- Create your test with Badboy.
- In badboy go to file > Export to JMeter
- Now open JMeter 2.3 and open the .jmx file that was exported.
- Once the JMeter test is loaded save to the same .jmx file and close JMeter 2.3
- Now open JMeter 2.4 and you should be able to open the .jmx file. and perform your load testing as you see fit
So this is a workaround for not only creating JMeter test cases for a secured application, but also for using Badboy and the latest version of JMeter. The only thing that sucks is that the exported Badboy script has to be opened and saved using the compatible JMeter 2.3 or else it will not open in JMeter 2.4.
Hope this helps setting up load tests.