'I want to delete my added jobs in a table
I want to delete my added jobs in a table in JMeter. So when I try to delete in response it deletes only the first value, not the next value. I tried to use beanshell sampler but it didn't traverse to the next row to fetch the value
Solution 1:[1]
A "delete" request should be some form of HTTP POST request which takes "job" position or ID as the parameter, you can see how does the "delete" request for the "job" looks like using your browser developer tools or recording a single request using JMeter's HTTP(S) Test Script Recorder
Once you know how the request looks like and how the "job"s are being selected for deletion you should be able to:
- Extract the job IDs (or whatever is the parameter) using a suitable JMeter's PostProcessor and store them into JMeter Variables. The process is known as "correlation" and there is a lot of information on the topic in the Internet
- Use i.e. ForEach Controller to send a "delete" request for each "job" instance in the "table'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Dmitri T |