newman

Can we read data from excel in postman for js tests?

别说谁变了你拦得住时间么 提交于 2019-12-07 18:20:28
Can we read data from excel in postman for js tests? OR can we write a js script which read data from excel/csv/notepad. I have wrote some js script which automate my API tests. I am using Newman to execute them from command prompt. I am writing automated test in postman. I want to import data from excel for my tests. Is it possible? There is any plug-in or anything present which can help me to achieve same I have a thought that using js I try to write a code which directly read/interacts file like excel/csv/notepad. Is it possible? Any help would be appreciated You can if you export your

Generate Sonar code coverage report from Postman tests

风格不统一 提交于 2019-12-07 10:13:06
问题 Does anyone know if it is possible(and how) to generate code coverage out of the Postman integration tests execution? We have integration tests based on Postman and we execute them on Jenkins via a Windows shell command. What is quite frustrating, that we don't know how to generate code coverage report and publish it into SonarQube. Thank you very much in advance! 回答1: You can run the tests in the localhost environment and this way coverage will be measured as usual. Actually this is a good

How do I run postman's newman in CI environment?

陌路散爱 提交于 2019-12-06 13:37:19
I'd like to run newman on my CI environment (solano-ci). newman is a tool that runs through requests in your postman collection. I have a newman script in my package.json , and I also have a npm start script that starts the server at localhost:3000 . newman is already configured with environment variables to test endpoints on port localhost:3000 . The issue is I need one script that starts the server ( npm start ) and then runs npm run newman . But there's a delay between when the server is available and when newman runs it's tests. If newman runs before the server is available it results in

Generate Sonar code coverage report from Postman tests

浪尽此生 提交于 2019-12-01 07:39:00
Does anyone know if it is possible(and how) to generate code coverage out of the Postman integration tests execution? We have integration tests based on Postman and we execute them on Jenkins via a Windows shell command. What is quite frustrating, that we don't know how to generate code coverage report and publish it into SonarQube. Thank you very much in advance! You can run the tests in the localhost environment and this way coverage will be measured as usual. Actually this is a good CI practice since you'll be testing the code you're trying to deploy rather than a previously published