Here you've got lessons' files.
Regular Expression Extractor
Sometimes you want to click in each link on page. You need to extract URL from response. It'll be simple if you have basic knowledge of RegExp. If you don't know what the RegExp is, please look at RegexBuddy.com. You need to add Regular Expression Extractor into your sampled page - presented on following screen.
After that, you should configure the new element. It's simple! You have to specify your variable name. I'm using now URLS as name. Result of regular expression extractor will be available as ${URLS}. We have also a pattern which looks like:
ForEach controller
The ForEach controller is really easy to use. You have to specify only three parameters.
On following screen you have simple sampler with new variable ${URL}
Now you're able to open all links from your page, but be careful, It can generate a huge load on the server. Also don't forget about asserting the result!
comments powered by Disqus