Closed vitlumin closed 3 years ago
Is this still an issue?
I believe your API prevents 2 identical calls. In your first test you POST (create a new user(?)) and then in the next you try to create that exact same new user again, which then fails as the user already exists. This seems more like a test design issue rather than library issue.
If the error happens always on the second executed test when you run robot
with --randomize
flag, then I believe that is the cause. In order to update existing data you should use PUT
or PATCH
requests instead of POST
.
I have test cases like below. exactly the same, but failed on the second. How could it be?