Is that possible to execute newman collections from jasmine tests

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Is that possible to execute newman collections from jasmine tests



I have written a few api tests using jasmine in node platform. and we have some of the existing api testcases in postman collections. Now we are thinking of executing both the test cases in single execution..



We were able to execute the postman collections through newman commandline tool...



So is that possible to execute the newman collections from node platform / from jasmine test cases...



Someone please give me some idea on it.. We are badly in need of the combined execution....



Thanks in advance....





We are badly in need of the combined execution.... - why? Looks like XY problem. Even if being possible, wrapping it with Jasmine just provides additional moving parts and impairs efficiency and stability. Usually you don't need test runner for test runner for test runner for test runner...
– estus
Aug 10 at 21:23





1 Answer
1



You can't use Newman test directly for jasmine, the json structure of the files focused for Newman runner.



If you want to use scripts directly from postman - use newman for each test case
If NOT, use Mocha & Chai for comprehensive API automated testing
https://scotch.io/tutorials/test-a-node-restful-api-with-mocha-and-chai






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard