Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created January 17, 2013 12:45
Show Gist options
  • Save hiroyuki-sato/4555704 to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/4555704 to your computer and use it in GitHub Desktop.
My first gridinit-jmeter test file. It is for OpenAM Server. RESTApi ref : https://wikis.forgerock.org/confluence/display/openam/Use+OpenAM+RESTful+Services
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}"
}
}
#
# I would like to add listener here.
# for example.
#
# listener 'SummaryReport'
# listener 'GraphVisualizer'
end
end.jmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment