Skip to content
  • ZipCode Api
  • Blog
  • About RedLine13
RedLine13
RedLine13
Primary Navigation Menu
Menu
  • Start Testing
  • Demo
  • Pricing
  • JMeter
  • Partners
  • Docs
    • Documentation Home
    • AWS Set Up for load testing
    • AWS Approval for Large Tests
    • PHP, NodeJS, Python Load Tests
    • Scalability
    • Jenkins Plugin Setup
    • Premium Features
    • Knowledge Base

Long Duration Tests

By: Rich Friedman

RedLine is great for running long duration tests. In addition to being incredibly cheap, it is also easy. We give you two ways to set long duration tests.

You can do the simple ping test by setting the # of Iterations parameter as seen in this example:

Looping a test

 

The above test 100 users will randomly ping the URL between 0 and 20 seconds (20,000 milliseconds) – so about 5 requests per second. We have set the iterations to be 3,000 – so this pattern will repeat 3,000 times. So the test will run for up to 20 seconds * 3,000 = 60,000 seconds, or about 16.7 hours.

You can also do this in your Custom Test Script. Put a loop inside of startTest around loadPage.  So something like:
$startTime = time();

do
{
  $this->loadPage();
  $duration = time() - $startTime;

  // Set progress
  recordProgress ($testNum, $duration/864);
} while ($duration < 86400);

In loadPage, you can change usleep(rand(…)) to change the delay and you can call goToUrl multiple times if you want to load multiple pages with each loop.

You can see more on writing Custom Tests here – https://www.redline13.com/blog/writing-a-custom-load-test/

2013-11-15
Previous Post: POST Request Type Tests
Next Post: Large Load Tests

Recent Posts

  • JMeter XML Format Post Processor
  • Order of Elements in JMeter
  • The JMeter Synthesis Report
  • Using the JMeter Plugins Manager
  • JMeter Rotating JTL Listener

Related

  • JMeter XML Format Post Processor
  • Order of Elements in JMeter
  • The JMeter Synthesis Report
  • Using the JMeter Plugins Manager
  • JMeter Rotating JTL Listener
  • Using Test Fragments in JMeter Tests
  • Step-by-Step Guide to Testing with JMeter
  • Functional Testing vs Performance Testing
  • A Gentle Introduction to Load Testing
  • Using the JMeter Counter Element

© RedLine13, LLC | Privacy Policy | Contract
Contact Us: info@redline13.com

Designed using Responsive Brix. Powered by WordPress.