Created
January 17, 2013 12:45
-
-
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
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}" | |
} | |
} | |
# | |
# 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