Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created January 22, 2013 12:35
Show Gist options
  • Save hiroyuki-sato/4594329 to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/4594329 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'gridinit-jmeter'
test do
threads 50, {ramp_time: 10, loops: 100 }do
once do
submit 'Submit Form', 'http://openam.server:8080/openam/identity/authenticate', {
fill_in: {
username: 'user${__threadNum}',
password: 'user${__threadNum}',
uri: "realm=/company1.com"
}
} do
extract 'token_id', 'token.id=(.+)'
end
end
submit 'Authorization Form','http://openam.server:8080/openam/identity/attributes', {
fill_in: {
subjectid: '${token_id}'
}
}
end
table_visualizer 'table'
graph_visualizer 'graph'
summary_report 'summary'
view_results 'tree'
end.jmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment