Thanks Naveen for making this wonderful series. One question so far: 1. Suppose I m creating something(let’s say employee) using post and on the next test case, I need the employee Id of this employee to get employee. I see you were doing json response to get the values but you are just printing the values but I need this employee id value in some another test case not in the same test case. 1. Post an employee 2. Get an employee(creted in step1) 3 delete an employee(created in step1) This is my scenario that I want to run so that at the end there is no data should save in my db.
Your data parameterisation need can be resolved by using either Use case 1 or Use case 2.Both the use case should work fine for your above test condition. Use case 1: Using karate.call() and karate.callSingle() karate.call(): This function allows you to call another feature or scenario and pass data to it. It executes the called feature every time it is invoked. karate.callSingle(): This function ensures that the called feature is executed only once and its result is cached. This is useful for setup tasks that need to be done only once. Use case 2: Using karate.set() and karate.get() karate.set(): This function sets a variable in the global context. This variable can then be accessed in any other scenario or feature. karate.get(): This function retrieves a variable from the global context.
Nice video for a beginner like me.One quick question, on the html report, i can see some of the step numbers highlighted with BLUE colour.What is the underneath logic for the blue colour for some specific steps? Thanks.
how to realize one in this case : [baseurl]/generico/sistematico/firma-digital/toc/v1/transaccion/17?SoloEstado=1&flujo=transaccion, where 17 is the id to consult?
Thanks, Naveen Sir.....Please continue this session till the advance topics with real time project
Awesome Topic and thanks for your efffort.
simple and easy to understand tutorial. Well done
Thank you so much Naveen!! Keep going 🙏
Thanks Naveen for making this wonderful series. One question so far:
1. Suppose I m creating something(let’s say employee) using post and on the next test case, I need the employee Id of this employee to get employee.
I see you were doing json response to get the values but you are just printing the values but I need this employee id value in some another test case not in the same test case.
1. Post an employee
2. Get an employee(creted in step1)
3 delete an employee(created in step1)
This is my scenario that I want to run so that at the end there is no data should save in my db.
Your data parameterisation need can be resolved by using either Use case 1 or Use case 2.Both the use case should work fine for your above test condition.
Use case 1: Using karate.call() and karate.callSingle()
karate.call(): This function allows you to call another feature or scenario and pass data to it. It executes the called feature every time it is invoked.
karate.callSingle(): This function ensures that the called feature is executed only once and its result is cached. This is useful for setup tasks that need to be done only once.
Use case 2: Using karate.set() and karate.get()
karate.set(): This function sets a variable in the global context. This variable can then be accessed in any other scenario or feature.
karate.get(): This function retrieves a variable from the global context.
Nice video for a beginner like me.One quick question, on the html report, i can see some of the step numbers highlighted with BLUE colour.What is the underneath logic for the blue colour for some specific steps? Thanks.
appreciate your contribution ...do you have any plan to make a series on karate mobile automation.....
hi naveen for report, what dependency you used ? I have used surefire reports , but still not getting the report
Hi Naveen.....if i am passing I'd from another feature file as a query parameter in another get request..how can we do it??
Ty Naveen!
Hello ,Sir .how to prepare for quality analyst interviewas a fresher ?
Please make a video on how to test API writing SQL queries on feature file on karate intellilab
How to run tests via command line Pls share a video this will be very helpful to run in Ci/Cd
Hello sir, how to call 2or more api calls in karate not able to print reponse
Hi , Karate use log4j inbuilt? If Yes how to remove and update log4j to 17 version
I only have seen query parameters as JSON, Can you show how to pass query parameter with a XML.
how to realize one in this case : [baseurl]/generico/sistematico/firma-digital/toc/v1/transaccion/17?SoloEstado=1&flujo=transaccion, where 17 is the id to consult?