How to Include Load Testing in your CI/CD Pipeline

What is Continuous Integration (CI)?

Continuous integration (CI) is a software process which helps developers and tech people better manage code changes in their repositories, dealing with multiple branches and features and merging all these code changes back to a shared branch, master.

Pros of Continuous Integration (CI)

  • Continuous integration (CI) makes it easier to find and fix bugs quickly.
  • Continuous integration (CI) helps discover and resolve conflicts at an earlier stage of the development process.
  • Continuous integration (CI) handles automation of builds, running automated tests, Unit Testing, Component Testing, Functional Testing, Load Testing, Integration Testing.
  • Continuous integration (CI) helps with frequent integration and validation of code changes.

What is Continuous Delivery (CD)?

Continuous Delivery (CD), on the other hand, is the process which handles the release of the validate code changes (in the CI step) to different environments (testing, staging or production).

Integrate Load Testing Jenkins CI/CD plugin:

1. Create your LoadFocus account on https://loadfocus.com
2. Copy your LoadFocus.com API key from https://loadfocus.com/account
3. In Jenkins go to Manage Jenkins > Manage Plugins > Available
4. Locate and install LoadFocus Load Test plugin
5. Go to Manage Jenkins > Manage Credentials and add your LoadFocus.com API key to the stored credentials

LoadFocus.com API key to the stored credentials in Jenkins Credentials

How to use LoadFocus Load Testing Plugin:

  1. Click on the Configure option for your Jenkins job.
  2. In the Post build portion, look for the Load Testing by LoadFocus.com option and select the checkbox. See the screen shot below:
  3. Choose a load test, enter both the Error % and Response Time thresholds and click Save.
LoadFocus Load Testing Plugin Configuration

View Load Test Results in CI console

View the Console output and monitor the progress of your running load tests during job’s Post build actions.

Jenkins Console log after running a load test with Load Testing CI/CD Jenkins Plugin

Print PDF Load Test Report

You can view all the results of your load test with charts and full metrics for a better understanding on how your application behaved on the whole duration of the test.

White-label load test reports

Customize and white-label load test reports

Easily drag and drop to reorder items in your white-label load test reports in edit mode.

PDF Load Test Report generated by Jenkins CI/CD plugin

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store