Created
January 17, 2013 13:49
-
-
Save hiroyuki-sato/4556012 to your computer and use it in GitHub Desktop.
gridinit-jmeter. Add Listener objects GraphVisualizer, TableVisualizer and SummaryReport sample.
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
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