shashank dwivedi
shashank dwivedi

Reputation: 1

how to handle unique links in jmeter

I have recorded a performance test for customer application where they can see their invoices.

I am using CSV config file for picking username and password of 1000 users.

after logging in i want to click on Invoice view button but every invoice link is unique so my script is being failed.

please Help

link example: ------url-----\unique Invoice number\view

Upvotes: 0

Views: 142

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

You need to extract path to "View" page after logging in into a JMeter Variable and use it as a parameter in the relevant request. The most commonly used test element for it is Regular Expression Extractor. Something like:

  • Log In
    • Regular Expression Extractor -> Get "View" page URL
  • Open "View" page using URL from the Regular Expression Extractor

See:

Upvotes: 0

Related Questions