Hi Derek,
This is not the website to record and add the correlation, its a Rest API Post call. I got a Post call endpoint url with some header information and Body data, sending those., but not returning any token. I am not getting Access token from Jmeter only through postman I am getting the token. I want to get the token in Jmeter to reuse for the next request by sending the token to create the registration page. Thanks, Ram ________________________________ From: derek kelly <dkman...@outlook.com> Sent: Saturday, 5 August 2017 7:03 a.m. To: JMeter Users List Subject: RE: OAUTH2.0 Authentication token The way I learned was watching YouTube videos. I don't know OAuth specifically, but maybe I can steer you in the right direction. You send your credentials to the authority It responds with "keys", kind of like session IDs You want to Add - Post Processors - Regular Expression Extractor You designate where to look (body, response header, etc) Reference Name is your variable name, which will be populated Regular Expression is what to look for (creating that is part art, part science) Template: I don't remember what this is. I have $1$ in a sample, so I think it's what to grab based on the hit. Match No you can leave blank for "grab the first hit" Default Value: Put whatever you want the variable filled with when no hit is found. I have "bad_data" in my sample. You may need to grab multiple pieces of data so you can send those back in subsequent calls. It's really useful to record once so you can look at the result tree and study what pieces of data are going back and forth. -----Original Message----- From: Ramkumar Selvaraj [mailto:ramkumar...@hotmail.com] Sent: Thursday, August 3, 2017 4:22 AM To: JMeter Users List <user@jmeter.apache.org> Subject: OAUTH2.0 Authentication token Hi All, I have a requirement to test performance for Rest web Api by creating a customer registration page. Before creating a customer page, it requires to get the access token from the registered system called Azure Active directory AD Tenant system where the system is deployed.By getting the token from OAUTH 2.0 where I need to send the Authorization token in the Header Manager as a next request to create the customer registration page. I am not sure how to do this,anybody can share some ideas or steps how to proceed this through JMeter. Please give me some inputs how to do this through JMeter. Its an urgent requirement. Thanks for the support Cheers, Ram --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org