Katalon Studio 18 - How to test API with Katalon Studio

  Рет қаралды 75,838

Automation Step by Step

Automation Step by Step

6 жыл бұрын

Today we will learn
1. How to setup API testing project
2. How to add API request
3. How to create API Test Case
4. How to add web service keywords
5. Run and Validate
Useful Links
Sample Rest API - reqres.in/
REST API used - reqres.in/api/users/2
JSON Viewer - codebeautify.org/jsonviewer
SOAP WSDL url - webservices.oorsprong.org/webs...
Keywords - docs.katalon.com/display/KD/%...
JSON Path Finder - chrome.google.com/webstore/de...
jsonpathfinder.com/
____________________________________________________________
Katalon Studio Beginner Tutorial Playlist
• Katalon Studio
Like on Facebook - / automationstepbystep
Subscribe on:
KZbin - / automationstepbystep .
.
_______ ONLINE COURSES TO LEARN _______
Visit - automationstepbystep.com/
----------- Follow -----------
Facebook - / automationstepbystep
Twitter - / automationsbs
KZbin - / automationstepbystep
You can support my work and mission for Education on PATREON
/ raghavpal
_________________________________

Пікірлер: 127
@sfeler1
@sfeler1 6 жыл бұрын
Excellent and very clear lessons. Thank you very much!!!!!!
@RaghavPal
@RaghavPal 6 жыл бұрын
You're welcome Steve
@whereweregoingwedontneedey4374
@whereweregoingwedontneedey4374 3 жыл бұрын
Just watched this video. Really straightforward and Informative.
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for watching
@Lana-gi7ox
@Lana-gi7ox 3 ай бұрын
Thank you very much for this tutorial. Easy to follow, despite it was made 5 years ago.
@RaghavPal
@RaghavPal 3 ай бұрын
You're very welcome Lana
@girishon6198
@girishon6198 3 жыл бұрын
Great Video Raghav Pal. I am going to use Katalon studio in my project for API testing. This is very simple & informative to me, thank you for all the efforts you have put in this.
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad it was helpful Girish, you can check the latest Udemy course on this here - automationstepbystep.com/udemy-discounts/
@SameeraSenarathna
@SameeraSenarathna 5 жыл бұрын
Thank you. Loud and Clear :-)
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Sameera
@josue7377
@josue7377 5 жыл бұрын
Excelent video man!
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Josue
@notch7751
@notch7751 4 жыл бұрын
Amazing, thank you!
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Notshe
@whereweregoingwedontneedey4374
@whereweregoingwedontneedey4374 3 жыл бұрын
Love the icon - are you from Liverpool?
@DanieloBack
@DanieloBack 6 жыл бұрын
Great, TY Raghav !
@RaghavPal
@RaghavPal 6 жыл бұрын
You're welcome Danny
@thusharameen5499
@thusharameen5499 6 жыл бұрын
Hi Raghav, how can I verify element property value for a SOAP test? Do I need to get path for target xml tag?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi, Yes you will need to give the path to get the target element and then validate it
@vasavip1628
@vasavip1628 2 жыл бұрын
Thank you for sharing this video
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Vasavi
@whereweregoingwedontneedey4374
@whereweregoingwedontneedey4374 3 жыл бұрын
Hi, Question: For the validation of a locator value why use the locator value and not just "Contains String" instead?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, there are multiple ways we can do it
@bhargavch6623
@bhargavch6623 4 жыл бұрын
Hi Raghav, thank you for the video..I successfully executed the testcase with one verifyelementpropertyvalue. But how do i verify multiple elements with single testcase. Please advise..thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Bhargav, You will either have to use the keyword for each element, Or you can create a custom keyword for your use. kzbin.info/www/bejne/e5myiKR7qNtsiZI
@ajeetmalviya7621
@ajeetmalviya7621 6 жыл бұрын
Hi, I have one question, suppose we have 10 test cases and I need to execute them in 5 different ip's(multiple environment). Then how it can be possible to create multiple environment in KATALON.?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Ajeet, great question, fortunately with Katalon 5.4 ver we can do this using execution profile docs.katalon.com/pages/viewpage.action?pageId=13697476 I will try to do a video on this tomorrow.
@ajeetmalviya7621
@ajeetmalviya7621 6 жыл бұрын
Automation Step by Step - Raghav Pal Thanks Raghav for your quick reply. I'll wait for your video. :-)
@RaghavPal
@RaghavPal 6 жыл бұрын
Here you go - kzbin.info/www/bejne/nIHYkneEgM-Bj7M
@ajeetmalviya7621
@ajeetmalviya7621 6 жыл бұрын
Automation Step by Step - Raghav Pal Thank you Raghav.... This is very helpful video for me. Now I can able to execute my test case in multiple environment.
@santooveluri7128
@santooveluri7128 6 жыл бұрын
Hi Raghav, Could you please let me know the steps how to add attachment / image file format of image/png, image/jpeg, application/pdf ,as part of soap WSDL ingestion / create content in katalon studio.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Santoo, not explored it, will check,
@dhanushkodiraj6153
@dhanushkodiraj6153 2 жыл бұрын
How to handle Arraylist in Request body? I have a json request something like { "Data": { "ItemsList": [ "value1", "value2","value3", "value4"], "DateTime":"datetimevalue" } } I am trying to check invalid and empty values in Itemslist array. On using Globalvariable.ItemsList, its printing me [value1, value2,value3,value4] If I pass Globalvariable.ItemsList in the script of SendRequest, i am getting 400 error, invalid request params
@RaghavPal
@RaghavPal 2 жыл бұрын
Try to print and check if the data is getting referred properly from Global Variables
@shanthiva6432
@shanthiva6432 2 жыл бұрын
@ Automation Step by Step: Raghav, can we use Data-Driven for verifying Various Param values. eg : 1) for valid start data 2) valid end date 3) valid start & end date
@RaghavPal
@RaghavPal 2 жыл бұрын
HI Shanthi, you can create data as per your need and update the tests accordingly
@aliahmadfilms8199
@aliahmadfilms8199 4 жыл бұрын
sir i have a question for you i want to get the data from the website and store into the database how can i do it ?? and that would be on regular bases
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ahmad, for getting data from DB there are in-built features, for storing into db. use DBMS plugin - store.katalon.com/product/24/DBMS-Keywords
@ronnyhw9682
@ronnyhw9682 2 жыл бұрын
Dear sir Raghav, may I ask for the best practice if the data is alot like 200+ data. Do we as a Tester need to create 200 test cases too for ID 1 - 200? thank you very much sir
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Ronny, no, that is the use of data driven that you can use diff sets of data on the same test case, No need to create multiple test cases
@ErlanggaEr
@ErlanggaEr Жыл бұрын
Hi Raghav, are you able to open katalon studio with the newest mac os ventura, it keeps crashing on my laptop(8.5.5 katalon)
@RaghavPal
@RaghavPal Жыл бұрын
Hi, not tried on Ventura, you can let the support team know and can also check on Katalon Forum
@manoranjanborgohain5412
@manoranjanborgohain5412 6 жыл бұрын
Hi Raghav, Thanks for the new API session. How different and benefit it is from rest assured ? expecting a lots from you :-) Request you to cover as a complete demo project including git hub, jenkins integration. Can we integrate extent report api and cucumber here .
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Manoranjan. thanks for watching. While with rest assured you have to add the lib in your project and do all scripting, here the main focus is to make test creation easy and simple. Talking of functionality both are at par. Somebody who does not want to go deeper into coding will like it more. I will do a complete demo project soon.
@sarangmech
@sarangmech 5 жыл бұрын
Very Nice video, well explained tutorial. Do you have any video covering groovy scripting in Katalon Studio to automate api test cases?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Saranga, I have some videos touching some basics on this. You can find all here - automationstepbystep.com/909-2/online-courses/
@ShashiBhushankumar-vw9ol
@ShashiBhushankumar-vw9ol Жыл бұрын
Hi Raghav regarding the Katalon Studio Version 8.5.5 I am facing one issue after creating the Test case When i adding the Verifying the element Property value when i am adding the Input as a value then Param type is showing Object for me so I am not able to verify the Name because it should be String.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Shashi, Check the documentation of the keyword docs.katalon.com/docs/author/keywords/keyword-description-in-katalon-studio/web-service-keywords/ws-verify-element-property-value Ensure you are using it as per the syntax You can also try to use different type of verification keyword such as "verifyElementAttribute" you can also try to debug the script and see the actual output of your input variables.
@ayeshakhanam1973
@ayeshakhanam1973 4 жыл бұрын
I tried to register into an account Gave creds->Clicked on Continue button->It generated a Dynamic 4 digit OTP Switched the tab and opened a url to hit an API which generates the OTP in the below fashion. “CODE-SPLIT”: [ “4”, “7”, “9”, “8” From this Tab2, I need to copy/grab each number every time and switch the tab to Tab1. Paste the copied number i.e., 4 _ _ _ Switch to Tab2 copy/grab the next number i.e., 7 -->Switch to Tab1 paste the number in the 2nd place i.e., 4 7 _ _ Similarly for remaining two ,copy and paste the numbers by switching between the tabs Hurdle is OTP is dynamic. Any suggestions on this issue? Should I store the response some where every time or is there any better approach for this issue.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ayesha, If you are getting OTP as an API response, you can store it in a Global variable and then use it in any subsequent request. You will find videos on chaining in this series
@asadrehman5319
@asadrehman5319 4 жыл бұрын
Dear Raghav this course Help me alot, i automated the process using Katalon in Company , Please Give me a Favour to Update this Video, lots of Video are made of old version of Katalon as this video, i Currently using 6.3.3 Version, Thanks Man for your efforts❤️!
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Asad. I know these are turning old. I will try to come up with a new ver soon
@AlvinMibaloph
@AlvinMibaloph 4 жыл бұрын
Hi Raghav, I followed your tutorial but I am receiving this error when testing the response 200 status code: groovy.lang.MissingPropertyException: No such property: Response for class need help?
@AlvinMibaloph
@AlvinMibaloph 4 жыл бұрын
never mind, I figured it out! thanks!
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad to know this Alvin
@johnhenrynatividad245
@johnhenrynatividad245 3 жыл бұрын
@@AlvinMibaloph got the same error what did you do?
@AkulSamartha
@AkulSamartha 5 жыл бұрын
Hi, I am trying to test the ZAPI (Zephyr API for JIRA) I am getting 500 error while using the PUT method. Can u please help me.. - Thanks.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Ravi, 5xx is usually error from server. Have you checked your JIRA instance is up and running. Also check your request parameters, authorization etc.
@AkulSamartha
@AkulSamartha 5 жыл бұрын
Hey Raghav, Everything seems to be fine mate. Still the error. Can I have a paid consultation call with you for 30 min plz. Do lemme know.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Ravi, will not be able to do calls. You can check the detailed logs
@poongodiarasu8079
@poongodiarasu8079 4 жыл бұрын
Nice ir Thank you
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Poongodi
@tejalali5115
@tejalali5115 2 жыл бұрын
Thanks 🙏
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome
@kranthikumar4802
@kranthikumar4802 6 жыл бұрын
Hi Raghav, how can we get part of response and store it in variable and same variable how we can pass to header.please let me know
@RaghavPal
@RaghavPal 6 жыл бұрын
I will do that Kranthi
@savvya3301
@savvya3301 5 жыл бұрын
Hi Raghav, like Kranthi, I am interested to know that too for my project. Please update. Thank you for a wonderful video. Very useful.
@newAMDman
@newAMDman 6 жыл бұрын
How we can locate ours request API with parameters and method type?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi, I did not exactly got your use case, Can you please explain
@jagatabi
@jagatabi 5 жыл бұрын
Hi , am getting - Received fatal alert: handshake_failure , working on Katalon Version: 5.7.1 . Could you pls help here. (same steps followed from Video)
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, which step exactly you got this.
@jagatabi
@jagatabi 5 жыл бұрын
Hi , I got every time , try to send the request , to be sure the step at 7:51 in video , I referred some sites , it looks some issue with Katalon , is it required any such Jira configuration ? my concern is , its same executed from your's. Thanks.
@RaghavPal
@RaghavPal 5 жыл бұрын
So if you got it just once, it might be some issue at server end. You can also check by invoking the endpoint from browser.
@jagatabi
@jagatabi 5 жыл бұрын
No , every time I worked on katalon getting this error , No issues with other tools like SOAPUI , Jmeter . Other also facing Same issue with Katalon . Here can refer the Support - forum.katalon.com/discussion/4358/displaying-received-fatal-alert-handshake-failure/p2
@RaghavPal
@RaghavPal 5 жыл бұрын
Okay lets see the response to the support query. You can meanwhile try with some other ver of Katalon Studio, just to ensure this is not issue with this ver
@jainneha8590
@jainneha8590 3 жыл бұрын
Hello Raghav , can you cover API test cases topic , what should I keep in mind when I design the test cases .How to perform API testing in real world scenario ? Not about using specific tool but talking about approach .
@RaghavPal
@RaghavPal 3 жыл бұрын
Sure Neha, will plan on this
@iridescent10
@iridescent10 5 жыл бұрын
Hello Raghav! First of all thank you very much for all the great content you provide on your channel. It's absolutely GOLD! Second, i am totally new with Katalon and also fairly new with automation. I need help with the following: I want to test via API calls an End to End flow. I wish to use the processId from a POST response in another request that needs this processId in the body. The processId is unique and generated for each of the start_process POST request. Is there a possibility to use that id as a variable or something similar, without the use of groovy/java scripts?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Viorel, yes you can do this, can store the value from a response of a step and then use this in any subsequent step. Check here - docs.katalon.com/display/KD/Handle+Response+Messages
@localtest194
@localtest194 4 жыл бұрын
Hi Raghav, I have created a test case for REST API and while executing nothing happens. I went to Log Viewer and Progress option but nothing is being shown. Can you please help me this issue as what might be the problem?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, Can you check with a diff request
@localtest194
@localtest194 4 жыл бұрын
@@RaghavPal Hi. The same test is working now without any configuration changes. I just restarted my system and it worked. By the way thanks a lot for your kind response. Could you please tutorial videos according to the new releases of katalon studio?
@RaghavPal
@RaghavPal 4 жыл бұрын
I will do
@localtest194
@localtest194 4 жыл бұрын
@@RaghavPal Thanks a lot. Request you to please make videos of some live project. I am new to Katalon and groovy.. it would help me and other new comers too.
@eitannakash
@eitannakash 5 жыл бұрын
Hi Raghav, How can I generate a random number at the "http body" (POST). The JSON file I'm using at Postman is contain : "identifier": "Eytan{{$randomInt}}" that line gives random number every time I'm sending the API POST request. the problem is that Katalon is no support the " {{$randomInt}}". can you help me generating random number in the HTTP body at Katalon studio? Thank you
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Eitan, if its not already present you can write a custom keyword and call it and use its value.
@eitannakash
@eitannakash 5 жыл бұрын
Hi, thank you for you answer.I don't think i got it. do you mean it the HTTP body field? what keyword would give me random number?
@RaghavPal
@RaghavPal 5 жыл бұрын
I meant, you will need to do scripting to create a program to create random integer and make a custom keyword that you can use. You can see this kzbin.info/www/bejne/e5myiKR7qNtsiZI
@RealOrji
@RealOrji 5 жыл бұрын
Thank you for the video Raghav, I'm having conflict understanding what authorisation/OAuth is and how to use them. Kindly explain. Thank you.
@RealOrji
@RealOrji 5 жыл бұрын
KIndly buttress on soap and rest API.
@RaghavPal
@RaghavPal 5 жыл бұрын
I will do these sessions soon Orji
@RealOrji
@RealOrji 5 жыл бұрын
@@RaghavPalPal, Thank you and I will be looking forward to the session. I will most appreciate it if I get a notification.
@RaghavPal
@RaghavPal 5 жыл бұрын
You can subscribe and hit bell to get notifications
@vutienluc1991
@vutienluc1991 5 жыл бұрын
How do you shake android device in Katalon? Please!
@RaghavPal
@RaghavPal 5 жыл бұрын
Need to check this Luc, try looking at Katalon documentation
@yanqing8122
@yanqing8122 2 жыл бұрын
Do you have another SOAP WSDL url? the link that you provided, I cannot access
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Yan, you can check any working service like www.dneonline.com/calculator.asmx
@yanqing8122
@yanqing8122 2 жыл бұрын
@@RaghavPal thanks! BTW, your videos are amazing and nice
@damilolaeludire7132
@damilolaeludire7132 3 жыл бұрын
Thanks
@RaghavPal
@RaghavPal 3 жыл бұрын
Welcome
@ashwinijadhav6759
@ashwinijadhav6759 5 жыл бұрын
Can we Automate GraphQL API using Katalon ?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Ashwini, no idea on this. You can check on Katalon Forum forum.katalon.com/
@angelagarcia1417
@angelagarcia1417 5 жыл бұрын
Hi, I’m getting a handshake error upon testing the api. But when i test the url in postman it works. Help me 😭
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Angela, do you have logs & setup details
@angelagarcia1417
@angelagarcia1417 5 жыл бұрын
hi, now it works with 5.8.0 version of katalon. i just donwload a new versino of katalon and it works! weird ahaha anyways, how can i use the access token from one api to another in katalon?
@RaghavPal
@RaghavPal 5 жыл бұрын
Great to know that. I am going to create a session for this soon.
@angelagarcia1417
@angelagarcia1417 5 жыл бұрын
thanks! we need that video for our api testing :D
@RaghavPal
@RaghavPal 5 жыл бұрын
Will publish this soon.
@johnhenrynatividad245
@johnhenrynatividad245 3 жыл бұрын
hi ragh I got an error when verifying the element property (groovy.lang.missingproperty) help please
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, I will need to check the complete logs to troubleshoot
@johnhenrynatividad245
@johnhenrynatividad245 3 жыл бұрын
@@RaghavPal I got it now thank you
@bollinamanoj7796
@bollinamanoj7796 6 жыл бұрын
Hi bro can you tell me about how to integrate chef with jenkins
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi I will plan to do a session on that soon.
@rajeshnaidu3280
@rajeshnaidu3280 5 жыл бұрын
Hi sir how to use swipe options in katalon studio. Plz
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Rajesh, swipe functionality is in-built. see here - docs.katalon.com/display/KD/%5BMobile%5D+Swipe
@gemos7777
@gemos7777 4 жыл бұрын
Hi raghav, I am unable to connect to db2 ,, if you have solution please share it
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Jamess, I have not tried, You can let me know your process and error you faced
@josue7377
@josue7377 5 жыл бұрын
Why are there no videos in Spanish of this kind?
@RaghavPal
@RaghavPal 5 жыл бұрын
I will be glad if somebody can translate it into Spanish
@vutienluc1991
@vutienluc1991 5 жыл бұрын
Try to learn English then.
@josue7377
@josue7377 5 жыл бұрын
teach me 7u7
@meghaneva1073
@meghaneva1073 5 жыл бұрын
still waiting for the SOAP testing you mentioned
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Vic, I remember, I am in the process to wind up a current assignment and will start soon on this.
@shivangivaikunth2351
@shivangivaikunth2351 5 жыл бұрын
Hi I am stuck with using the SOAP....please count my request for Soap...
Katalon Studio 19 - How to use Katalon Analytics | Step-by-Step for Beginners
18:27
How to create BDD Cucumber tests in Katalon Studio
32:31
Automation Step by Step
Рет қаралды 35 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 175 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 63 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 484 М.
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 16 МЛН
Katalon Studio - API Testing - Add Request in Test Case
11:41
RuTechTalkz
Рет қаралды 1,3 М.
Top 10 API Testing Tools & Frameworks
14:28
Naveen AutomationLabs
Рет қаралды 37 М.
Katalon Studio | How To Get Data From Excel
18:19
Automation Step by Step
Рет қаралды 68 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 175 МЛН