Once you have a JSON or XML object, Karate provides multiple ways to manipulate, extract or transform data. This also works as a getter to get the current window dimensions. Also see waits. If parsing fails, Karate will log a warning and the value of response will then be a plain string. And when you read your JSON objects from (re-usable) files, even complex response payload assertions can be accomplished in just a single line of Karate-script. and & will be automatically inserted. When expressing expected results (in JSON or XML) you can mark some fields to be ignored when the match (comparison) is performed. You should be able to right-click and run a single method using your IDE - which should be sufficient when you are in development mode. The above example actually makes two HTTP requests - the first is a standard sign-in POST and then (for illustrative purposes) another HTTP call (a GET) is made for retrieving a list of projects for the signed-in user, and the first one is selected and added to the returned auth token JSON object. For those who may prefer YAML as a simpler way to represent data, Karate allows you to read YAML content from a file - and it will be auto-converted into JSON. Here is an example that combines the table keyword with calling a *.feature. The static method com.intuit.karate.Runner.runFeature() is best explained in this demo unit-test: JavaApiTest.java. Refer to the section on XPath Functions for examples of advanced XPath usage. You can now use Karates core API and call chained methods. # and even ignore fields at the same time ! This is the recommended, browser-agnostic approach that uses Karates core-competency as an HTTP API client i.e. We will discuss the Karate API, UI Automation, and g. There are two types of code that can be call-ed. Karate provides an elegant native-like experience for placeholder substitution within strings or text content. If you have trouble with