Right now I have two api methods to test
- POST indexmember
- DELETE indexmember
The problem is that indexmember has got the fields that have to be unique.
Therefore, when I run POST & DELETE once (# of threads == 1; loop == 1) - it works fine. Indexmember gets posted, then deleted, then i post again and it's fine, the unique values are still unique then.
But when I add more threads => jMeter starts POSTing several indexmembers altogether and some of the methods fail with our custom validation
"Errors": [
{
"Message": "The Index member with IndexId [id] and SecurityId [id] is already present in database."
}
],
"Success": false
I was thinking on making DELETE function as some kind of sub-sampler to the POST.
So that POST and DELETE go together in one thread.
Any advice will be appreciated.