You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -267,6 +268,7 @@ And you don't need to create additional Java classes for any of the payloads tha
267
268
* Easily invoke JDK classes, Java libraries, or re-use custom Java code if needed, for [ultimate extensibility](#calling-java)
268
269
* Simple plug-in system for [authentication](#http-basic-authentication-example) and HTTP [header management](#configure-headers) that will handle any complex, real-world scenario
269
270
*[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
270
272
* Cross platform [Desktop Automation](karate-robot) that can be [mixed into Web Automation flows](https://twitter.com/ptrthomas/status/1215534821234995200) if needed
271
273
* 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)
272
274
*[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
317
319
<dependency>
318
320
<groupId>com.intuit.karate</groupId>
319
321
<artifactId>karate-junit5</artifactId>
320
-
<version>1.2.0</version>
322
+
<version>1.3.0</version>
321
323
<scope>test</scope>
322
324
</dependency>
323
325
```
@@ -328,7 +330,7 @@ If you want to use [JUnit 4](#junit-4), use `karate-junit4` instead of `karate-j
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.
344
346
mvn archetype:generate \
345
347
-DarchetypeGroupId=com.intuit.karate \
346
348
-DarchetypeArtifactId=karate-archetype \
347
-
-DarchetypeVersion=1.2.0 \
349
+
-DarchetypeVersion=1.3.0 \
348
350
-DgroupId=com.mycompany \
349
351
-DartifactId=myproject
350
352
```
@@ -1540,6 +1542,8 @@ Then status 202
1540
1542
## Compare Image
1541
1543
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.
1542
1544
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
+
1543
1547
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.
1544
1548
1545
1549
```cucumber
@@ -1613,7 +1617,6 @@ function (customConfigJson, config) {
Copy file name to clipboardExpand all lines: examples/image-comparison/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# 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).
3
3
4
4
## Overview
5
5
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).
0 commit comments