Below is the bean shell script which will pick the store id if its stock level is in-stock.
Create two correlation parameters named C_StoreID & C_StockAvail and get all their values from the response by setting Match.No = -1.
Now C_StoreID_matchNr is the jmeter variable which will have the total count of the store id's that we were found.
C_StockAvail will have three different values that are "in-stock" , "Limited", "out of stock" and here we will use the "in-stock" value and get the stores associated with it.
No comments:
Post a Comment