Noga Cohen is a Sr. Product Marketing Manager for CA BlazeMeter. She manages the BlazeMeter blog and other content activities. Noga focuses on creating technological content in the fields of performance, load testing and API testing, both independently and by managing writers who are developers. Noga has more than 5 years of experience in a wide scope of writing techniques: hi-tech, business, journalist and academic.

Learn JMeter in 5 Hours

Start Learning
Slack

Run massively scalable performance tests on web, mobile, and APIs

Jul 24 2017

Reuse Your Functional API Tests as Load API Tests in 7 Steps

The technological age of agility has improved product quality, time to release and work processes. It has also created new positions in R&D like DevOps, and new working methodologies like Scrum. Developers now are completing end-to-end cycles by themselves in short sprints, and constantly releasing new fixes and features.

 

Therefore, one of the new key needs by developers is tools and methods to save them time. In testing, this need has created a movement from proprietary testing tools that require high expertise, to open-source. Instead of counting on a Center of Excellence to get test results, they are now counting on themselves and on the open-source community for that. (To learn how to convert your LoadRunner scripts to open-source, click here).

 

Another way for developers to save time is to reuse their existing scripts for as many requirements as possible. This saves the time of creating a new script, and also enables automation. Automation is the developers’ way out of painstaking work.

 

So instead of creating one script for API functional testing and another for API load testing, there are certain cases where the same script can be used for both. Whether with open-source tools like Apache JMeter™, Gatling or Locust, or with automation frameworks like Taurus, a simple change in the script can be very useful.

 

Here are 7 steps for reusing your functional API tests as load tests:

 

1. Choose a load testing tool. Not sure which one to choose? Here’s a useful guide.

 

2. Create your test scenario. If you want to learn how to create a scenario with JMeter, click here.

 

3. Set the number of users in the Thread Group to 1 and the Loop Count to 1.

 

reuse api functional tests as load tests

 

4. Run the test.

 

5. Now check your test results. This was your functional test.

 

6. If your test results were satisfactory, change the number of users in your Thread Group according to your target load. We recommend ramping-up slowly.

 

functional testing to load testing

 

7. Run your test and check your results. This was your load test.

 

That’s it! Open-source testing provides you with a lot of options. If you want to automatically run your tests, you can do so with open-source  Taurus. Taurus supports a large number of open-source load testing tools.

 

Learn load testing with JMeter from our JMeter academy.

 

Click here to subscribe to our newsletter.

 

To try out BlazeMeter, which enhances JMeter abilities, just put your URL or JMX file in the box below and your test will start in minutes.

Interested in writing for our Blog?Send us a pitch!

Your email is required to complete the test. If you proceed, your test will be aborted.