Using JMeter to get OAuth

Source: Internet
Author: User
Tags oauth

Originally also want to ask to do the service side of the colleague to take a ready-made, the result is "do not know, I also useless, test over there with more." Wait, there's no nutritional answer.

Or ask international friends, StackOverflow asked a plugin but will not use http://code.google.com/p/jmeter-oauth/

Answer by:

Is your probleminchJMeter OAuth Sampler usage-orinchOAuth protocol testing strategy itself? What's wrong with JMeter OAuth Sampler guide on plugin's site?Beware only, sampler could not work or work not properly with Jmeter versions2.5. x/2.6-See related issue. You can also use OAuth Test Client foradditional verification. Updated:again, use OAuth Test Client with any HTTP analyzer (Httpfox isGood one) to study interactionusingOAuth Protocol-inch  This  CaseWith OAuth Test server.here'll find description of the steps of interaction that is easily mapped onto sampler on the picture in JMeter Oaut H Sampler Guide:Getting a Request Token ("Authentication"Sampler on the picture). Here are the extract Oauth_token and Oauth_token_secret fromSuccessfull Response to use furtherinchOAuth Sampler:oauth_token=requestkey&oauth_token_secret=requestsecretcorresponding extractors is displayed asChildren 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} is extracted fromThe 1st Sampler's response.

So I'm going to try, no more catch.

Using JMeter to get OAuth

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.