Home > OS >  Jmeter - how to get the data of the latest selected value from the dropdown after login?
Jmeter - how to get the data of the latest selected value from the dropdown after login?

Time:10-21

logged into the website by using the csv .By default particular customers data will be displayed on the page. Different customers would be present in the dropdown where the Admin has the access to select the customer and then the data of that particular customer would be displayed on the screen

Used blazemeter to generate the jmeter script where the default data response is generated all the time instead of the selected customer ID?

Kindly help me know how to pull the latest selected customer data In the jmeter and use that customer data in the consecutive steps?

CodePudding user response:

if you mean you want to dynamically select customer and fetch data respective to the selective customer and want to use that data in the consecutive steps.
For this

  • First identify from which endpoints your frontend is receviving list of customers and their details.

  • Once identified you will be having 2 endpoints

  • 1st which provide all the list of customer/ or select is pre-rendred

  • 2nd which provide detail for that customer

  • Now extract data from 1st endpoint or HTML if pre-renderd save it in varaibe

  • Now call the 2nd endpoint and extract the required data and save it in variable

  • now the variable can be used in the consecutive requests

CodePudding user response:

JMeter doesn't know anything about "dropdowns", it acts on enter image description here

  • Related