Hello fellow Kevin Costner fans,
We are looking to start testing on our new API and of course Postman is on the top of our list.
However, we are wondering how to use Postman to get exactly the test logic that we want, because it involves doing stuff that’s not an API call.
For example:
- (prodcut API) Log in to the page
- (product API) Place an order
- (manual work) Now, we want to test AT THE DB that the order is placed correctly
- (manual work) Trigger backend to fulfill order
- (product API) Check order status
My initial idea is the following:
I will create a server (so easy to do in Python!) that exposes an API that leads to methods that automate those backend steps.
If we call that server AuxQA, the test will now look like so:
- (prodcut API) Log in to the page
- (product API) Place an order
- (AuxQA API) Validate db for order placement
- (AuxQA API) Trigger backend to fulfill order
- (product API) Check order status
And now, we can achieve all of this with Postman
My question is: Does this solution look alright? Is that what QA people normally do (surely, we aren’t the first who need to mix some API work with backend) or there’s a more popular/correct option?
Any discussion, pro/cons, tips would be highly appreciated!
Thanks