Katalon Studio API Testing 3 | REST API Testing

  Рет қаралды 27,554

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 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 5 жыл бұрын
Thank you, Raghav, great job!
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Ontario
@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 жыл бұрын
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
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad you liked it!
@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.
@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
@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
@dheerajsingh6568
@dheerajsingh6568 5 жыл бұрын
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 5 жыл бұрын
Hi Dheeraj, You can check the playlists here - automationstepbystep.com/api-testing/ For Katalon Studio, there will be more videos added in the playlist.
@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
@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
@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
@alexfrolov3619
@alexfrolov3619 5 жыл бұрын
good
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks for watching
@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.
@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.
@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
@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 - kzbin.info/aero/PLhW3qG5bs-L-yy1HtdxKcp-blmG5qeWgg
@yemimafebeyantimarpaung8692
@yemimafebeyantimarpaung8692 Ай бұрын
Halo Raghav, why in my katalon isn't show the verification log? i'm already follow ur instruction.
@RaghavPal
@RaghavPal Ай бұрын
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 жыл бұрын
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.
@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]
@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
Katalon Studio API Testing 4 | Validations
7:29
Automation Step by Step
Рет қаралды 15 М.
Synyptas 4 | Арамызда бір сатқын бар ! | 4 Bolim
17:24
Это было очень близко...
00:10
Аришнев
Рет қаралды 4,8 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 89 МЛН
Katalon Studio API Testing 2 | SOAP API Testing
15:39
Automation Step by Step
Рет қаралды 18 М.
How to perform API Testing in Katalon Studio
25:41
Mukesh otwani
Рет қаралды 11 М.
Katalon Studio API Testing 11 | Validate XML and JSON Response Values
11:58
Automation Step by Step
Рет қаралды 10 М.
APIs Explained | Real World Examples
11:36
CertBros
Рет қаралды 516 М.
7 Best Tips of Katalon Studio Framework
15:10
RuTechTalkz
Рет қаралды 3,3 М.
Katalon Studio - API Testing - Add Request in Test Case
11:41
RuTechTalkz
Рет қаралды 1,3 М.
Synyptas 4 | Арамызда бір сатқын бар ! | 4 Bolim
17:24