How to write API test cases in Postman using JavaScript

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

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

  • @myhome6435
    @myhome6435 4 года назад +27

    Hello! naveen.Today,I got selected as a Automation tester in reputed company.Thankyou so so so much.All credits goes to u.

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

    Really really helpful.... Today I got api to automate...but I was really clueless since I'm new to postman....Ur quick video really helped me since I was running out of time

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

    Loved this quick tutorial. Just the right stuff explained in such a short time period. Thanks a ton!

  • @abinashjena8928
    @abinashjena8928 4 года назад +9

    I don't want to sleep until I finish your latest vdo :)

  • @prachiksh
    @prachiksh 3 года назад +7

    You explain so well , my fear of API testing is going away thanks to you

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

    Very clear and useful. Thanks for uploading.

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

    Thanks for the detailed explanation. Can we write a pre request script to upload an image file as binary in the Body of the request?
    I have an api in which I upload the image binary in the body before sending the request. I'm trying to validate this through script. Could you please guide me how to write the script for this. Thank You.

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

    Hi Naveen, thanks for the video...Please tell me how can i read last_name for example from the request body?

  • @muneeshsharma4907
    @muneeshsharma4907 2 года назад +1

    Waao.. that was quick and easy.
    Thank you so much @Naveen

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

    Hello... Plz provide the api testing from basic to advance like selenium with java

  • @santhoshbala1121
    @santhoshbala1121 4 года назад +8

    Thanks Naveen - very useful. Apart from running single or individual API's could you also cover a video on how to run a sequence of API's (i.e End 2 End API's) covering a particular flow ? In other words how do we pass the Auth Token or Bearer token from one API to the other for an execution of a set of API's in a sequence ?

  • @TheMskman
    @TheMskman 4 года назад +3

    omg! it's super cool and pretty easy to use! thank you, Naveen!

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

    Missing this crucial 15 minutes costed me an interview rejection at a reputed company. Beautifully explained

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

    Very quick and well explanatory video on tests in Postman! Very much useful!!

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

    Hi Naveen your video is very helpful. I have a question how you can set the random to only alphabets(no numbers and special characters) and 5 characters long. I wan to do same for setting the first name dynamically. Thanks in advance

  • @lkkota41
    @lkkota41 4 месяца назад

    thank you..explained well..

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

    I refer same url from the video, but in POST request, Result shows 200 ok but in below, its showing field - name, message - cant be blank, please help me with this

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

    How to Update Mobile Number Randomly in the request with exact 10 digits

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

    Thankyou so much, you are best teacher. Please share more videos for postman. Complete postman videos.Thanks

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

    This is really good. Thank you Naveen.
    Kindly add more videos on this topic like Multiple API Execution, automated collection run etc.

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

    Hey Naveen, can you please share how to write GET call test cases using Javascript with parameter's value passed in the url..

  • @amruthaa.s456
    @amruthaa.s456 3 года назад

    Hi Naveen , Thanks for the great info on Postman test script. Can you please help us for how to write test script to run a request multiple times with different data sets. example : In request body will have 2 values like -- {
    "Id": "1234",
    "EditFields":["44","45"]
    } . We have to test this for different values with different response code like - Id=1234 then 200K response or Id=12sd then 500 response
    Kindly help us for the above scenarios. Thank you in advance.

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

    Such a crisp and clear explanation ..would be interesting to see the data parametrization in api tests.

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

    Naveen, please make a video on new carina framework. Set up and everything.
    Please naveen. I have learnt automation from your videos.

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

    Really useful video. Content is really good and exactly the one I was searching for. Thanks

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

    Thank you so much Naveen, you are amazingly good..

  • @SivaKumar-cx7db
    @SivaKumar-cx7db 2 года назад

    Hi Bro, how to upload response to a file using postman api under Tests in postman

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

    What I expect I got in my hand thank you😊👍🏻

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

    Hi Naveen,
    Firstly thanks for such a great video.
    Can you please explain if we can use Authorization tab to pass the bearer token instead of Header as shown in your video ? I tried passing the bearer token in Authorization tab but the response was unsuccessful.
    Cheers.

  • @kingfirea26
    @kingfirea26 2 месяца назад

    pls can anybody tell me hw to write test result with vs code

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

    U put {get.data.result. Email} .. my response doesn't have any header or parent.. how to set "" content checking"" bro . ..
    I put directly data .get.rollnumber ... I am getting error.. how to resolve

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

    Thanks for the video 😊👍

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

    Dear Naveen, would you be able to recommend me a person who can be my tutor in API testing particularly Java Script in Postman. I am stuck and I wish I can find a person who can teach me. Thank you so much 🙏🏻

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

    Great Naveen

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

    How to validate the memeberId in response body with square brakets.
    result{
    "members"[
    {
    memberId:7578888;
    }]

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

    Hello Sir. Can you please help me with,
    how to validate the request body is not having NULL or "" values

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

    Thanks Naveen. Very useful info. If any company’s testing into APIs using postman Manually, is there any format we can write test cases and how can we save our test cases in excel if they don’t have any test management tool?

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

    Hi sir, please make a video on thread testing.

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

    Hi, I have an api request which is configured to fetch values from CSV file and it runs well using collection runner but when I run the api individually by clicking on send button it shows an error because the values from CSV file are not accessible. Is there a way to solve this problem?

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

    Naveen, you are one of the best teachers, thank you so much and best of luck, I highly supporting you.

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

    can you please help me how to retrieve response object from input file.
    I am not able to do that in test scripts..
    My requirement is I have to login from 10 different users and validate user Role in response for each user

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

    Sir I want to start learning API from scratch ..do we have any series for the same please..

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

    Hello Naveen sir, your telegram link is not working.. Could you pls provide here a valid link so that I can join it

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

    Thank you Naveen...

  • @vd9100
    @vd9100 8 месяцев назад

    Thanks, Naveen! Great video!

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

    Easily understandable explanation.. sir if possible please create a series on RUclips of complete api testing course using postman.

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

    You are the best IT teacher I've known. I blindly rely on your videos and follow you on every Testing skill. The moment I need to learn any testing topic I search Blah blah Naveen automation labs and its there. Thank you for everything. You truly rock :)

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

    Thanks naveen for providing quickest understanding on API testing :-)

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

    To handle XML I am converting xml to json . Is there any other way expect this.?

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

    Sir , i am getting one error in failed test case as Cannot read property 'field 1' of undefined , how to fix it.

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

    Really Helpful.

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

    hi can any one please help me how to prepare automation feasibility document for web application (or) if you have any sample document please send or help me.

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

    Can you run this test cases automatically? I mean to run all the test in Postman from visual studio code?

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

    Thank you Naveen..I did it with the help of your video 👍👍

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

    Hi Naveen,
    I am executing below code, its not working, getting "pm is no defined". Would you please help me on this.
    pm.test("response is ok", function () {
    pm.response.to.have.status(200);
    });

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

    Thank you so much Man

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

    Thank you so much sir

  • @AmitSingh-pz3ji
    @AmitSingh-pz3ji 3 года назад

    hi ,do you have any full course on Postman and soap?

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

    Hi Sir... m getting this below response.
    {
    "_meta": {
    "success": false,
    "code": 401,
    "message": "Authentication failed."
    },
    "result": {
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
    }
    }

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

      Did you add Oauth2.0 authorization..? Even 'get' calls require authorization. Just login using google, fb / github account & get the bearer token.

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

    please do some videos on Java Scripting also sir it will be very Useful
    and your way of explanation is very clear and easy to understand.

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

    Can you share Api testing questions for 3 years experience based on real time

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

    Hi Naveen, can we give access token under Authorization Tab in postman.instead of creating Authorization key under Headers Tab in postman.Thanks in advance

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

    Thanxxxx naveen

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

    Helpfull session.. Thankyou

  • @waniya-huzzu
    @waniya-huzzu 4 года назад +1

    Awesome

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

    how to validate response size in postman

  • @vikramvimal5383
    @vikramvimal5383 11 месяцев назад +1

    thanks Naveen 🤍