thanks a lot this is very helpful for beginner katalon users :)
@RahulRathore413 жыл бұрын
Glad it was helpful! If you like my work please do subscribe to my channel & Share!
@dhanushkodiraj61533 жыл бұрын
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
@RahulRathore412 жыл бұрын
It depends on your scenario. You can use the properties file, create your custom keyword for repetitive calls, etc.
@dhanushkodiraj61532 жыл бұрын
@@RahulRathore41 Thank you again. Let me check on this
@jagadeeshb54452 жыл бұрын
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.
@RahulRathore412 жыл бұрын
I think there is some lib that does the validation. Can you provide more detail about the scenario you are automating?
@dhanushkodiraj61532 жыл бұрын
Is it possible to integrate Jira, Jenkins, Git for a Katalon project? @Rahul
@RahulRathore412 жыл бұрын
Yes, it can be integrated with Git and Jenkins. For Jenkins, you need to install the KS runtime engine.
@dhanushkodiraj61532 жыл бұрын
@@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?
@zareentasnim35342 жыл бұрын
How can i input dynamic data in web UI? I want to input dynamic customer id each time I run the project
@RahulRathore412 жыл бұрын
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
@roshnisadanavasisht853911 ай бұрын
How can we add random number in form of string
@RahulRathore4111 ай бұрын
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
@pratheepkumar42184 жыл бұрын
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.
@RahulRathore414 жыл бұрын
Thanks!! I don't understand your query. Would it be possible to explain this with an example?
@pratheepkumar42184 жыл бұрын
@@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.
@dhanushkodiraj61533 жыл бұрын
How to handle the array in Request body? Can we pass it as a Global variable?
@RahulRathore413 жыл бұрын
Kindly describe your scenario?
@dhanushkodiraj61533 жыл бұрын
@@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
@RahulRathore413 жыл бұрын
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
@dhanushkodiraj61533 жыл бұрын
@@RahulRathore41 Thank You Rahul, I will try it out and let you now here.
@dhanushkodiraj61533 жыл бұрын
Katalon is not able to recognize JSONArray.. Not able to resolve this issue
@jeremyPog26645 ай бұрын
@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\" " + "}"
@RahulRathore415 ай бұрын
You can use the following website for that www.freeformatter.com/json-escape.html
@joshuawrixon27672 жыл бұрын
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
@RahulRathore412 жыл бұрын
You can do something like this github.com/rahulrathore44/APITestingWithKatalonStudio7.x/blob/master/Scripts/VerifyGlobalVariables/TC%20-%20GetAllVariable/Script1650125549064.groovy#L21-#L28