I want to delete mappings in DB using DataService. For this purpose
- I run search query for all ids in first thread group.
Using this method I put my Ids into the property. Now property has view like that
b69243ee6e9efdf66114200dc93881ac,b69243ee6e9efdf66114200dc90f5ba4,b69243ee6e9efdf66114200dc90e2184
I want to all delete mapping using this Ids from property one by one. For this purpose I need run BeanShell Pre-Processor and choose first id and put it into variable. Please, help me with this script.
I believe ForEach Controller is the solution. But in my experience, I use regular expression extractor to grab the values and put it in one variable then loop it using ForEach Controller. I think these step will help you:
For the details, just download this sample and try to run it.
I hope this will help you. :-)