vinsguru / jmeter-rest-data-drivern

24 stars 28 forks source link

Not an issue but a question #1

Open rahulr892 opened 6 years ago

rahulr892 commented 6 years ago

How do you fetch the dynamic authorization key received from one API and pass to others. Stuck here. Thanks for the help

vinsguru commented 6 years ago

Each and every framework has it own pros and cons.

This kind of pure low-level keyword driven frameworks can use mostly only deterministic values. any dynamic #, text is little bit difficult to challenge. However, the scenario you mentioned can be done by modifying this slightly to add the regular expression extractor pattern in the CSV file itself. So that JMeter could get the pattern and extract the specific text which could be used in the subsequent requests.

However, I would go for a hybrid approach which uses - high-level keywords as explained here - not the low level keywords.

http://www.testautomationguru.com/jmeter-how-to-create-a-data-keyword-driven-framework-for-performance-testing/