Katalon Studio API Testing 3 | REST API Testing

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

КОМЕНТАРІ • 58

  • @LorigemiMasters
    @LorigemiMasters 4 роки тому

    Good Video to understand the rest services execution by using Katalon.. Great Job

    • @RaghavPal
      @RaghavPal  4 роки тому

      Glad it was helpful Govind

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

    Thank you, Raghav, great job!

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

      You're welcome Ontario

  • @joshuawrixon2767
    @joshuawrixon2767 2 роки тому

    Hi,
    Is it possible to use a variable or global variable as the property value for a response body: JSON value check? If so, how would you need to display this?
    Thanks

    • @RaghavPal
      @RaghavPal  2 роки тому

      You can

    • @joshuawrixon2767
      @joshuawrixon2767 2 роки тому

      @@RaghavPal Thanks for getting back to me, sorry for the delay in my response (I've been away).
      As an example, I am using the 'verification' tab to verify the following with a hardcoded value:
      WS.verifyElementPropertyValue(response, 'address.postcode[0]', 'DE1 3GL')
      How would I amend this to reflect using a variable?
      In the 'variable' tab I have named a value 'Postcode' and given it a default value but I can't figure out how to link the two together at the moment.
      Thanks

    • @joshuawrixon2767
      @joshuawrixon2767 2 роки тому

      @@RaghavPal Hi, Would it be possible for you to please reply to this comment with a demonstration of how you would write a variable and/or a global variable as the property value for a response body: JSON value check? Thank you

  • @mohammedvaseem3562
    @mohammedvaseem3562 4 роки тому

    Hi Raghav, thank you for clear crispy and best explanation.
    Question: what is the difference between postman and katalon. Which one is having more advantage and more market share.
    Thanks in advance

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi Vaseem, Postman is for API, Katalon can handle web, api, mobile and desktop.
      Postman can be used for free although it has paid accounts as well. Katalon's free ver is very limited and will have to go for licence

    • @mohammedvaseem3562
      @mohammedvaseem3562 4 роки тому

      @@RaghavPal thank you Raghav. Much appreciate your work..

  • @whereweregoingwedontneedey4374
    @whereweregoingwedontneedey4374 3 роки тому

    Great video, thanks

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

    Hello Raghav,
    Thank you for all the videos you provide us regarding testing automation!!
    I have a problem with automating my API project. I need a way to send API with OAuth2.0.
    For example, i want to send a POST call with Bearer {{token}} in the Request Header. I previously generated via a Login call the Token.. and stored it as a Global Variable...
    From what i noticed, Katalon cannot mention variables in request header (or at least I couldn't make it work)... and neither does it support OAuth2.0 ...
    Thank you for all your work and any kind of information is very appreciated!

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

      Hi Viorel, I am not sure if you have already tried this
      forum.katalon.com/t/how-to-add-oauth-2-0-authorization-header/8850
      There are some workarounds mentioned.

  • @shanthiva6432
    @shanthiva6432 4 роки тому

    Hello Raghav,
    Please let me know if you have any videos for Authorization. I am unable to run the scripts for REST api authomation

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Shanthi, not specific to authorization, I have shown that you can add
      that in authorization section. Let me know what is the issue you're facing

    • @shanthiva6432
      @shanthiva6432 4 роки тому

      @@RaghavPal : I have included the authorization but when i running the suite the token is not getting updated. Is there a way to store it in a variable and the use in in headers for individual test cases

    • @RaghavPal
      @RaghavPal  4 роки тому

      Yes, pls check the videos on req response chaining where a response value can be extracted and stored to be used by other requests

    • @shanthiva6432
      @shanthiva6432 4 роки тому

      @@RaghavPal Thanks Raghav

    • @shanthiva6432
      @shanthiva6432 4 роки тому

      Hi Raghav,
      I was able to generate the script for Authorization. Is there a way you can verify it.

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

    Going Through This Playlist Once Again, Got A Question Though "Send request and Verify - ListUsers" Does Not Verify Json Elements ( name & id )Except Response Code!! But Verification Runs Fine From Object Repository Though!! Any Thought On This?? Thanks In Advance..

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

      Hi Asif, ideally it should run all the verification sinippets that you have added in the request. In case you face any issue in that can write in katalon forum

  • @tannislearn5454
    @tannislearn5454 4 роки тому

    After running this snippet : WS.verifyElementPropertyValue(response, '.data[0].first_name', 'George')
    as per your instruction my test was failed and getting this error.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    2020-06-28 16:04:40.527 ERROR c.k.k.core.main.WSVerificationExecutor - ? Verification FAILED.
    Reason:
    com.kms.katalon.core.exception.StepFailedException: Unable to verify element property value (Root cause: groovy.lang.MissingPropertyException: No such property: data for class: Script1
    at Script1.run(Script1.groovy:1)
    at com.kms.katalon.core.webservice.helper.WebServiceCommonHelper.parseAndGetPropertyValueForJson(WebServiceCommonHelper.java:162)
    at com.kms.katalon.core.webservice.keyword.builtin.VerifyElementPropertyValueKeyword$_verifyElementPropertyValue_closure1.doCall(VerifyElementPropertyValueKeyword.groovy:52)
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi, sorry for late reply, can you try after deleting the . from .data[0]

  • @classygg1300
    @classygg1300 3 роки тому

    Hi sir,
    I am developing an automation test on katalon in which the user will click on a button present on my site and then the automation test will run on the katalon installed on my server using Jenkins, the problem is I want the user to enter the captcha or OTP.
    Can I use API to send that captcha image to that user by sending a popup that will contain that captcha with an input element and when the user will submit captcha my catalog project will submit the form after receiving it.
    Please tell me which technology I should use how it could work. The user won't have selenium installed on its pc. He will interact on the site and the site will trigger the katalon script which will contain user id of that particular user.

    • @RaghavPal
      @RaghavPal  3 роки тому

      You can try the api way

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

    Hi,
    Is Travis Ci integration with Katalon Studio available? It is used in my org. or even CircleCI if you know.
    Thanks

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

      Hi Tanmai, I have not tried, but here are some links that suggest you can do it with docker
      www.katalon.com/technologies/
      forum.katalon.com/t/can-katalon-work-with-travis-ci/12345

  • @pratheepkumar4218
    @pratheepkumar4218 4 роки тому

    Hi sir, in postman I'm getting access token easily. But kalaton if I give correct information to the authorization page, I am not getting the access token Here. How to tackle.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Pratheep, I will have to see your request and setup, Also check if any of the videos in this playlist helps you - ua-cam.com/play/PLhW3qG5bs-L-yy1HtdxKcp-blmG5qeWgg.html

  • @shanthiva6432
    @shanthiva6432 3 роки тому

    Hi Raghav,
    Is it necessary to include the Object Repository feature in Katalon for individual test cases and then include them in the TestCase Section? I have written a groovy script in the keyword section for Auth request and it is working fine.

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Shanti, it is a defined structure for easy maintenance, If what you are doing working for you and you can maintain it, its okay

    • @shanthiva6432
      @shanthiva6432 3 роки тому

      @@RaghavPal It is not working for me since each time I write a TC, it is asking for test object and directing to Object Repository

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Shanthi, I believe for Katalon , you will have to follow the structure

    • @shanthiva6432
      @shanthiva6432 3 роки тому

      @@RaghavPal Looks so.. I was able to use object repo and do Data-Driven..

    • @RaghavPal
      @RaghavPal  3 роки тому

      okay

  • @yemimafebeyantimarpaung8692
    @yemimafebeyantimarpaung8692 2 місяці тому

    Halo Raghav, why in my katalon isn't show the verification log?
    i'm already follow ur instruction.

    • @RaghavPal
      @RaghavPal  2 місяці тому

      Yemima
      It can be due to change of version.. hope you are using trial or licensed version

  • @1sunflower2005
    @1sunflower2005 2 роки тому

    How to get the user counts? Thank you!

    • @RaghavPal
      @RaghavPal  2 роки тому

      will need more details on this

    • @1sunflower2005
      @1sunflower2005 2 роки тому

      if get user returns 3 users how to validate the count is 3?

    • @RaghavPal
      @RaghavPal  2 роки тому +1

      Okay, you just need to extract the number using JSON Path or Xpath and then compare it as per your needs, You can take help from the API Chaining video to see how to extract

    • @1sunflower2005
      @1sunflower2005 2 роки тому

      Appreciated!! Have had lots of help from your videos.

  • @maggiechang6653
    @maggiechang6653 4 роки тому

    Hi Raghav,
    thanks for the tutorial that helps me to start learning the automation test.
    I have a question about the error "com.kms.katalon.core.exception.StepFailedException: Unable to verify element property value ". the locator and value in a verify step "WS.verifyElementPropertyValue(response, 'status', '0000')" are identified from jsonpath. May I have your help to know what the root cause to get this error?

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Maggie, I believe you will need to add the json path of the node you need to verify. In the response of the api, you can click on the value and press Ctrl+K (Command+K for mac). This will generate a verification snippet in the verifications tab and from there you can copy the json path

  • @shanthiva6432
    @shanthiva6432 4 роки тому

    Hi Raghav,
    Thanks for the video. I am an API Tester trying to automate my API's. In this video it is mentioned about no Authorization. But in my API i am using Authorization using Bearer token. Can you please help me with this topic

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Shanthi, there is the section (tab) where you can add your authorization. I will plan to add a video, for now can take help from katalon documentation.

    • @shanthiva6432
      @shanthiva6432 4 роки тому

      @@RaghavPal : Thank you Raghav. Is there a way i can send you a mail on what i am looking for.

    • @RaghavPal
      @RaghavPal  4 роки тому

      You can but replies on mail is very delayed and here other can also see your issue and help

    • @shanthiva6432
      @shanthiva6432 4 роки тому

      @@RaghavPal : I am using authorization Bearer token and storing them in a variable access_token. This token value changes on TST and STG. So i don't need to run the authorization request each time. I need help automating it.

    • @shanthiva6432
      @shanthiva6432 4 роки тому

      @@RaghavPal : Hi Raghav, I need your help. Please help me in this. I have trouble in automating this part.

  • @alexfrolov3619
    @alexfrolov3619 5 років тому +1

    good

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

    Hi Raghav,
    I am very much confused in API testing means from where should I start learning ?? Do you have a complete playlist of api testing list coz on checking your playlist I didn't find any complete playlist. So please advise me and also which api tool is best katalaon or soup UI??

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

      Hi Dheeraj, You can check the playlists here - automationstepbystep.com/api-testing/
      For Katalon Studio, there will be more videos added in the playlist.

  • @Vodkanology
    @Vodkanology 4 роки тому

    Hello again Sir, may you always have a good day. Do you mind if I'm asking some questions ?
    1. I'm using Katalon version 7.52 and while following your steps I noticed that my verification log display is not like yours. It's very messy and there were no [START] - [INFO] - [PASSED/FAILED] - [END] in every verification steps. It's hard to read. Is there anything wrong with my Katalon setup and how could I make my log look like yours? Here's my screenshot for my verification log display imgur.com/a/CFqhv7i
    2.In my object repository , If a verification that was placed on the top of others verification is Failed, then the test will be stopped and all the rest of the verifications won't be checked. Is there anything I should do to make all the verifications checked even there's a failed one? I've tried changing the setting in the Project to " continue on failure" but nothing happens.
    I apologize if I'm asking too much. Thank you in advance for your time. Have a blessed day.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi, I know there are some changes with Katalon Studio latest version and I am planning to create new tutorials.
      For now you can check with katalon documentation
      For test stopping on failure you can set Failure Handling. docs.katalon.com/katalon-studio/docs/failure-handling.html