No video

Run Postman Collections in Jenkins with Newman

  Рет қаралды 20,474

Valentin Despa

Valentin Despa

Күн бұрын

Пікірлер: 44
@vdespa
@vdespa 2 жыл бұрын
Want to have ME be your Postman teacher? 🤔 Here's how: vdespa.com/courses/
@c-mnm
@c-mnm 2 жыл бұрын
This is amazing! Thank you so much Valentine for sharing your quality knowledge with us 🚀
@vdespa
@vdespa 2 жыл бұрын
You are welcome. Thank you for leaving a comment.
@Karthickmasanmasan
@Karthickmasanmasan 2 жыл бұрын
Really awesome video, was helpful. Valentin Despa Thanks for sharing.
@vdespa
@vdespa 2 жыл бұрын
Glad it was helpful! You are welcome. Thank you for leaving a comment.
@TarekFaham
@TarekFaham 2 жыл бұрын
Fantastic... I found it so useful...
@vdespa
@vdespa 2 жыл бұрын
Glad to hear that. I am glad that it was helpful.
@TarekFaham
@TarekFaham 2 жыл бұрын
@@vdespa can you please make a video about using newman with a testing framework like xunit and Selenium? I tried using Edge.js to script nodejs from C# but it didn't work. I'm getting error due to newman script using spread operator.
@vdespa
@vdespa 2 жыл бұрын
@@TarekFaham Not sure how to integrate that. Newman only works with Postman collections for testing.
@soniapascal760
@soniapascal760 2 жыл бұрын
Thank you very much Valentin for all your clear explanations: I was interested in doing this in a docker container but i do not manage to create container with jenkins + newman, it fails. i have used the docker image weareathlon/jenkins: do you have an other docker image already build to advice ? I think you are doing this in your udemy course, but i am not sure. Do you give any personnal help for a french lady ?
@vdespa
@vdespa 2 жыл бұрын
Try this image vdespa/newman
@user_dmbs
@user_dmbs Жыл бұрын
Very great video. Could be useful if you link it with deploy pipeline in Jenkins. I believe to automate the API test we should set the latest build for the environment
@vdespa
@vdespa Жыл бұрын
Thanks for your thoughts. You are welcome. Thank you for leaving a comment.
@momc2011
@momc2011 Ай бұрын
Could you share the collection please to practise
@Albymichael
@Albymichael Жыл бұрын
If i want to pass multipartfile as parameter in request how to make sure that jenkins takes that file during build?
@ananyakshetty1
@ananyakshetty1 2 жыл бұрын
Hi, Thanks for the tutorials, Its really helpful. I have 1 query. Is it possible to run a collection that has secret keys as variable in environment without exposing it from jenkins? We are planning to run postman collection file stored in bitbucket via jenkins but in that case I have to export password containing environmental variables too
@vdespa
@vdespa 2 жыл бұрын
You can use secrets in Jenkins and pass them to Newman from the CLI. Would this help?
@ananyakshetty1
@ananyakshetty1 2 жыл бұрын
@@vdespa Thanks for the reply but how to pass that in newman command any reference link you have? :)
@abhabansal8422
@abhabansal8422 2 жыл бұрын
Hi Valentin, Thanks for the tutorial. This is really helpful. If I want to run the Postman collection on some cloud based K8 setup through jenkins, the installation of newman and html report would be on my laptop or on the cloud setup? Also the collection has an environment (as a setup), how should I configure all this with jenkins. Please reply
@vdespa
@vdespa 2 жыл бұрын
Everything that you need need to be available to your Jenkins installation where Jenkins is running. Having stuff installed on your computer would not make sense.
@wanid1949
@wanid1949 2 жыл бұрын
Спасибо
@ghasemtabatabaei2049
@ghasemtabatabaei2049 Жыл бұрын
Great Video, Thanks for sharing. I am using both Environment and Collections. In Environment I am storing also some variable (like baseUrl).In this case, I still get similar to invalid URL (see in video 11:10) Could you please explain how to assign variable from environment when running newman, to be able to run successfully? - Thank you
@MonishaVetrivel-ui3uk
@MonishaVetrivel-ui3uk Жыл бұрын
Hai this is very helpful how can i access the global variable and how can i access the run time collection setted collection variable to another api
@filipjuza9056
@filipjuza9056 2 жыл бұрын
CreateProcess error=2, The system cannot find the file specified, now
@prabhavathiejjagiri4465
@prabhavathiejjagiri4465 Жыл бұрын
Hi despa when we run apis in postman it's working fine when I run apis in new man all apis got failed can u plz help me on this
@srinikalluri4705
@srinikalluri4705 Жыл бұрын
i have client id and password which i am passing through environment.json and able to execute it through postman but my requirement is how to automate through jenkins pipeline without commiting my password to gihub and run through the pipeline?
@ananyakshetty1
@ananyakshetty1 Жыл бұрын
Is this issue resolved? I have similar issue
@stag1sxm136
@stag1sxm136 Жыл бұрын
how to run multiple collections from newman? do we need to write a for loop that iterates through the folder containing the json files? if so , can you pls share that logic as well?
@vdespa
@vdespa Жыл бұрын
Yes, you can write a loop that does that. It is not clear why you need this in the first place.
@stag1sxm136
@stag1sxm136 Жыл бұрын
@@vdespa simply to be able to run more of them without manually having to edit it each time! if you can help here that will be great!! thanks
@ramakrishnanc9888
@ramakrishnanc9888 2 жыл бұрын
Hi Valentina Despa, If i have any external file which has request body for only one of the request in the collection and i need to run only that particular api request with external file and other api request in the collection with what ever request body which is specified in the request body, What should be the solution for the same? Thanks in Advance.
@vdespa
@vdespa 2 жыл бұрын
It is hard to answer this with the given information. Join the Discord community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@dailylife1504
@dailylife1504 2 жыл бұрын
The latest changes to Postman tests don't reflect in Newman?
@vdespa
@vdespa 2 жыл бұрын
From where does Newman read the collection?
@dailylife1504
@dailylife1504 2 жыл бұрын
@@vdespa I change a few things in the collection for example adding 1 request, then if I run Newman again, will the results update to the new change ?
@vdespa
@vdespa 2 жыл бұрын
@@dailylife1504 Depends from where you are reading the collection.
@shailendrakumartiranga8171
@shailendrakumartiranga8171 2 жыл бұрын
Hi Valentine Despa, I'm getting the "Assertion error" when I run my script using newman, I also used environment for the same . │ executed │ failed │ ├─────────────────────────┼─────────────────────┼─────────────────────┤ │ iterations │ 1 │ 0 │ ├─────────────────────────┼─────────────────────┼─────────────────────┤ │ requests │ 12 │ 0 │ ├─────────────────────────┼─────────────────────┼─────────────────────┤ │ test-scripts │ 24 │ 1 │ ├─────────────────────────┼─────────────────────┼─────────────────────┤ │ prerequest-scripts │ 14 │ 0 │ ├─────────────────────────┼─────────────────────┼─────────────────────┤ │ assertions │ 42 │ 42 │
@vdespa
@vdespa 2 жыл бұрын
You may need to generate the HTML report and see why the test fails.
@shailendrakumartiranga8171
@shailendrakumartiranga8171 Жыл бұрын
Hi @vdespa I'm getting this error error: EROFS: read-only file system, mkdir '/newman'
@srinikalluri4705
@srinikalluri4705 Жыл бұрын
newman run \users\projects\apitesting\api_testing.postman_collection.json -g \Users\projects\apitesting\Documentintake_sanbbox.postman_environment.json --global-var "Username={{Username}}" --global-var "Password={{Password}}" -- trying like this but somehow usename/password not getting and unable to generate secure token to hit the endpoint
@AppFanUAE
@AppFanUAE 2 жыл бұрын
I am using this command ( "newman run $PostmanCollection -d $JsonBodyRequest.txt) and work successfully for the Post Requests and it worked very good. but since I need the response back, I want to use it with node, but I don't know how to send the file $JsonBodyRequst.txt to the same Collection? please help
@vdespa
@vdespa 2 жыл бұрын
You need to look into how to read environment variables in a Node.js script.
Learn JavaScript for Postman API testing - Full Course for Beginners
1:28:39
Avoid these 10 Beginner Mistakes in Postman
9:10
Valentin Despa
Рет қаралды 9 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 2,6 МЛН
Newman Postman: How to Run Postman Command Line.(With Demo)[Ultimate Guide]
13:11
Compare two JSON responses with Postman
30:14
Valentin Despa
Рет қаралды 22 М.
Continuous Testing with Postman | Webinar
1:26:24
Postman
Рет қаралды 94 М.
Data-driven testing with different data sets for each request
16:48
Valentin Despa
Рет қаралды 16 М.
Loop request based on data from response in Postman
13:13
Valentin Despa
Рет қаралды 58 М.