3. Katalon Studio || API Testing || Dynamic Data in Request Body.

  Рет қаралды 4,904

Rahul Rathore

Rahul Rathore

Күн бұрын

Пікірлер: 33
@sultonmukarobin7745
@sultonmukarobin7745 3 жыл бұрын
thanks a lot this is very helpful for beginner katalon users :)
@RahulRathore41
@RahulRathore41 3 жыл бұрын
Glad it was helpful! If you like my work please do subscribe to my channel & Share!
@dhanushkodiraj6153
@dhanushkodiraj6153 3 жыл бұрын
What are the ways we can optimize our test scripts for future maintenance purpose?.. One thing I think of is Global variable. Anything suggestions ? @Rahul
@RahulRathore41
@RahulRathore41 2 жыл бұрын
It depends on your scenario. You can use the properties file, create your custom keyword for repetitive calls, etc.
@dhanushkodiraj6153
@dhanushkodiraj6153 2 жыл бұрын
@@RahulRathore41 Thank you again. Let me check on this
@jagadeeshb5445
@jagadeeshb5445 2 жыл бұрын
Hello Rahul, i've been looking for this content since long time, i found it accidentally and this is very informative. I have a query like, Do we have any libraries to validate JSON Response schema like we do in Postman / RestAssured.
@RahulRathore41
@RahulRathore41 2 жыл бұрын
I think there is some lib that does the validation. Can you provide more detail about the scenario you are automating?
@dhanushkodiraj6153
@dhanushkodiraj6153 2 жыл бұрын
Is it possible to integrate Jira, Jenkins, Git for a Katalon project? @Rahul
@RahulRathore41
@RahulRathore41 2 жыл бұрын
Yes, it can be integrated with Git and Jenkins. For Jenkins, you need to install the KS runtime engine.
@dhanushkodiraj6153
@dhanushkodiraj6153 2 жыл бұрын
@@RahulRathore41 Thank you Rahul Our question here is: 1. When I trigger the Jenkins for a Katalon project, is it possible to update the test results in Zephyr? 2. If it is possible using KRE, how Jenkins will know to mark the respective test case id in zephyr is Pass or Fail 3.What is the unqiue field of the Automation test script to update the results in Zephyr when run it through Jenkins?
@zareentasnim3534
@zareentasnim3534 2 жыл бұрын
How can i input dynamic data in web UI? I want to input dynamic customer id each time I run the project
@RahulRathore41
@RahulRathore41 2 жыл бұрын
Create a custom keyword. The custom keyword takes the customer id and an input, append it with a random number, and returns it. Every time you call the custom keyword a unique customer id will be generated. And you can use the same id to fill in UI. Refer to the following sample code. The code generate unique email id. Same logic you can apply for customer id. github.com/CourseRepository/SeleniumAutomationWithKatalonStudio/blob/master/Keywords/com/question/RandomEmail.groovy#L30-#L32
@roshnisadanavasisht8539
@roshnisadanavasisht8539 11 ай бұрын
How can we add random number in form of string
@RahulRathore41
@RahulRathore41 11 ай бұрын
Refer to the following custom keyword. You can use the same to convert random number to string. github.com/rahulrathore44/SeleniumAutomationWithKatalonStudio7.4.x/blob/764a43aba5de34ad69d1859c9d3121e117b25041/Keywords/com/question/RandomEmail.groovy#L30
@pratheepkumar4218
@pratheepkumar4218 4 жыл бұрын
Hi Rahul I'm watching your videos its helpful to me. I have one scenario can you give me some idea to sort out. 1. Based on the role I want to attach the location . how to filter the role .here list of companies sevice is there . Using that company service how to filter the role. 2. It's also similar to my first query. I have a location(it contains Google location) how to attach/insert the location to my products . Eg I have two locations in this two I have to insert to the products dynancially.
@RahulRathore41
@RahulRathore41 4 жыл бұрын
Thanks!! I don't understand your query. Would it be possible to explain this with an example?
@pratheepkumar4218
@pratheepkumar4218 4 жыл бұрын
@@RahulRathore41 I have a list of companies with different roles like producer , supplier. I want to attach(link) supplier's Google location to supplier product creation module. Here Google location is enabled while registering a company ,need to add the location to another module called product creation. How to attach.
@dhanushkodiraj6153
@dhanushkodiraj6153 3 жыл бұрын
How to handle the array in Request body? Can we pass it as a Global variable?
@RahulRathore41
@RahulRathore41 3 жыл бұрын
Kindly describe your scenario?
@dhanushkodiraj6153
@dhanushkodiraj6153 3 жыл бұрын
@@RahulRathore41 Thank you for your quick response. 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
@RahulRathore41
@RahulRathore41 3 жыл бұрын
All the properties in the request body should be in JSON format. If you use "Globalvariable.ItemsList" directly it won't work. You need to convert it into JSON. Something like this def jsonData = JSONArray.toJSONString(GlobalVariable.ItemsList) println jsonData
@dhanushkodiraj6153
@dhanushkodiraj6153 3 жыл бұрын
@@RahulRathore41 Thank You Rahul, I will try it out and let you now here.
@dhanushkodiraj6153
@dhanushkodiraj6153 3 жыл бұрын
Katalon is not able to recognize JSONArray.. Not able to resolve this issue
@jeremyPog2664
@jeremyPog2664 5 ай бұрын
@RahulRathore41 how do you make this kind of string body format? def stringBody = "{" + "\"BrandName\":\"Alienware\", " + "\"Features\":{ " + "\"Feature\":[ " + "\"8th Generation Intel® Core™ i5-8300H\"," + "\"Windows 10 Home 64-bit English\","+ "\"NVIDIA® GeForce® GTX 1660 Ti 6GB GDDR6\","+ "\"8GB, 2x4GB, DDR4, 2666MHz\" " + "]" + "}," + "\"Id\":" + test_id + ", " + "\"LaptopName\":\"Alienware M17\" " + "}"
@RahulRathore41
@RahulRathore41 5 ай бұрын
You can use the following website for that www.freeformatter.com/json-escape.html
@joshuawrixon2767
@joshuawrixon2767 2 жыл бұрын
Hi, Do you have any videos that demonstrate how to use the snippets for 'Get a variable' and 'Get a global variable (I've tried searching but haven't come across anything so far)? If not, would it be possible to respond with an example of what information you would need to add to each snippet please? GlobalVariable.variable def variables = request.getVariables() def variable = variables.get('yourVariableName') Thank you
@RahulRathore41
@RahulRathore41 2 жыл бұрын
You can do something like this github.com/rahulrathore44/APITestingWithKatalonStudio7.x/blob/master/Scripts/VerifyGlobalVariables/TC%20-%20GetAllVariable/Script1650125549064.groovy#L21-#L28
4. Katalon Studio || API Testing || PUT Request.
14:37
Rahul Rathore
Рет қаралды 525
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 3,2 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,5 МЛН
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,6 МЛН
19. Karate Framework || File Upload || multipart/form-data.
10:01
Rahul Rathore
Рет қаралды 2,5 М.
API Testing with POSTMAN In Hindi Part 1 (4+ LIVE Real Projects Download)
22:25
TheTestingAcademy Hindi
Рет қаралды 402 М.
18. Karate Framework || Complex Schema Validation.
6:11
Rahul Rathore
Рет қаралды 2,5 М.
Postman 2024 | Complete Step by Step | Getting Started for Beginners
1:35:56
Automation Step by Step
Рет қаралды 12 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 41 МЛН
#3 | Snowflake Architecture | Snowflake Tutorial for Beginners
32:54
Data Engineering Simplified
Рет қаралды 204 М.
Session1: Introduction to API Testing
1:28:06
SDET- QA
Рет қаралды 1 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН