Last active
September 7, 2016 01:58
-
-
Save gregw/c16d2909ec1e8f84a368e52bf6a33958 to your computer and use it in GitHub Desktop.
Profile example
This file contains 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
LoadGeneratorProfile sample = | |
new LoadGeneratorProfile.Builder() | |
.resource("/index.html") | |
.then() | |
.resourceGroup(new ResourceGroup.Builder() | |
.resourceGroup(new ResourceGroup.Builder() | |
.resource( "/style.css" ) | |
.then() | |
.resourceGroup(new ResourceGroup.Builder() | |
.resource( "/logo.gif" ) | |
.resource( "/spacer.png" ) | |
.build())) | |
.resource( "/fancy.css" ) | |
.resourceGroup(new ResourceGroup.Builder() | |
.resource( "/script.js" ) | |
.then() | |
.resourceGroup(new ResourceGroup.Builder() | |
.resource( "/library.js" ) | |
.resource( "/morestuff.js" ) | |
.build())) | |
.resource( "/anotherScript.js" ) | |
.resource( "/iframeContents.html" ) | |
.resource( "/moreIframeContents.html" ) | |
.resource( "/favicon.ico" ) | |
.build()) | |
.build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment