Posts Tagged “Software development”

In an earlier post I wrote about how you can use JMeter to do automated functional and regression testing for web services. In this post I will talk about how you can parameterize your tests from external files to quickly get more thorough tests.

Parameterizing tests means that you run the test with different data each time, the data being passed in as parameters to your test. Obviously it would be preferable to run the same test 50 times with different values than to explicity put 50 different tests in the script that are identical except for the value used (duh.)

JMeter has a facility for doing just that. In my opinion, it’s a bit crude, but it works, and that’s what really counts.

Sample test script at outsetLet’s start with a JMeter test that calls a web service. (You can download my sample). The test calls a web service that gives you the words for an integer (e.g., “fifteen” for 15), and calls the service three times with the same value (15) hard-coded in it, and looks for a 200 response code from the service, and the word “fifteen” in the response SOAP envelope. Read the rest of this entry »

Comments 5 Comments »

I’ve started introducing Apache JMeter at my workplace as a tool for automatic functional and load testing of Web Services. This is the first of what I plan to be the first of a multi-part series on setting up JMeter, developing tests for it, and incorporating its output as part of an overall strategy for testing our code as it moves through the lifecycle.

A bit about JMeter

At the JMeter site, they define JMeter as “…a 100% pure Java desktop application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.” One of the other types of applications it can test is a Web Service - which of course is not terribly different from testing a regular web application.
Read the rest of this entry »

Comments 1 Comment »