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

  • Guest Post – IoT Load Testing
  • Load Testing Users in India
  • Load Testing in India
  • Troubleshooting Common Issues with Selenium Tests on RedLine13
  • Extracting Metadata from Load Generator Instances

Related

  • Load Testing Users in India
  • Guest Post – IoT Load Testing
  • Guest Post: Load Testing with Locust and JMeter on RedLine13
  • Run Your RedLine13 Load Tests from Hyderabad, Jakarta and Melbourne
  • Load Testing in India
  • Selenium Basics for Load Testing
  • Pitfalls of Selenium Load Testing
  • Troubleshooting Common Issues with Selenium Tests on RedLine13
  • Extracting Metadata from Load Generator Instances
  • Case Study: iCIMS, The Talent Acquisition Software Experts

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

Designed using Responsive Brix. Powered by WordPress.