How To Run Postman Test From Jenkins- Postman Integration with Jenkins

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • Running Postman test from Jenkins is quite easy, we just need Newman in order to run postman from Jenkins.
    Official link
    learning.postm...
    Postman Tutorials For Beginners
    • How To Download and In...
    All Playlist
    / mukeshotwani
    Connect with us:
    Linkedin- / mukesh-otwani-93631b99
    Instagram- / mukeshotwani
    Facebook Group- / 256655817858291
    Facebook Page- / seleniumwebdrivermukesh
    Twitter- / mukeshotwani
    Blog- learn-automatio...
  • НаукаНаука

Комментарии • 70

  • @amolnawale2177
    @amolnawale2177 4 года назад +2

    Thanks Mukesh for this video on newman. Your videos are really short and sweet and to the point, guiding us in the right direction of automation. I have many API collections in Postman which I used to manually run till now. But now you showed the way to integrate it CI/CD. Thanks again a lot.

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +2

      Thank you so much Amol, I am glad you really liked the postman series. I am also coming with many new concepts like integration with docker, git etc stay tunned.

  • @HOPE98901
    @HOPE98901 3 года назад +1

    Hi Mukesh , pls tell me how to get the postman report in jenkins

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Abhi, you can use this plugin plugins.jenkins.io/htmlpublisher/

  • @nachiketzadap4705
    @nachiketzadap4705 3 года назад

    hi mukesh how to solve this issue in jenkins
    'newman' is not recognized as an internal or external command,
    operable program or batch file.
    can pls guide

    • @yogilondhe1
      @yogilondhe1 2 года назад

      ruclips.net/video/nWAu27g1MHE/видео.html

  • @sheenashoby5236
    @sheenashoby5236 4 года назад +2

    In Jenkins, after you do the build, In the console: If anyone see's weird chars (unicode) being displayed instead of the table. Add the following in the Build command: newman run --disable-unicode "C:\Users\User\OneDrive\Desktop\Postman\COVID19.json"

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Thanks Sheena I have added 1 more video on Jenkins issue with postman..

    • @eggeggeggegg3077
      @eggeggeggegg3077 3 года назад

      Thank you so much, you are a saviour 🙏

  • @prasadreddy443
    @prasadreddy443 3 года назад +1

    hi mukesh how to solve this issue in jenkins
    'newman' is not recognized as an internal or external command,
    operable program or batch file.
    can pls guide

  • @jyotibehera6347
    @jyotibehera6347 3 года назад +2

    Hi sir,
    2nd part of this vedio you explained to get link from collection but how to get link for Environmnet variable and global variable? (In my cases my request is depend upon envrionment variable, and I am unable to fetch the link of environmnet variable because of this all my cases is failing), please suggest me.

    • @jpixellab5026
      @jpixellab5026 2 года назад

      Hi, did you find an answer to this? I am also facing these difficulties.

  • @sukumar4480
    @sukumar4480 Год назад +1

    How to add global & environment variables in a postman collection while we run

  • @engrbrown
    @engrbrown 10 месяцев назад +1

    thanks for you affort at speaking english slowly !!! 🤗 apreciate. !

  • @baan1221
    @baan1221 3 года назад +2

    Thank you Thank you Thank you so so much Mukesh.. followed all the videos in this series..am now confident with POSTMAN to go ahead with the interview..I have one on this Friday.

    • @Mukeshotwani
      @Mukeshotwani  3 года назад +1

      Best of luck buddy for friday interview. Do learn about API chaining, data drivem test in postman using json n csv.

    • @baan1221
      @baan1221 3 года назад +1

      @@Mukeshotwani thank you Mukesh for the wishes and suggestions.

  • @JitendraKumar-lr3vq
    @JitendraKumar-lr3vq 4 года назад +1

    its so easy to integrate with jenkins ..can we pass external data source through json or through csv file ..through postman ,..

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Yes Jitendra, we can pass the external data in collection using dynamic variable concept. I will try to post video on same soon.

  • @anandb3334
    @anandb3334 4 года назад +1

    Thanks Mukesh.
    One question :
    How do I send report of API tests using Jenkins ?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hi Anand, yes you can publish the report using html publisher plugin.

  • @AnuY-u9u
    @AnuY-u9u 4 года назад +1

    Thanks a lot Mukesh, all of your videos are very clear explanation and up to the point even a layman can understand..

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      So nice of you Sravani, I am glad you liked it.

  • @prabaldutta
    @prabaldutta 3 года назад +1

    How can we set a particular time in jenkins when we want this job that you showed for POSTMAN to run?

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Prabal, in Jenkins we have such option schedule (cron pattern) which will help you to run test at specific day/time.

  • @bhargavikongara794
    @bhargavikongara794 4 года назад +1

    Hello Mukesh, My environment file gets updated each time when I run the collection. How do we use the dynamic environment variable file (.json) to run the collection from jenkins?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hi Bhargavi, from Jenkins you can pass parameters and same parameter you can use in Postman collection too.

    • @bhargavikongara794
      @bhargavikongara794 4 года назад

      @@Mukeshotwani Hello thanks for the reply, can you go through this thread.
      github.com/postmanlabs/newman/issues/1679
      Above is the problem I am facing

  • @JitendraKumar-lr3vq
    @JitendraKumar-lr3vq 4 года назад +1

    Hi Mukesh ..is this is the last video of the postman series ..its a small request can you please make video on Put and Patch Update Request ..

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Hey Jitendra, not this is not the end, I will resume this series again with put and patch too.

    • @JitendraKumar-lr3vq
      @JitendraKumar-lr3vq 4 года назад

      Waiting for it mukesh

  • @ayushtiwari8682
    @ayushtiwari8682 4 года назад +1

    Hi Mukesh, Can we get html extra reports using newman command in Jenkins??
    If yes, then where we can see the report in our local or in Jenkins only?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hi Ayush yes we can do that using plugins.jenkins.io/htmlpublisher/ plugin in Jenkins post build action.

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Here is the sample video with same concept ruclips.net/video/zGeL5vJnE40/видео.html

  • @jeslinjames7357
    @jeslinjames7357 3 года назад +1

    How to install Jenkins...I cannt see that video ....can you please give me that videos link

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Jeslin, here is the video for Jenkins Installation ruclips.net/video/gT9qnZi3f74/видео.html

    • @jeslinjames7357
      @jeslinjames7357 3 года назад

      @@Mukeshotwani thank you sir 😊

  • @monikabisht5821
    @monikabisht5821 4 года назад +1

    your lectures are very good I m preparing for the interviews, u have some views in this series but I'll definitely recommend my friends to see these series

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Thank you Monika , wishing you best of luck. Let me know if any help needed from my side.

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      I will be posting few more video on postman like with Docker, mock server, api documentation etc. Thanks for referring my videos.

  • @chandansamant07
    @chandansamant07 4 года назад +1

    Nice and useful..Something new

  • @punith8666
    @punith8666 4 года назад +1

    Hi Mukesh, Sorry I am new to API testing. Is this series is api automation or manual?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Hey Punith, this is for both.

    • @punith8666
      @punith8666 4 года назад

      @@Mukeshotwani Ok thanks..😊

  • @shaiksameer2776
    @shaiksameer2776 4 года назад

    Mukesh bhai couldn't able to run environment variables from Jenkins.. While running from CLI it is perfectly fine.. But how to give path in Jenkins to run - e environment path??

  • @KPETCHIMUTHUPandiyan
    @KPETCHIMUTHUPandiyan 3 года назад +1

    Hi Mukesh,
    I have automated Postman test using Rest Assured API with the help of baseURI & basepath and its getting executed successfully in my local machine. I would like to execute my Rest Assured scripts in Jenkins but not sure how to achieve it.
    Could you tell me how i can my Rest Assured scripts in Jenkins. it would be really helpful for me.

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Pandiyan, it should work in local and remote as well. Can you tell me what issue or exception you are getting?

    • @KPETCHIMUTHUPandiyan
      @KPETCHIMUTHUPandiyan 3 года назад

      @@Mukeshotwani Hi Mukesh, am getting below exception while executing in Jenkins - Java.lang.NoClassDefFounderError: org/apache/http/HttpRequest.
      I have also configured all the required jars in jenkins. Can you tell me how to resolve this issue please.

    • @KPETCHIMUTHUPandiyan
      @KPETCHIMUTHUPandiyan 3 года назад

      Hi Mukesh,
      is there any assistance you could provide here.

  • @amitdhanke4013
    @amitdhanke4013 4 года назад +1

    Very good plugin life make easy 😅

  • @jainneha8590
    @jainneha8590 3 года назад

    Hello , I have question , if I m using collection link , due to my environment variable I m not getting success report . How to do that remotely ? As with data file we are providing collection json and variable json file . Please answer.

  • @ashwinidoshetty4810
    @ashwinidoshetty4810 2 года назад

    I was awesome 😊 sir!...I really appreciate this kind of skill set sharing with us.it really weightage to our knowledge/resume.

  • @manickavelsivakumar7982
    @manickavelsivakumar7982 2 года назад

    Hi Mukesh
    We have same pipeline for Dev and prod as well as maintaining same Newman scrips for both of them
    The issue is in prod we are getting low test failures. But in dev we are getting high test failures
    Recently we are upgrading Jenkins dev and what could be the cause? Can you please help me on this

  • @trafalgarlaw2699
    @trafalgarlaw2699 Год назад +1

    incredible

  • @manish89arya
    @manish89arya 3 года назад

    Hey Mukesh, is there any way we can use a dynamic collection link instead of a collection json file.
    I do not want to change newman command by updating collection json link or json file everytime i update my script

  • @jpixellab5026
    @jpixellab5026 2 года назад

    Hello Mukesh, in my automation test suite. the whole test depends on the postman environment variables which is created. But how I can add the environment which I have created? Could you please help me?

  • @atikawaheed770
    @atikawaheed770 Год назад

    What to select in Mac for Build option?

  • @julyuser1030
    @julyuser1030 4 года назад +1

    Good

  • @punitprakash91
    @punitprakash91 4 года назад

    @mukesh otwani- i have one api which needed custom proxy server to run it.. I have set the proxy in postman and able to run it successfully... But when I tried to run that collection from command line using Newman..... It is giving error as addrinfo not found...it is because when we run it from command line proxy is not set... So I am not getting how to run that api with proxy from command line.

    • @punitprakash91
      @punitprakash91 4 года назад

      Needed solutions as soon as possible.... As I tried from last 3 days and still not getting any solution

    • @punitprakash91
      @punitprakash91 4 года назад

      Exact error is
      Getaddrinfo ENOTFOUND www.test.com
      Url is dummy so ignore that..

    • @punitprakash91
      @punitprakash91 4 года назад +1

      I am able to resolve the issue... For proxy.. we need to set the proxy in host file of windows.

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Sorry Punit for late reply..

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      I am glad you fixed from your side.. I hope this would have given good learning too..