And match response.error.details[*].message contains <message>
Examples:
| status | code | programId | description | id | type | message |
| 404 | 404 | maxProgramId | Not Found | NotFound | validationError | "The value is not found."
Asked
Active
Viewed 265 times
-1

David Buck
- 3,752
- 35
- 31
- 35

Iyappan Mani
- 47
- 3
-
never use screenshots please: https://stackoverflow.com/help/how-to-ask - follow this process or wait for someone else here to help you: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue – Peter Thomas Jul 10 '20 at 19:12
-
Sure i will avoid them in future. But i would like to show the print statements were printing the same texts but the match assertion is failing. – Iyappan Mani Jul 10 '20 at 19:21
-
see the second link above, thanks – Peter Thomas Jul 11 '20 at 02:59
1 Answers
0
Try using get[0] response.error.details[*].message
as response.error.details[*].message returns an array

Vaibhav Khandelwal
- 51
- 3
- 8