'how to config apache jmeter 2.6 oauth 2.0
I need to perform tests using jmeter for an oauth 2.0 secured API. I have found the following plugin
http://code.google.com/p/jmeter-oauth/
I managed to successfully install it but now I am stuck with actually writing the tests. The documentation is missing....does anyone have a clue on how to actually use the plugin ?
Thanks.
Solution 1:[1]
Is your problem in JMeter OAuth Sampler usage - or in OAuth protocol testing strategy itself?
What's wrong with JMeter OAuth Sampler guide on plugin's site?
Beware only that sampler could not work or work not properly with Jmeter versions 2.5.x/2.6 - see related issue.
You can also use OAuth Test Client for additional verification.
UPDATED:
Again, use OAuth Test Client with any HTTP analyzer (HttpFox is good one) to study interaction using OAuth protocol - in this case with OAuth Test Server.
Here you'll find description of all the steps of interaction that are easily mapped onto sampler on the picture in JMeter OAuth Sampler guide:
Getting a Request Token ("Authentication" sampler on the picture). Here you have to extract
oauth_token
andoauth_token_secret
from successfull response to use further in OAuth Sampler:oauth_token=requestkey&oauth_token_secret=requestsecret
Corresponding extractors are displayed as children of Authentication sampler.
Getting an Access Token ("Token Validation")
Get Data ("Get Data" OAuth Sampler on the picture).
Find protocol flow and specification here.
Here ${oauth_token}
and ${token_secret}
are extracted from the 1st sampler's response.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |