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
@@ -312,7 +312,7 @@ You can replace the values of `com.mycompany` and `myproject` as per your needs.
312
312
mvn archetype:generate \
313
313
-DarchetypeGroupId=com.intuit.karate \
314
314
-DarchetypeArtifactId=karate-archetype \
315
-
-DarchetypeVersion=0.9.2 \
315
+
-DarchetypeVersion=0.9.3 \
316
316
-DgroupId=com.mycompany \
317
317
-DartifactId=myproject
318
318
```
@@ -1999,12 +1999,12 @@ Example:
1999
1999
2000
2000
```
2001
2001
# trust all server certificates, in the feature file
2002
-
* configure ssl = {trustAll: true});
2002
+
* configure ssl = {trustAll: true };
2003
2003
```
2004
2004
2005
2005
```
2006
2006
# trust all server certificates, global configuration in 'karate-config.js'
2007
-
karate.configure('ssl', {trustAll: true});
2007
+
karate.configure('ssl', {trustAll: true});
2008
2008
```
2009
2009
2010
2010
# Payload Assertions
@@ -2078,9 +2078,13 @@ In case you were wondering, variables (and even expressions) are supported on th
2078
2078
* match foo == bar
2079
2079
```
2080
2080
2081
-
If you are wondering about the finer details of the `match` syntax, the left-hand-side has to be either a variable name, or a 'named' JsonPath or XPath expression. And the right-hand-side can be any valid [Karate expression](#karate-expressions).
2081
+
If you are wondering about the finer details of the `match` syntax, the left-hand-side has to be either a
2082
+
* variable name - e.g. `foo`
2083
+
* a 'named' JsonPath or XPath expression - e.g. `foo.bar`
2084
+
* any valid function or method call - e.g. `foo.bar()` or `foo.bar('hello').baz`
2085
+
* or anything wrapped in parantheses which will be evaluated - e.g. `(foo + bar)` or `(42)`
2082
2086
2083
-
>Refer to the section on [JsonPath short-cuts](#jsonpath-short-cuts) for a deeper understanding of 'named' JsonPath expressions in Karate.
2087
+
And the right-hand-side can be any valid [Karate expression](#karate-expressions). Refer to the section on [JsonPath short-cuts](#jsonpath-short-cuts) for a deeper understanding of 'named' JsonPath expressions in Karate.
2084
2088
2085
2089
### `match !=` (not equals)
2086
2090
The 'not equals' operator `!=` works as you would expect:
0 commit comments