I have a use case, I hope i can find some help here.
We are using karate framework for API testing. As this is built on top of Cucumber, it requires creating feature files. Everything was working well.
Now, we have a requirement where we need to run the postman collections as it is. Karate supports generating the feature files on the basis of collection provided, but it skips the tests and pre-request scripts.
We are thinking to revise our approach here,
- need to run postman collection.
- all the tests and pre-requests script should run and if any assertion fails, it should report it back.
- the reporting should be more detail oriented.
I have come across newman and seems like a good fit, but can we generate cucumber/testng/junit type of reports with it ?
Can we use java based solution for this ? Installing the newman package and running it in using Runtime library, is this a good practice to have in project ?
As we are taking the requirement (1) as the topmost priority and this is directly connected to the postman, what alternates can we suggest for this ?