Videos, demos, webinars

Codemotion 2019 Amsterdam: Performance Testing for DevOps in the Cloud

At Codemotion Amsterdam, Lars Wolff talks about how to introduce and execute load test and performance testing in DevOps teams and how they benefit from regular test practice.

Slides

  • slides from presentation
  • plus some bonus extras
 

Test Case

The example test case from the presentation, see below to run it.

 
// System under Test – the target system you'll generate traffic against
definition.setTarget("testapp.loadtest.party");

// your Load Generator Cluster
definition.setTestOptions({
cluster: { sizing: "preflight", },
});

// user base of 10.000 unique users
// doing a user journey
// in highest hour in a week
var $userBase = 10000;

var $newUserPerSecond = $userBase / 60 / 60;

definition.setArrivalPhases([
// for 5 minutes
// start RATE new clients/users per second
{ duration: 5 * 60, rate: $newUserPerSecond }, // 100%

{ duration: 5 * 60, rate: $newUserPerSecond * 2 }, // 200%
{ duration: 5 * 60, rate: $newUserPerSecond * 3 }, // 300%
{ duration: 5 * 60, rate: $newUserPerSecond * 4 }, // 200%
]);

// the user Journey
definition.session("flower-shop-user-journey", function(session) {
session.get("/flowers", {
tag: "flower-list"
});

session.wait(30); // wait for 30 seconds

var flower = session.ds.generate("random_number", { range: [1000, 9999]});
session.get("/flowers/:flowerId", {
tag: "flower-detail",
params: {
flowerId: flower
}
});

session.wait(30); // wait for 30 seconds

session.post("/flower-cart/add", {
tag: "add-flower-to-cart",
payload: JSON.stringify({
"item": {
"qty": session.ds.generate("random_number", { range: [1, 9]}),
"flower_id": flower
}
})
});
});

Run the example test case

Just copy & paste it to app.stormforger.com and start a load test

And then, you can checkout how to define non-functional requirements.

Happy Load Testing

Sign up for our newsletter

Exclusive insights and strategies for cloud pros. Delivered straight to your inbox.


AUTHOR
CloudBolt
  Learn more

Related Blogs

 
thumbnail
The VCF 9 upgrade guide | Part 3 – After the Aria upgrade

Read part 1 | Read part 2 After the Aria upgrade: Using CMP to test your way out of Broadcom…

 
thumbnail
The VCF 9 upgrade guide | Part 2 – Aria vs CMP

Read part 1 | Read part 3 Aria in VCF 9: Same upgrade effort, a very different outcome. For VMware…

 
thumbnail
The VCF 9 upgrade guide | Part 1 – Why companies are making the move

Read part 2 | Read part 3 Why companies are making the move and what to watch for VMware Cloud…