API testing using postman - Part 1

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 139

  • @shrutilembhe2413
    @shrutilembhe2413 7 років тому +2

    Hi Pramode
    Awesome video...It helps me a lot..thanks..!!

    • @ItsTechMode
      @ItsTechMode  7 років тому +2

      Glad you liked it, Please share with yours friends and check out other videos also, let me know if any other topic you want me to cover.

  • @josephyesuvadian3930
    @josephyesuvadian3930 6 років тому

    Thanks for this video,
    Question -
    How to get the value of Customer as Ram
    [
    {
    "Source" : "Ecomm",
    "EmpProperties": [
    {
    "key": "Customer",
    "value": "Ram"
    },
    {
    "key": "CREATED_TIMESTAMP",
    "value": "2016-08-11T15:31:59"
    }
    ]
    },
    {
    "Source" : "Store",
    "EmpProperties": [
    {
    "key": "Customer",
    "value": "Ganesh"
    },
    {
    "key": "CREATED_TIMESTAMP",
    "value": "2016-08-11T15:31:59"
    }
    ]
    }
    ]

  • @shuaizhou9751
    @shuaizhou9751 6 років тому

    awesome. Much better than other basic introduction video

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Thanks, Please share and subscribe :)

  • @manpreetmudhar8436
    @manpreetmudhar8436 6 років тому

    Thanks for explaining it in a simple way. I grab everything quickly. Keep uploading

  • @1120strange
    @1120strange 6 років тому +12

    yo what's with the background music? I kept thinking I was going crazy. it mad distracting

    • @billwindsor4224
      @billwindsor4224 6 років тому

      ^S S - yes, exactly, I agree

    • @Prayersol
      @Prayersol 6 років тому

      and that`s how I got from looking for an automation issue to listening to your playlists

  • @sneh208
    @sneh208 7 років тому

    Great Video. took a half day to get start running and create test suit. Great Work!!!

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Glad you like it , Expect some more awesome videos

  • @pardhivaerramilli6746
    @pardhivaerramilli6746 7 років тому

    Great video. Can you kindly give more set up instructions for command line for node.js and newman and then running the downloaded JSON test in command line. That part went too fast. Thanks

    • @pardhivaerramilli6746
      @pardhivaerramilli6746 7 років тому

      Hi ItsTechMode, I finally got this figured out. Newman got installed in users folder and then i also copied the Collection.JSON file into the users folder and then ran this command of newman run NewCollection.postman_collection.json and before that i used open . to see the folder structure in users and to paste the Collection.json file from My Documents to Users folder. Now it ran perfectly. Thank you for taking time to make this video tutorial.

  • @vanshikachauhan17
    @vanshikachauhan17 6 років тому

    Very well explained. Unable to find part 2 of this video. If available please share the URL. Thanks

  • @siddharthamutyala3372
    @siddharthamutyala3372 7 років тому

    Thanks Pramode. Helps me to recollect what i did.

  • @sethuchiyan16
    @sethuchiyan16 7 років тому

    This video is good. To verify the response values, can we connect to DB and compare ??

  • @sarikagowda4199
    @sarikagowda4199 7 років тому

    its very glad sir.......thank you so much..........but iam getting error saying dat unable install newman.....plz guide me to do dat.......

  • @javedalam831
    @javedalam831 6 років тому

    Great video bro.. please keep posting like this.

  • @ramkumarsubramanian9414
    @ramkumarsubramanian9414 6 років тому

    Hi Pramode! Thank you. Your videos of great help.
    I'm trying to use the snippets from Postman but the scripts which I have is quite different from yours. For example,
    //Mandatory fields should be returned
    tests["User Name is present"] = responseBody.has("userName")
    pm.test("User Name is present", function () {
    pm.expect(pm.response.text()).to.include("userName");
    });
    In the above, both tests are passing but I prefer the first one as it much easier to read. Can you plz tell me how I can change it

  • @tinyhydrogreens1932
    @tinyhydrogreens1932 7 років тому

    Great tutorial that included how to run tests. Thank you!

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Glad you liked it, Please share and like :), This is what motivates me

  • @maxcool8896
    @maxcool8896 6 років тому

    Thank you! I've learnt much more today!

  • @dmytroboiko1
    @dmytroboiko1 6 років тому

    Good job, dude. Helped me a lot. Thanks!

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Your welcome, please share and join Facebook group

  • @tranquocthanh949
    @tranquocthanh949 7 років тому +2

    this is what I am looking for. Great video! thank you my friend

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Glad you liked it, Please share and like :), This is what motivates me

  • @tuelyqa7951
    @tuelyqa7951 7 років тому

    Awesome video,
    How can i test the call back service API using postman test

    • @ItsTechMode
      @ItsTechMode  7 років тому

      +Tuely QA I am not sure if this feature is supported, I had this same issue I exported the postman request in Javascript and rewritten my code to handle it callback and assert it's response etc

  • @shradhameshram8639
    @shradhameshram8639 7 років тому

    Awesome video... Thanks!
    I need to ask the newman report link is local,how can we make it public which can be shared to other people?

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Create one script in python, html report created by newman upload to your server and send it to your client etc in mail or use jenkins to do the same for you.

    • @shradhameshram8639
      @shradhameshram8639 7 років тому +1

      Need more information on postman - I have created 4 request in a collection, if first request gives me result as id = #num ; how can i pass this id to other upcoming requests(passing this output as an input to other request?

    • @shreeparshwarajk3926
      @shreeparshwarajk3926 7 років тому +1

      if(responseCode.code==200){
      var jsonData = JSON.parse(responseBody);
      postman.setEnvironmentVariable("id", jsonData.id);
      You can use the above code.

  • @sagarpardeshi6623
    @sagarpardeshi6623 7 років тому

    Sir need your help on the following:
    I tried to install npm from CMD prompt using "npm install -g newman" but got the following error message.
    C:\Users\ADMIN>npm install -g newman
    npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
    C:\Users\ADMIN\AppData\Roaming
    pm
    ewman -> C:\Users\ADMIN\AppData\Roaming
    pm
    ode_modules
    ewman\bin
    ewman.js
    + newman@3.8.0
    updated 1 package in 24.291s
    Configuration of my machine is: AMD 3.60GHZ Processor, 8GB RAM,64-bit WIndows 10 OS

  • @the_fx_rider
    @the_fx_rider 7 років тому

    Hello, I want to test multiple POST APIs, and for that I want to send parameters using CSV... please help me....

  • @rimjhim4278
    @rimjhim4278 7 років тому

    zabardast...very good

  • @MuthuPrasannaTester
    @MuthuPrasannaTester 7 років тому

    It is comfortable, listening this video in which you teaching the concepts, at the same time could you please raise your voice little bit louder? An once again thanks for your effort.

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Thanks , Will take care next time.

  • @chrisbakker9978
    @chrisbakker9978 7 років тому

    Nice vid! How do i use setNextRequest to steer my test suite in PM Runner?

    • @ItsTechMode
      @ItsTechMode  7 років тому

      I would suggest you to read following article which is great - blog.getpostman.com/2016/03/23/conditional-workflows-in-postman/

  • @TheZk24
    @TheZk24 6 років тому

    I found it helpful. Thank you.

  • @EdiQ1985
    @EdiQ1985 7 років тому +3

    Nice tutorial, thanks for share...
    Greetings from Ecuador :)

    • @ItsTechMode
      @ItsTechMode  7 років тому +2

      Thanks :) Glad You liked it

  • @bharathk621
    @bharathk621 7 років тому

    Hi,
    I have several API's in my project that are that are secured using Authorization , So before using post methos i need to save my token in a variable . Can we go this in postman
    Thanks..

    • @ItsTechMode
      @ItsTechMode  7 років тому +1

      +Bharath K yes use the pre script in postman tab

  • @Sharmams4
    @Sharmams4 6 років тому

    You got a new sub. great video! Thanks for posting!

  • @GeektheGladiator
    @GeektheGladiator 7 років тому

    Nice video,
    Is there any way to run these test cases automatically instead of opening NodeJS command prompt and running the test case there?

    • @ItsTechMode
      @ItsTechMode  7 років тому

      +Saurabh Mishra You mean running only test case? You can use newman and if you want them run daily etc use Jenkins

  • @lalitarora138
    @lalitarora138 7 років тому

    Thanks for sharing this awesome video because it's very helpful for me to learn API testing by Postman Client.

    • @ItsTechMode
      @ItsTechMode  7 років тому

      +Lalit Arora Glad you like it, expect some awesome videos soon

  • @shrutisaraf8393
    @shrutisaraf8393 7 років тому +4

    nice video it helps me a lot thank you

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Glad you like it , Expect some more awesome videos

  • @manirandhawa879
    @manirandhawa879 5 років тому

    Helpful bro...

  • @mirali6660
    @mirali6660 7 років тому

    Cool mate very useful

  • @keerthirajb8742
    @keerthirajb8742 6 років тому

    Hi,
    I have a query. For eg, My API value is getting change. ("current_fuel_consumption": 106,) This 106 Value will get change whenever I am hitting the API. How to do I automate for this Scenario? Please advice

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Save the response or have verification in integer or integer with regex of values 3

    • @keerthirajb8742
      @keerthirajb8742 6 років тому

      @@ItsTechMode - Thanks for the Quick Response :) Glad to see your video's

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Glad you liked it, please share in your group that helps and keep me motivated. ☺️

  • @thetukiet
    @thetukiet 6 років тому +1

    Thank you very much. This clip saves my day

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Thanks , You liked it, Please share with your friends

  • @mayasingh1910
    @mayasingh1910 6 років тому +1

    Great One!!!

  • @sumitbanerjee1594
    @sumitbanerjee1594 7 років тому

    I've a doubt. When i select the Response body: JSON value check under Test tab in GET request I find a code like this:
    pm.test("Your test name", function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData.value).to.eql(100);
    });
    how to deal with it?

    • @shabnam7039
      @shabnam7039 6 років тому

      Hi @Sumit : I also get the same code and just added like this
      pm.test("Your test name", function () {
      var jsonData = pm.response.json();
      pm.expect(jsonData[0].title).to.eql("sunt aut facere repellat provident occaecati excepturi optio reprehenderit");
      });
      its working fine.
      cheers :)

    • @babua3778
      @babua3778 6 років тому

      I have added like below but getting error (TypeError: Cannot read property 'number' of undefined)
      pm.test("Your test name", function () {
      var jsonData = pm.response.json();
      pm.expect(jsonData[0].lineStatus).to.eql("ACTIVE");
      Please help

  • @chandrasekhar83
    @chandrasekhar83 6 років тому

    Any help me to configure newman runners to teamcity build...

    • @ItsTechMode
      @ItsTechMode  6 років тому

      www.npmjs.com/package/newman-reporter-teamcity

  • @sasu7090
    @sasu7090 7 років тому

    nice tutorial, but voice is extremely low from around 12:00 and background music is very distracting.

  • @GeektheGladiator
    @GeektheGladiator 7 років тому

    I am using windows, I installed NodeJS followed by Newman. I have API collections too (as you shown in your video)
    I saved the API collection in a saperate folder. now I am trying to API collections using newman using normal command prompt window (not sure from which window I have to execute) but it is not successful and says unable to read the file.

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Email me at pramoddutta@live.com, Lets discuss

  • @srinivaskadiyalaSKC
    @srinivaskadiyalaSKC 8 років тому

    At 13.03: What software you have opened to run ?

    • @ItsTechMode
      @ItsTechMode  8 років тому

      Its Terminal windows with "newman" command line postman collection runner. more details
      blog.getpostman.com/2015/04/09/installing-newman-on-windows/

    • @ItsTechMode
      @ItsTechMode  8 років тому

      +srinivas kadiyala go to nodejs.org/en/download/ and download install the Windows or Mac version that you need.
      Once Node.js is installed, we need to install Newman by running in the Command Line:
      npm install -g newman

    • @RayRana
      @RayRana 7 років тому

      @tsTechMode at that very timeline you've entered a shortcut key to check for json.
      can you please explain

  • @sagarpardeshi6623
    @sagarpardeshi6623 7 років тому

    Very useful video

  • @JV-im2wq
    @JV-im2wq 5 років тому

    Do anyone know how to convert lowerkeys to upperkeys from postman

  • @TheNishi42
    @TheNishi42 7 років тому

    Nice video,Thanks.

  • @tlprashant
    @tlprashant 6 років тому

    Facing problem while installing newman, couldnot download & run, please help

    • @bestofclubhouse746
      @bestofclubhouse746 6 років тому

      blog.getpostman.com/2015/04/09/installing-newman-on-windows/
      www.npmjs.com/package/newman

  • @poornaselvi4642
    @poornaselvi4642 7 років тому

    nice video..Thank you so much

  • @bishopoftroy
    @bishopoftroy 7 років тому

    why is the video longer with black screen ? it is for when searching longer videos ?

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Messed up with the video editor, Sorry :)

  • @dhillandhillan9121
    @dhillandhillan9121 6 років тому

    why did you upload 26:09 min video when the video ends at early 15...???? was it by mistake ....?
    people want to know....@ItsTechMode

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Guys it was a mistake there is nothing there, please ignore it, youtube doesn't allow me edit the video after 100k views, sorry and enjoy.. 😅😅

  • @SainiAnkur
    @SainiAnkur 7 років тому +1

    nice video... Thanks!

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Glad you liked it, Please share and like :), This is what motivates me

  • @GeektheGladiator
    @GeektheGladiator 7 років тому

    One very important question : We two people are doing testing using Postman? API is taken care by me and another by him. finally we have merge both scripts toghter. Please suggest how would we do that?

    • @ItsTechMode
      @ItsTechMode  7 років тому

      What you guys can do is, Import the scripts to Code (In any Programming language and )create your own asserts based on that.
      www.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets

  • @balaramp718
    @balaramp718 7 років тому

    Why background music is coming???

  • @bishnuchowdhury2250
    @bishnuchowdhury2250 7 років тому

    good stuff

  • @billwindsor4224
    @billwindsor4224 6 років тому +2

    Great tutorial content on Postman, *thank you!*. (BUT: please stop playing music in the background -- very distracting.)

  • @prometheus5700
    @prometheus5700 6 років тому

    what's a test soot?

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Test Suite. Please pardon that

  • @tlprashant
    @tlprashant 6 років тому

    How to generate the html test results with Postman

    • @ItsTechMode
      @ItsTechMode  6 років тому

      stackoverflow.com/questions/40780141/how-to-make-api-html-report-with-the-help-of-command-prompt-other-then-newman

  • @preetiduhan9937
    @preetiduhan9937 6 років тому

    Can you please make video without music?Content is very helpful but this is music is very distracting.

  • @mailethiesen
    @mailethiesen 7 років тому

    Thank you so much!

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Glad you like it , Expect some more awesome videos

  • @soniyas5359
    @soniyas5359 7 років тому

    I am getting error in installing Newman, help?

  • @musaibjeelani
    @musaibjeelani 6 років тому

    thanks

  • @peaceandpiesperson
    @peaceandpiesperson 7 років тому

    very good tutorial, thank you .. but the music in the background makes it a bit hard to focus on what u're saying .. thanks !

    • @ItsTechMode
      @ItsTechMode  7 років тому

      +peaceandpiesperson will take care next time

  • @mayankmaheshwari6400
    @mayankmaheshwari6400 6 років тому

    The voice needs to be loud and clear. too many un-necessary clicks makes it irritating.

  • @sduvvarapu007
    @sduvvarapu007 6 років тому

    it was a nice video but the background music was irritating literally

  • @avinashsharma2159
    @avinashsharma2159 5 років тому

    Bro , next time plz stop background music and plz speak clear....

  • @batasheemum
    @batasheemum 6 років тому

    needs a structure....i tried for 10 min and i am done.

  • @sarathjai5870
    @sarathjai5870 7 років тому

    Please remove background music. No one can understand. The background music distracting .

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Sure, will take care next time

  • @vigneshmathivanan9203
    @vigneshmathivanan9203 7 років тому

    Good intro tutorial. The background music was distracting and not helpful. I'd suggest not using it in future videos

  • @arnabsaha6684
    @arnabsaha6684 7 років тому

    Hi, the video is good but can you please turn off the background music.

  • @realB12
    @realB12 7 років тому

    I do not understand this speaker and the resolution is so poor I am not able to see the screen. Maybe this is enough in a 3rd world country but not in a world where we have universities and quality tools!

    • @rsmb99
      @rsmb99 6 років тому

      Do you know where Postman was developed ? It was created by Abhinav Asthana, a programmer and designer based in Bangalore, India. CEOs of Google and Microsoft are Indians ! If you still think India is a 3rd world country, it only demonstrates your ignorance, haughtiness and racist attitude !

    • @ItsTechMode
      @ItsTechMode  6 років тому +1

      Thanks for the feedback, will take care next time, I tried my best to share my knowledge with limited resources. Please understand my situation here :)

    • @rsmb99
      @rsmb99 6 років тому

      Why do you want to reply to such racist, misinformed a**holes who think India is a third world country with no universities ! I didn't have any problem understanding you or seeing the screen despite slightly poor vision in my right eye ! The chief aim of such people is to show India in bad light. They go around hunting in forums doing that. Hope you'll understand it some day.

  • @educatorestrada29
    @educatorestrada29 7 років тому

    you went too fast; i'm a newbie, in postman, and the details you give are good, but, your going so fast i'm losing the important message.
    Lost in Postman

    • @ItsTechMode
      @ItsTechMode  7 років тому

      Do check out the other tuts , You will get all the details

  • @santhosht5649
    @santhosht5649 6 років тому

    Last 15 mins was empty

    • @ItsTechMode
      @ItsTechMode  6 років тому +1

      It was a mistake, nothing there please ignore

  • @spicybite3938
    @spicybite3938 6 років тому

    Back ground music sucks

  • @avinashsharma2159
    @avinashsharma2159 5 років тому

    irritating music.

  • @KhushiPatel-uo5gx
    @KhushiPatel-uo5gx 6 років тому +1

    The way you talk like say bla bla.. can't hear you properly.. speak slow n clear

    • @ItsTechMode
      @ItsTechMode  6 років тому

      Will take care next time

    • @luisenriquegonzalez5130
      @luisenriquegonzalez5130 6 років тому +1

      I find your video clear! thanks for sharing!!

    • @mayankmaheshwari6400
      @mayankmaheshwari6400 6 років тому

      same issue I faced. The person is just running here and there. clicking everywhere possible he can.