Skip to main content

Questions tagged [karate]

Use for questions regarding Karate, an open-source tool that combines API test-automation, mocks, performance-testing and UI automation - into a single, unified framework.

0 votes
0 answers
12 views

! use in tables appears to not work in @setup, to read js as it appears to require string values

Hopefully the samples are to the point enough to show the issue, when ran. In a @setup use, we were looking to replace a field with a dynamic value (variable). While this works in a basic scenario, ...
mike's user avatar
  • 607
0 votes
0 answers
12 views

Use of @setup seems to suppress comments in actual scenario outine within the karate report

When running the following code, the comments in the scenario outline are not shown in the karate report. Is this an expected result of using setup or a bug? Looking at the image below, we were ...
mike's user avatar
  • 607
1 vote
0 answers
17 views

Qtest automation framework integration

I want to Integrate Qtest with karate framework used for API automation. I am using the below libraries of Qtest group: 'com.qasymphony.qtest', name: 'qtest-sdk-java', version: '1.4.10' to integrate ...
Shruti Gupta's user avatar
1 vote
0 answers
19 views

Sending a file in the body of a POST request in Karate

I am having some difficulties getting a request to work as expected in Karate where I use a .json file in the body of my POST request. I have tried to define it as both a form field and as a multipart ...
DEnumber50's user avatar
1 vote
0 answers
21 views

Testing uploading file by karate : Unsupported Media Type

I am trying to test uploading a pdf file by karate, and I am getting the following error. here is my endpoint to upload file @Controller @RequestMapping("/files") public class ...
user3687406's user avatar
1 vote
0 answers
14 views

Question on the readiness of Karate framework for mobile app UI test

I would like to inquire on the readiness of karate framework for mobile app UI test (Appium) https://karatelabs.github.io/karate/examples/mobile-test/ The website says "Please consider Mobile ...
Tony Thongsinthop's user avatar
1 vote
1 answer
24 views

Transforming API Payload into Nested JSON Structure

I received the following response from an API: { "id": 306, "FieldName": "customer.info.User", } Based on the FieldName attribute from this response, I need to ...
Shreyansh Jain's user avatar
-2 votes
1 answer
32 views

Use karate's fuzzy matching outside of karate

I love karate's fuzzy matching feature. I'm wondering if it's possible to use it outside of karate. Is there an internal or external dependency one can use to take full advantage of the same fuzzy ...
james.lorenzen's user avatar
1 vote
1 answer
31 views

Fail to run demo Karate Gatling from GIT

I have cloned the karate demo from https://github.com/karatelabs/karate into my VScode environment. My aim is to run karate-gatling project. At the terminal, I run the command mvn test -P Gatling. The ...
Tony Thongsinthop's user avatar
0 votes
0 answers
21 views

Karate desktop automation - application launch issue and locators difference between Windows and Mac OS

Unable to launch the application for Mac OS using the below Karate-robot fork option robot {fork: '/WindowsApps/ABCD.apk'} Meanwhile same application path is working fine in windows with karate-...
user26374107's user avatar
1 vote
1 answer
33 views

karate.log files are not generating

I found similar question but it was not helpful for me. I am running the karate feature files from a runner: void testParallel() throws IOException { Runner.path("classpath:Features/abc....
user13245465's user avatar
2 votes
0 answers
20 views

Switch the focus to Modal dialog box and perform the actions on top of it

We have a scenario to navigate the focus from parent browser window to modal dialog box which is opened after click the add button. Inside of this dialog box we have an option to enter text in couple ...
user26374107's user avatar
2 votes
1 answer
33 views

Karate-Gatling failed request is not marked as KO in the Gatling report

I'm using karate feature file to run gatling. There are some request having error status (400 403 500 504,...) but are not mark as KO in gatling report I expect that gatling report should mark fail ...
koko chambo's user avatar
1 vote
1 answer
24 views

dynamic response validation in karate

'we have api which response is below,The keys(humidity,temperature) are dynamic depends upon the request how to Vaildate schema in karate { "en_humidity": [ { "value": &...
PRINCE's user avatar
  • 11
1 vote
1 answer
39 views

Error: Could not find or load main class com.intuit.karate.Main

I installed VScode with Karate extension v2.0.5 (most recent one) + Runtime support for Java I simply created a simple project with 1 feature file. However, upon running I encountered below error &...
Tony Thongsinthop's user avatar

15 30 50 per page
1
2 3 4 5
307