I need to write a script that does the following (doesn’t matter to which website, I am only doing this to learn and practice):
- Simulates HTTP requests (method: get)
- Reads parameters from a document and uses them in the script
- Saves an expression from the response of the request and uses it as a
parameter in the next request - Saves the output to a file
After a few hours of reading the documentation and watching some video tutorials, I can manage step 1 easily. I have a little idea on how to do steps 2 and 4 though there might be a chance that I am not doing them efficiently. And unfortunately I have no idea how to do step 3.
Can someone help me in doing those steps please or at least give me some good links to tutorials that may help me out (I’ve found the official manual too confusing)?
Here are some links I used to learn this tool: For step 1 and for step 2 they helped a little but more guidance is welcomed.
The best sources of Jmeter documentation I know about are in Documentation section at JMeter website: user manual and best practices (for starters), Component Reference and Functions reference (once you are comfortable with basic Jmeter capabilities).
Especially you should read 4th, 5th and 6th sections of User Manual that will give you answers to those and many other questions that you’ll have.
Nevertheless I should give answers by myself:
${variable}in your testOnce you are comfortable with JMeter capabilities note that some useful functionality is absent in it but exists in JMeter plugins: