For Selenium usually Page Object Model is used. What are good design patterns for REST Assured to organize structure, files?


That depend from the size of the project, with a large code base with multiple modules it might be appropriate to create a folder Service and then a class for each module like you will normally do with tests for the UI, but for a small project even a single Class(eg called RestApi) can be sufficient, so basically the same logic of POM still apply for structure and organisation of files the main difference is that rather than test the application from UI(clicking buttons that call API) you test directly the API.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.