Skip to content

Commit 43ae7df

Browse files
committed
minor fixes to doc, final release of 0.2.6
1 parent 7420049 commit 43ae7df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ Here is an example JavaScript function that uses some variables in the context
14831483
(which have been possibly set as the result of a sign-in) to build the `Authorization` header.
14841484

14851485
> In the example below, note the use of the [`karate`](#the-karate-object) object
1486-
for getting the value of a variable. This is preferred because it takes care of
1486+
for getting the value of a dynamic variable. This is preferred because it takes care of
14871487
situations such as if the value is 'undefined' in JavaScript.
14881488

14891489
```javascript
@@ -1500,7 +1500,7 @@ function() {
15001500
+ ',auth_user=' + authToken.userId
15011501
+ ',auth_project=' + authToken.projectId;
15021502
}
1503-
// the 'appId' variable here is expected to have been set via config (or a 'def' step)
1503+
// the 'appId' variable here is expected to have been set via config / init and will never change
15041504
out.Authorization = 'My_Auth app_id=' + appId + authString;
15051505
return out;
15061506
}

karate-demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ as well as demonstrate various Karate features and best-practices.
55
| Example | Demonstrates
66
----------| --------
77
[`greeting.feature`](src/test/java/demo/greeting/greeting.feature) | Simple GET requests and multiple scenarios in a test.
8-
[`headers.feature`](src/test/java/demo/headers/headers.feature) | A simple example of header management using a js file ([`classpath:headers.js`](src/test/java/headers.js)), and also shows how cookies can be accessed and how path and query parameters can be specified.
8+
[`headers.feature`](src/test/java/demo/headers/headers.feature) | A simple example of header management using a JS file ([`classpath:headers.js`](src/test/java/headers.js)), and also shows how cookies can be accessed and how path and query parameters can be specified.
99
[`cats.feature`](src/test/java/demo/cats/cats.feature) | Great example of [embedded-expressions](https://github.com/intuit/karate#embedded-expressions) (or JSON / XML templating). Also shows how to set the `Accept` [header](https://github.com/intuit/karate#header) for getting XML from the server.
1010
[`kittens.feature`](src/test/java/demo/cats/kittens.feature) | Reading a complex payload expected response [from a file](https://github.com/intuit/karate#reading-files). You can do the same for request payloads as well. Observe how [JSON templating](https://github.com/intuit/karate#embedded-expressions) makes creating dynamic JSON super-easy, look at [line #24](src/test/java/demo/cats/kittens.feature#L24) for example.
1111
[`upload.feature`](src/test/java/demo/upload/upload.feature) | [Multi-part](https://github.com/intuit/karate#multipart-field) file-upload example, as well as comparing the binary content of a download. Also shows how to assert for expected response [headers](https://github.com/intuit/karate#match-header).

0 commit comments

Comments
 (0)