newman command line execution
1. Install newman
1) installation nodejs.
Https://nodejs.org/en/download/
After a successful installation: node -v View version
2) Open the CMD
npm install -g Newman
3) Check the version newman
newman -version
2.Postman export TestCase
In the collection there, export, select Collection V2, export to json. If the environment, we need to export json configuration of the environment.
3. command line execution
Enter the directory FirstTest.postman_collection.json, execute the following command:
newman run FirstTest.postman_collection.json --reporters cli,html --reporter-html-export result.html
It will be to generate test reports result.html this directory