Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save larsvegas/3184246c7871efe8da34 to your computer and use it in GitHub Desktop.
Save larsvegas/3184246c7871efe8da34 to your computer and use it in GitHub Desktop.
StormForger in AWS Heiter und Wolkig WebCast - JavaScript Test Definition of WebCast Test
//
// Find the WebCast Series:
// http://aws.amazon.com/de/webcast-wolkig-und-heiter
//
// Find the Video here:
// https://www.youtube.com/watch?v=06Pdo0ljHKo
//
//
// Create a StormForger Account here:
// https://stormforger.com
//
definition.setTarget("api.example.com");
definition.setArrivalPhases([
{
duration: 2 * 60, // 1min in seconds
rate: 5, // clients per seconds to launch
},
{
duration: 2 * 60, // 1min in seconds
rate: 10, // clients per seconds to launch
max_clients: 1000
},
{
duration: 2 * 60, // 1min in seconds
rate: 25, // clients per seconds to launch
}
]);
definition.setTestOptions({
cluster_size: "small",
});
var startDate = "2015-10-15";
var endDate = "2015-10-23";
definition.session("features", 80, function(session) {
session.get("/api/feature?startdate=" + startDate + "&enddate=" + endDate, {
tag: "features",
gzip: true
});
});
definition.session("slides", 20, function(session) {
session.get("/api/slides?startdate=" + startDate + "&enddate=" + endDate, {
tag: "slides",
gzip: true
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment