![]() Type npm prefix -g (usually it defaults to user folder and returns Type node -v (should return node version) Open Command prompt as run as Administrator I am able to run my tests now.ĭetailed Steps to install nodejs, npm and newman on teamcity server Also before I wasn’t resetting the npm Config to default which I did this time. I was able to resolve the issue by installing newman in C:\npm folder instead of under any system folder. But at least in my local desktop I can newman run from the absolute path where my tests are locatedĬ:\Users\user\source\repos\AutoTests>newman run APIAutoTests.postman_collection.json -environment ApiProtest.postman_environment.json ![]() However, I tried running the tests on my local desktop, I can run the tests from tests directory but that approach wouldn’t work in TeamCity since it shouldn’t be absolute path for location of the tests. In Teamcity server, I also tried running running newman from the directory where my tests are located it shows ‘node’ is not recognized. Probably, it is not able to find where newman is installed? I also tried this $setx /M PATH %AppData%\npm but still doesn’t work When I run from TeamCity “Command line build step” it doesn’t recognize newman commandĪs you can see in the step 2, I am just running the command $ newman -version ,but it is exited with code 0. I followed this link for setup Although I have installed node, npm and newman -g. I am trying to run postman tests on Teamcity server.
0 Comments
Leave a Reply. |