Add tests for comparing two placeholders

This commit is contained in:
TwinProduction
2020-09-29 19:32:59 -04:00
parent d019942278
commit bc16ae1794
3 changed files with 21 additions and 2 deletions

View File

@ -125,7 +125,7 @@ Here are some examples of conditions you can use:
| `[BODY].data[0].id == 1` | JSONPath value of `$.data[0].id` is equal to 1 | `{"data":[{"id":1}]}` | |
| `len([BODY].data) < 5` | Array at JSONPath `$.data` has less than 5 elements | `{"data":[{"id":1}]}` | |
| `len([BODY].name) == 8` | String at JSONPath `$.name` has a length of 8 | `{"name":"john.doe"}` | `{"name":"bob"}` |
| `[BODY].age == [BODY].id` | JSONPath value of `$.age` is equal JSONPath `$.id` | `{"user":{"name":"john"}}` | |
### Alerting