Questions tagged [karate]

Use this tag for questions related to web-service API testing using the Karate framework.

Filter by
Sorted by
Tagged with
3
votes
2answers
783 views

How to send API request json body in cucumber

Can anyone help me to send json request in one line ?? Example { "benefitPlanIDs": [ { "benefitPlanID": "011748abc", "benefitPlanPlatform": "abc" } ], "clientId": "abc", "...
0
votes
0answers
255 views

TestNGClassFinder Warning: Can't link and determine methods of class examples.ExamplesTest

Just started with Karate API test sample project and encountered with this issue. My pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
0answers
334 views

javascript evaluation failed: PPB00001694, ReferenceError: “PPB00001694” is not defined in <eval> at line number 1

I have created a test using Karate DSL and using the data-table for the send to the URL path variable. I need to pass the test data in to URL, but it's throwing an error. My code: Feature: Update ...
2
votes
1answer
375 views

Getting issue while automating SOAP service using Karate framework

I am a bit stuck while automating SOAP service . I have below url and request xml : Background: url Scenario: soap 1.1 request """ When soap action '********' Then status 200 After running ...
1
vote
1answer
928 views

Comparison testing using karate tool

I'm using karate tool for api automation testing. Is there a way to do comparison or A/B testing using karate - That's testing with 2 urls and making sure both return the same response..please help ..
1
vote
1answer
6k views

Getting issue with passing string variable in JSON request [closed]

I am stuck in a scenario where i have created customized java code which returns a string. Next, I am passing it in another \path with JSON request below: Given url 'url' def browserCall = Java.type('...
4
votes
1answer
2k views

Getting issue while sending nested JSON as request to validate the POST REST API method using Karate framework

Please note that I am trying to send the below request and validate the response on POST method using url `http:******* Note : I tried sending nested Json as an array like ****[0]='', voucherData[1]='...