admin管理员组文章数量:1201170
I would like to run Postman tests as part of my Maven integration testing. There doesn't seem to be an elegant way of doing that, but I think I can do it in a klunky fashion.
For example, I could export the tests into a JSON file, and then run them later using a command line tool (e.g., newman) fired off from from some Java code. I am content to look at the results in "non-standard" way. In other words, I am willing to read a test file containing postman results instead of having more atomic integration tests, where each integration test runs and reports the results of a single Postman test.
I am looking for recommendations from people who have already tried to incorporate Postman in their JUnit integration testing. Example questions:
- Did you put the exported Postman JSON file under src/test/resources?
- Did you use some third-party tool (like newman) to run the Postman tests? If so, did you have a single JUnit "test" run the entire Postman test suite?
- Did you find a convenient way to integrate the Postman results with the JUnit results? How did you code that?
本文标签: junitHow to incorporate exported Postman tests into Maven integration testingStack Overflow
版权声明:本文标题:junit - How to incorporate exported Postman tests into Maven integration testing? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738628380a2103597.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论