Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created January 17, 2013 13:49
Show Gist options
  • Save hiroyuki-sato/4556012 to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/4556012 to your computer and use it in GitHub Desktop.
gridinit-jmeter. Add Listener objects GraphVisualizer, TableVisualizer and SummaryReport sample.
require 'rubygems'
require 'gridinit-jmeter'
test do
threads 1, {loops: 10 }do
once do
submit 'Submit Form', 'http://openam.server:8080/openam/identity/authenticate', {
fill_in: {
username: 'user1',
password: 'company1',
uri: "realm=/company1.com"
}
} do
assert 'contains', 'token.id'
extract 'token_id', 'token.id=(.+)'
end
end
submit 'Authorization Form','http://openam.server:8080/openam/identity/attributes', {
fill_in: {
subjectid: "${token_id}"
}
}
end
#
# Listeners.
#
table_visualizer 'alice'
graph_visualizer 'bob'
summary_report 'carol'
end.jmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment