Forum Discussion
Hi,
I saw this post on Stack Overflow, and I've read it here. I'm still not sure what the flow of your tests is.
Here's how I understand it...
- You POST an image and get a unique id indicating the id of the image
- You call DELETE, use the id from Step One and image is deleted
- You call DELETE a second using the id from Step One and the response is 'id does not exist'.
I'd say above behaviour is right and the issue you're seeing is more to do with the way you're organising your test(s). I think I can help, but I have to understand your test flow and and how you're organising your tests.
The bit I struggle with is the 'second' run. Do you the whole Test Suite twice? Or just call DELETE twice?
E.g.
Whole Suite twice:-
First Pass
- You POST an image and get a unique id indicating the id of the image
- You call DELETE, use the id from Step One and image is deleted
Second Pass
- You POST an image and get a unique id indicating the id of the image
- You call DELETE, use the id from Step One and image is deleted
Delete Called Twice
- You POST an image and get a unique id indicating the id of the image
- You call DELETE, use the id from Step One and image is deleted
- You call DELETE a second using the id from Step One and the response is 'id does not exist'.
Can you provide some screenshots of how your tests are organised and clarify what you're doing a little further? There's a lot of really, really good and skilled people on this site and i'm sure once the flow is clearer, you'll get a solution.
I was just about to ask the same questions!
Nice layout/explanation on your points fella,
Rich
- ChrisAdams4 years agoChampion Level 3
Cheers richie . By the way, Happy New Year.
- richie4 years agoCommunity Hero
Related Content
- 6 years ago
Recent Discussions
- 17 days ago