Skip to content

Commit 1d63a2e

Browse files
committed
[no ci] prep release 1.3.0
1 parent 9f41e69 commit 1d63a2e

File tree

25 files changed

+39
-28
lines changed

25 files changed

+39
-28
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ And you don't need to create additional Java classes for any of the payloads tha
182182
| <a href="#match-contains"><code>match contains</code></a>
183183
| <a href="#match-contains-only"><code>match contains only</code></a>
184184
| <a href="#match-contains-any"><code>match contains any</code></a>
185-
| <a href="#match-contains-deep"><code>match contains deep</code></a>
185+
| <a href="#match-contains-deep"><code>match contains deep</code></a>
186+
| <a href="#match-contains-only-deep"><code>match contains only deep</code></a>
186187
| <a href="#not-contains"><code>match !contains</code></a>
187188
| <a href="#match-each"><code>match each</code></a>
188189
| <a href="#match-header"><code>match header</code></a>
@@ -267,6 +268,7 @@ And you don't need to create additional Java classes for any of the payloads tha
267268
* Easily invoke JDK classes, Java libraries, or re-use custom Java code if needed, for [ultimate extensibility](#calling-java)
268269
* Simple plug-in system for [authentication](#http-basic-authentication-example) and HTTP [header management](#configure-headers) that will handle any complex, real-world scenario
269270
* [Cross-browser Web UI automation](karate-core) so that you can test *all* layers of your application with the same framework
271+
* Visual Validation via the built-in [image comparison](#compare-image) capabilities
270272
* Cross platform [Desktop Automation](karate-robot) that can be [mixed into Web Automation flows](https://twitter.com/ptrthomas/status/1215534821234995200) if needed
271273
* Option to invoke via a [Java API](#java-api), which means that you can easily [mix Karate into Java projects or legacy UI-automation suites](https://stackoverflow.com/q/47795762/143475)
272274
* [Save significant effort](https://twitter.com/ptrthomas/status/986463717465391104) by re-using Karate test-suites as [Gatling performance tests](karate-gatling) that *deeply* assert that server responses are accurate under load
@@ -317,7 +319,7 @@ All you need is available in the [`karate-core`](https://search.maven.org/artifa
317319
<dependency>
318320
<groupId>com.intuit.karate</groupId>
319321
<artifactId>karate-junit5</artifactId>
320-
<version>1.2.0</version>
322+
<version>1.3.0</version>
321323
<scope>test</scope>
322324
</dependency>
323325
```
@@ -328,7 +330,7 @@ If you want to use [JUnit 4](#junit-4), use `karate-junit4` instead of `karate-j
328330
Alternatively for [Gradle](https://gradle.org):
329331

330332
```yml
331-
testCompile 'com.intuit.karate:karate-junit5:1.2.0'
333+
testCompile 'com.intuit.karate:karate-junit5:1.3.0'
332334
```
333335

334336
Also refer to the wiki for using [Karate with Gradle](https://github.com/intuit/karate/wiki/Gradle).
@@ -344,7 +346,7 @@ You can replace the values of `com.mycompany` and `myproject` as per your needs.
344346
mvn archetype:generate \
345347
-DarchetypeGroupId=com.intuit.karate \
346348
-DarchetypeArtifactId=karate-archetype \
347-
-DarchetypeVersion=1.2.0 \
349+
-DarchetypeVersion=1.3.0 \
348350
-DgroupId=com.mycompany \
349351
-DartifactId=myproject
350352
```
@@ -1540,6 +1542,8 @@ Then status 202
15401542
## Compare Image
15411543
Karate provides a flexible way to compare two images to determine if they are the same or similar. This is especially useful when capturing screenshots during tests and comparing against baseline images that are known to be correct.
15421544

1545+
> A stand-alone example can be found here: [`examples/image-comparison`](examples/image-comparison) along with a [video explanation](https://youtu.be/wlvmNBraP60).
1546+
15431547
Below is a simple example that will compare a `baseline` image to a more recent `latest` image. An image comparison UI will also be embedded into the Karate HTML report with detailed information about any differences between the two images.
15441548

15451549
```cucumber
@@ -1613,7 +1617,6 @@ function (customConfigJson, config) {
16131617
* configure imageComparison = { hideUiOnSuccess: true }
16141618
```
16151619

1616-
16171620
Image comparison engines can also be customized:
16181621

16191622
```cucumber
@@ -2936,6 +2939,14 @@ Scenario: recurse nested array
29362939

29372940
> the NOT operator e.g. `!contains deep` is not yet supported, please contribute code if you can.
29382941
2942+
#### `match contains only deep`
2943+
This is exactly like [`match ==`](#match) but the order of arrays does not matter. All arrays no matter the "depth" will be checked in this way.
2944+
2945+
```cucumber
2946+
* def response = { foo: [ 'a', 'b' ] }
2947+
* match response contains only deep { foo: [ 'b', 'a' ] }
2948+
```
2949+
29392950
## Validate every element in a JSON array
29402951
### `match each`
29412952
The `match` keyword can be made to iterate over all elements in a JSON array using the `each` modifier. Here's how it works:

examples/consumer-driven-contracts/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<maven.surefire.version>2.22.2</maven.surefire.version>
2020
<spring.boot.version>2.3.4.RELEASE</spring.boot.version>
2121
<junit5.version>5.7.0</junit5.version>
22-
<karate.version>1.2.0</karate.version>
22+
<karate.version>1.3.0</karate.version>
2323
</properties>
2424

2525
<dependencies>

examples/gatling/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
ext {
6-
karateVersion = '1.2.0'
6+
karateVersion = '1.3.0'
77
}
88

99
dependencies {

examples/image-comparison/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Karate Image Comparison
2-
This project is designed to demonstrate basic usage of the [Image Comparison](https://github.com/karatelabs/karate/#compare-image) feature.
2+
This project is designed to demonstrate basic usage of the [Image Comparison](https://github.com/karatelabs/karate/#compare-image) feature. You can also watch a video explanation [here](https://youtu.be/wlvmNBraP60).
33

44
## Overview
55
The [Image Comparison](https://github.com/karatelabs/karate/#compare-image) feature was introduced in [Karate 1.3.0](https://github.com/karatelabs/karate/wiki/1.3.0-Upgrade-Guide).

examples/image-comparison/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<java.version>1.8</java.version>
1313
<maven.compiler.version>3.8.1</maven.compiler.version>
14-
<karate.version>1.3.0-SNAPSHOT</karate.version>
14+
<karate.version>1.3.0</karate.version>
1515
</properties>
1616

1717
<dependencies>

examples/jobserver/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
ext {
6-
karateVersion = '1.2.0'
6+
karateVersion = '1.3.0'
77
}
88

99
dependencies {

examples/jobserver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<java.version>1.8</java.version>
1313
<maven.compiler.version>3.8.1</maven.compiler.version>
14-
<karate.version>1.2.0</karate.version>
14+
<karate.version>1.3.0</karate.version>
1515
</properties>
1616

1717
<dependencies>

examples/mobile-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<java.version>1.8</java.version>
1313
<maven.compiler.version>3.8.1</maven.compiler.version>
1414
<maven.surefire.version>2.22.2</maven.surefire.version>
15-
<karate.version>1.2.0</karate.version>
15+
<karate.version>1.3.0</karate.version>
1616
</properties>
1717

1818
<dependencies>

examples/mock-servlet/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<java.version>1.8</java.version>
1313
<maven.compiler.version>3.6.0</maven.compiler.version>
1414
<spring.boot.version>2.5.12</spring.boot.version>
15-
<karate.version>1.2.0</karate.version>
15+
<karate.version>1.3.0</karate.version>
1616
</properties>
1717

1818
<dependencies>

examples/profiling-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<java.version>1.8</java.version>
1313
<maven.compiler.version>3.6.0</maven.compiler.version>
14-
<karate.version>1.2.0</karate.version>
14+
<karate.version>1.3.0</karate.version>
1515
<gatling.plugin.version>4.1.1</gatling.plugin.version>
1616
</properties>
1717

0 commit comments

Comments
 (0)