Load Testing CI/CD by LoadFocus

ID: loadfocus-loadtest

cloud testing tool

Load Testing CI/CD plugin is a Jenkins plugin for running load tests continuously for Websites and APIs provided by LoadFocus.

Helps you run load tests as a Post-build Action marking the Build as Passed, Unstable or Failed based on:

  • error percentage and response times.
  • all URLs from the test are considered when marking the status of the build.

Load Testing CI/CD plugin configuration Jenkins

With Load Testing CI/CD plugin you can run load test with thousands of parallel users periodically.

How It Works

Installation Steps

  1. Create your load testing account on LoadFocus
  2. Copy your LoadFocus.com API key from https://loadfocus.com/account
  3. Go to Jenkins Dashboard and click 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

Load Testing Add Credentials API key

6. Click Test LoadFocus API key button to make sure the API key is working properly.

Load Testing API key Test

Usage

How to use LoadFocus Load Testing Plugin for Post-build load tests:

  • Note: All Completed load tests from your LoadFocus account will be available in the plugin.
  1. Create a New Job or Configure an exiting one.
  2. In the Post-build Section, look for the Load Testing by LoadFocus.com option and select the checkbox. See the screenshot below:

Load Testing Add Post Build Action

3. Choose the load test, and enter both the Error % and Response Time thresholds. Then click Save.

Load Testing CI/CD Plugin Configuration LoadFocus

4. Run the Job and View Load Test Results in the job log

Load Testing CI/CD Plugin Job Log Results

* View the Console output and monitor the progress of your running load tests during job's Post build actions. * View the complete load test report of the LoadFocus.com when the job has finished. 3. or a more flexible `.size-limit.js` config file:
```js
   loadfocus.com: Test Started: Jan_19_2021_11_35_AM
   loadfocus.com: Test Config: Build UNSTABLE if errors percentage greater than or equal to 3%
   loadfocus.com: Test Config: Build FAILURE if errors percentage greater than or equal to 5%
   loadfocus.com: Test Config: Build UNSTABLE if response time greater than or equal to 500ms
   loadfocus.com: Test Config: Build FAILURE if response time greater than or equal to 1000ms
   loadfocus.com: Test Starting: waiting for test to start 0 sec
   loadfocus.com: Test Starting: waiting for test to start 5 sec
   loadfocus.com: Test Starting: waiting for test to start 10 sec
   loadfocus.com: Test Starting: waiting for test to start 15 sec
   loadfocus.com: Test Starting: waiting for test to start 20 sec
   loadfocus.com: Test Starting: waiting for test to start 25 sec
   loadfocus.com: Test Starting: waiting for test to start 30 sec
   loadfocus.com: Test Starting: waiting for test to start 35 sec
   loadfocus.com: Test Running: waiting for test results 40 sec
   loadfocus.com: Test Running: waiting for test results 45 sec
   loadfocus.com: Test Running: waiting for test results 50 sec
   loadfocus.com: Test Running: waiting for test results 55 sec
   loadfocus.com: Test Results: response time 59.667 ms, error percentage 0.0%, for https://example.com/. 
```

Load Test Results & Reports

  1. View the load test report

Load Testing CI/CD Plugin Whitelabel Results

2. Print the load test report to a PDF file

Load Testing CI/CD Plugin PDF report

ArchivesGet past versions
Version: 1.1.5
Released:
Requires Jenkins 2.249.3
Installs: 5
Maintainers
LoadFocus
Help us improve this page!
To propose a change submit a pull request to the plugin page on GitHub.