Created
March 16, 2016 07:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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