-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset/Clear RequestContext Values #24
Comments
My initial thought was to add a simple method to the Destination that would create a new instance of RequestContext. But now I am not sure that is the best way. Open to suggestions... Example: |
I thought about this since the last week and came to the conclusion that the RequestContext is the problem. Let me explain this: The limitations of the RequestContext is obvious. I came up with an idea that goes beyond the RequestContext. I call it "Test Method Chaining". We need a configuration that can change between two test method calls. This would be also good to extract links from responses and call those links in the next test method (HyperMedia Linking). I need to think more in detail about this to come up with a design how this can look like. But I want to implement this within the next weeks. The drawback about this approach is that their would be a relation between test methods. While this is bad for unit tests I think it's not a problem for integration tests because they should test the whole system. What do you think? I hope I coud make it clear. Don't hesitate to ask if my explanation is scrappy ;) |
The concept sounds good. When I first saw #17 even, I had sort of had the same feeling that unit tests should be independent of each-other (and generally they should be), but the more I thought about it for REST integration testing, the more I came to the same conclusion that being able to control order of execution and the relationships between various tests could be very useful. That said, I would still want the unit tests to be as independent as possible. I would be interested to know more as the design takes form. Let me know if I can be of any help. |
Any updates on this? I would be glad to assist if you need a hand. |
Will work on this during the weekend and next week. Will keep you posted. |
Hi, |
Couldn't make it on the weekend. But I fixed other issues ;). I'm on a conference next weeks which needs preparation this week, so less time ;( Will try to work on this next. Will keep you posted. |
Just curious if you have any more details about your "Test Method Chaining"? I am very curious about what you have in mind. |
Currently various Objects can be added to the RequestContext, but then there is no way to make changes later.
Say you wanted to change out or remove an Authentication or Path Segment.
The text was updated successfully, but these errors were encountered: