Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 06:57 AM
That's right, the "reason" would be "x1 is negative" in your example and "valid_max_length" in the example JSON payload that I shared.
If you are looking for a descriptive reason, you would name the expectation accordingly such as:
@Dlt.expect_or_fail("this expectation will fail because of reason1 and reason2", "count > 0")