Session 10: API Testing | Postman | e-Commerce API's | How to Run Collections | Git Github & Jenkins

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

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

  • @r.rajalakshmi369
    @r.rajalakshmi369 8 месяцев назад +6

    God bless you sir. You are a proper example of how a Guru has to be. You are great sir.

  • @jayakumarnarayanan2607
    @jayakumarnarayanan2607 12 дней назад +2

    Great Tutorial. long live our tutor.

  • @mikeroberts4588
    @mikeroberts4588 Год назад +5

    As someone who has been working with Postman for some time, this course has been invaluable to re-enforcing what I do know, as well as teaching me some tricks I did not. Your teaching style is second to none. Many thanks for the hard work you have put into this course. I look forward to following the RestAssured course next.

  • @faisal_the_leo
    @faisal_the_leo Год назад +37

    Some people want to be Astronaut, some want to be Super Hero. I want to be PAVAN Sir :)

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 Год назад +10

    @1:18 Running XAMPP server
    @2:25 Opening e-Commerce API'
    @3:04 Creating API user
    @05:06 Generating API key of API user
    @06:30 API documentation
    @24:56 Create collection in POSTMAN
    @28:03 Create collection variables in POSTMAN
    @33:23 Create token using POST request with variables and API key
    @35:32 (pm library) Validate status code and JSON response
    @39:04 (pm library) Create collection variable for API key from JSON response to use as authorization for next requests
    @43:20 Add product to cart using POST request with variables
    @44:11 Refer collection variable to use as authorization
    @46:19 (pm library) Create Product ID & quantity using collection variable in pre request script
    @51:43 (pm library) Validate status code and JSON response
    @55:12 Create GET request with product ID as input
    @58:12 (pm library) Validate status code and JSON response
    @58:28 (pm library) Create enviroment variable for cart ID from JSON response for next requests
    @01:02:57 create POST request using enviroment variable for cart ID to update quantity
    @01:05:57 (pm library) Validate status code and JSON response
    @01:07:38 create POST request using enviroment variable for cart ID
    @01:08:21 (pm library) Validate status code, validate JSON response and delete all variables
    @01:12:28 Run as collection
    @01:17:28 Install nodejs
    @01:19:07 Install newman
    @01:21:07 Export collection & run in command prompt
    @01:25:13 General HTML report
    @01:31:13 Run collection remotely using url
    @01:35:12 Start JENKINS
    @01:38:20 Run collection in JENKINS
    @01:43:50 General HTML report in JENKINS
    @01:46:34 Create empty repository in GITHUB
    @01:47:43 Push collection into remote repository
    @01:55:33 Run GITHUB collection in JENKINS

  • @ramakrishnavaidya7296
    @ramakrishnavaidya7296 Год назад +4

    My Dear Sir, There are no words to praise your knowledge and the way of explanation. i am watching all your video.

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

      Thanks

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

      Bro nen automation testing side unnanu..eppdu ee postman tool for automation cover aindha ee course ??

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

    Thank you sir for your invaluable lessons, I just finished 3-4 playlists of yours within QA Testing domain. I'm amazed by the depth of content you have went into with each topics and each of the concepts are invaluable. Only because of your videos I'm comfortable with Automated Testing!

  • @alcor15519
    @alcor15519 9 месяцев назад +1

    Thank you for the sequentially well organised and super detailed sessions. Most grateful 🙏🙏🙏

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

    I must say "THANK YOU VERY MUCH PAVAN SIR" for all the efforts you have taken for sharing this knowledge here 🙏🙏😊😊 Truly grateful for your valuable teachings ! This was really helpful.

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

      It's my pleasure

  • @sangeetasingh1262
    @sangeetasingh1262 9 месяцев назад +1

    Thank you sir. These classes are very helpful for beginners

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

    That was amazing session. Sir, thank you so much! You are the best!

    • @sdetpavan
      @sdetpavan  10 месяцев назад

      You are very welcome

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

    Everything is wonder by you Sir, as of now What I know knowledge on Selenium Project oriented that credit goes to you only.
    In outside even they take amount also waste but from you its greatness Pavan uncle 🇮🇳

  • @chayae3740
    @chayae3740 6 месяцев назад +1

    Thank you for this brief explanation

    • @sdetpavan
      @sdetpavan  6 месяцев назад

      You are welcome!

  • @RutujaPatil143
    @RutujaPatil143 Год назад +2

    Heartly welcome sir..

  • @plgopi
    @plgopi Год назад +2

    Hello Pavan. Where can I find the documentation you say in the videos that you are going to provide?

  • @r.rajalakshmi369
    @r.rajalakshmi369 8 месяцев назад +1

    Sir, enga iruku inda document. Pls link share paunnunga. BTW you are awesome. Sir, where or how to get these documents and collections. Pls guide.

  • @surokiduniya
    @surokiduniya 3 месяца назад

    Superb Content Sir.

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

    Superb teaching ❤

  • @rsrsn8810
    @rsrsn8810 Год назад +2

    Superb sir to start Early 😘😍

  • @nagasaimaddula56
    @nagasaimaddula56 6 месяцев назад +1

    Super explaination 🎉..

  • @sthue1001
    @sthue1001 7 месяцев назад +1

    Thanks! Great course!

    • @sdetpavan
      @sdetpavan  7 месяцев назад

      You're welcome!

  • @deeptisharma9154
    @deeptisharma9154 5 месяцев назад

    thanks sir......qc_cart table ........who will make the table......is it already present q2 why git build is pass even if tests are failing in windows execute batch command?

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

    Sir your explanation very wonderful but telugu vallakosam SpringBoot Telugu Lo explain cheyandi please

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

    Great video again. When checking the status... should you be using "statusCode" rather than "status"? I got an error message back as status was equal to "OK", rather than "200"

  • @BugHunterMdSam
    @BugHunterMdSam 6 месяцев назад +1

    Thank you sir

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

    Thank you sir .
    please share the documents sir.

  • @sunandapavan8538
    @sunandapavan8538 10 месяцев назад +2

    Hi Sir, those who are watching and learning from RUclips, how can that get those Documents which you provided in Videos .
    Is there anyway to get that pls let us Know.

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

    Hi Pavan garu, can you please upload karate framework videos...please 🙏

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

    All knows nobody can beat pavan putra in power like also nobody can beat , compare pavan sir in testing 🙏🙏

  • @yashipandey4771
    @yashipandey4771 6 месяцев назад +1

    Thankyou Sir :)

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

    Hi sir... Very useful video ... THANK U SO MUCH SIR ...

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

      Welcome

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

      @@sdetpavan I Start my day watching your video sir..

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

      @@mahesh1724 Could you help me with my doubt?
      Getting AssertionError: expected undefined to deeply equal "Success: API session successfully started!"
      Please provide your guidance on it. Since, bcoz of this I can't generate Token.

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

    Awesome videos

  • @mohanramakrishnakonijety9405
    @mohanramakrishnakonijety9405 3 месяца назад

    Thank you

  • @amnamushtaq6803
    @amnamushtaq6803 3 месяца назад

    The process of running the githubcollection and from local is same but for github we have one additional step. If we are giving the Github URL then what is the purpose of giving the sharedURL?

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

    Superb .....

  • @user-jk7fx3hz4k
    @user-jk7fx3hz4k 4 месяца назад

    Hi sir is this video can be considered as mini project of testing with postman tool.?.. please please reply sir

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

    Hi sir can you please provide tosca automation testing class

  • @AkashGupta-tm2cj
    @AkashGupta-tm2cj Год назад

    Can we please have WebDriverIO Tutorial sessions with JavaScript or Typescript? 🙏

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

    Hi Pavan Sir, when will start upcoming selenium batch?

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

    I'm getting error while running by using url of collection.. Message showing:- collection could not be loaded
    Error fetching the collection from the provided url. Ensure that the url is valid. Invalid API key. Every request requires a valid API Key to be sent.
    Pls reply ASAP

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

    From where Your Notes download?????

  • @66sourabhYadav
    @66sourabhYadav 3 месяца назад

    Where is the Document is upload how to refer it?

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

    Great explanation!! Please provide Postman Collection for reference

  • @femigideon1213
    @femigideon1213 9 месяцев назад

    Hi Pavan! If I decide to use localhost would there still be a need to create a baseURL?

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

    Sir how many sessions left for this appi testing.

  • @siddarths3295
    @siddarths3295 Год назад +2

    While creating session token, after the send process.. postman body is opening xampp server, but no token is created and the status code is 200
    Can anyone help me to resolve this

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

    Hi sir did you do the spring and springboot classes.If In case is there classes in your channel can you please send me links sir.

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

    Thank u sir... How to contact u you sir.. I sent a mail to u sir... But no reply.. Regarding automation online course...

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

    Waiting for the session sir😊😊😊

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

      @Andy Selvam Getting AssertionError: expected undefined to deeply equal "Success: API session successfully started!"
      Could you help me in solving it?

  • @_videowall_
    @_videowall_ 6 месяцев назад

    Sir i did not abke to generate api token @38.14 timestamp... Did any documentation is changed or what? #pavansir #sdetQA

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

    Sir at the add to cart I am getting status code as 200 but i am not getting any response after the request

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

    33:36 exactly whatever the Base URL you have shown us and whatever the BASE URL you have taken at collection variables is too different sir.. that's why i am getting 404 not found please give me a clarity on that sir

  • @rahulhirlekar6918
    @rahulhirlekar6918 Год назад +2

    Hello sir , i tried to create a session/token number with first post request but getting response in html format not in json format whenever i try to put value key and username under form data tab but getting 200 as status code.

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

    Can anyone tell me i'm not getting response for cart content it is getting 404 not found

  • @RakibulHasan-mu1ob
    @RakibulHasan-mu1ob Год назад

    In real time how /Whr we will get API as a QA tester ?

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

    please
    hey anyone please help in this porject
    i'm not getting any resopnse in body
    please help me

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

    32:48 even here also you are showing different URL sir.But in the baseURL variable you have given different URL sir. Please give me a reply

  • @赌骰子
    @赌骰子 Год назад

    👍

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

    I am stuck in the "get cart content" where it shows the error {
    "error": {
    "warning": "Warning: You do not have permission to access the API!"
    }
    }
    How to fix it please

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

      HI same error I am getting can you please help me too thanks in advance

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

      please check API user . IP address entered is correct. don't keep blank space before ip

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

      ​@@kailaswagh8609entered crct but still facing error

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

    Sir, one small query when will use pm.response.json and Json.parse(response body) and what is the difference???. I am little confusing about these two statements.

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

      Bhargava Poola for ur question the answer is below:
      pm.response.json is used when we are validating the response body and
      Json.parse(response body) is used to extract the id from the response body

  • @naaffzz
    @naaffzz 8 месяцев назад +1

    I got this warning
    {
    "error": {
    "warning": "Warning: You do not have permission to access the API!"
    }
    }

  • @amnamushtaq6803
    @amnamushtaq6803 3 месяца назад

    @pavan Sir I'm unable to add products. I'm getting error.
    {
    "error": {
    "warning": "Warning: You do not have permission to access the API!"
    }
    }
    This is my request URL:{{baseURL}}api/cart/add and I have followed all the steps that you have mentioned. Can you please help me

    • @amnamushtaq6803
      @amnamushtaq6803 3 месяца назад

      when i tried to acces that URL through UI localhost/opencart/upload/admin/index.php?route=api/cart/add it is generating one user_token in the URL and says permission denied,on UI as well.
      localhost/opencart/upload/admin/index.php?route=api/cart/add&user_token=ZcRkl5KnWPwNySZStfU6PwtcpUPtk8RI- this is the generated URL on the UI and saying "PERMISSION DENIED"

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

      Once again run the create token request and then run the add product to cart request it's worked for me try it

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

      @@narketmillisusmitha8933 not working

  • @مغربانفو-ط8ب
    @مغربانفو-ط8ب Год назад

    Hi, Mr PAVAN, thanks your effort, I have get underline error in excuteScript fonction in javascriptExcutor.

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

      Getting AssertionError: expected undefined to deeply equal "Success: API session successfully started!"
      Could you help me in solving it!

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

    @sdetpavan Sir, Getting AssertionError: expected undefined to deeply equal "Success: API session successfully started!"
    Please provide your guidance on it. Since, bcoz of this I can't generate Token.

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

      @SDET- Automation Techie Sir, Kindly respond. I am waiting for your reply! It seems their is some issue in the API!

    • @BackupTwo-xv9wv
      @BackupTwo-xv9wv Год назад

      You can comment out the checking success msg in response test script, and then send the request you will get the access token in response body. No need to run the checking success msg test script.🙂

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

      sir please resopnd

  • @meghashreebanerjee7719
    @meghashreebanerjee7719 Год назад +2

    JSONError: Unexpected token '

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

      @Prasanna Naik I checked and matched with API doc page's URL. Somehow, opencart has removed the cart module. other two module's code the are showing. I could generate the token, as login page code was available. But, couldn't execute the rest of the requests. Try the following end point for creating session token : api/account/login

    • @sirimallasrinath994
      @sirimallasrinath994 7 месяцев назад

      @@meghashreebanerjee7719 you are right!. After changing 'api/account/login' able to generate token. thanks for your suggestion

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

    38:02 after this step i am getting this error. how to solve this issue?
    JSONError: Unexpected token '

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

      Log in API is returning HTML content how to solve this? anyone can now to to resolve this issue?

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

    Sir i am getting response body in html format.
    There was an error in evaluating the test script: JSONError: Unexpected token '

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

      are you get the answer same problem with me also

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

      Same here too. Did you figure it out

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

      Ok. I gave the ip address wrong here. Once i changed it, it is working now.

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

    {
    "error": {
    "warning": "Warning: You do not have permission to access the API!"
    }
    }

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

      Is this query resolved?

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

    Hi sir i need to join Selenium with Java i have registered and sent an email but did not get any reply.could you please reply sir

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

    Yes

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

    hello sir... i m not getting the version recommended version: 7.4.29/PHP 7.4.29 in the path ...can anyone please let me know where I can download it. I am trying so hard

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

    Sir Full course mileta

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

    can I download udemy lectures,after subscription...?

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

    Hi pavan, i could able to create session/api token, but when i am trying to add the product to cart getting "{ "Warning: You do not have permission to access the API!"}. Can you please help me in fixing this issue

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

    There was an error in evaluating the test script: JSONError: Unexpected token '

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

      same problem. did you get a solution yet?

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

      Any solution?

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

      @@sonamSharma15 you got any solution

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

      ​@@sonamSharma15 remove the response script keep only status code script first and check it is working or not . Actually Response is not receiving correctly so this error occuring . because there is url problem in post req

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

    Hi In getting token(First POST request) itself, Iam getting empty response [] but status is 200. Can you let me know how to fix this

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

    Hello, how can we have an additional income as testers, I know there are some sites that pay you to find bugs, have you tried them, how do you proceed with these sites?

  • @sangaledatta
    @sangaledatta 3 месяца назад

    where is pdf download

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

    Test:
    pm.test("Status code is 200", function ()
    {
    pm.response.to.have.status(200);
    });
    //capturing the response body of the post request
    var responseBodyData=pm.response.json();
    pm.test("success message of session", function ()
    {
    pm.expect(responseBodyData.success).to.be.eql("Success: API session successfully started!");
    });
    //capturing the token & storing it to an collection variable
    pm.collectionVariable.set("api_token_cv",responseBodyData.api_token);
    When I am executing the create session req, an error "Unexpected token '

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

      Same error I'm getting. How to solve this issue?

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

      Did you issue solved?

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

      @@rahulgoud7617 No rahul. Actually, when we send the request, the url is directed to the login page... So, I think that's where the issue is happening. Can anyone help me, to solve this issue?

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

      I'm also trying to solve it from 2 days. I'm not finding any solutions

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

      @@rahulgoud7617 I deleted the collection, and key & created it once more. now it is generating the token for me...