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
GET https://hurl.dev/broken
HTTP 404
[Captures]
id: xpath "string(//span[@class='comment'])"
Executing hurl --test /tmp/test.hurl must succeed :
/tmp/test.hurl: Success (1 request(s) in 321 ms)
Then update /tmp/test.hurl file, adding a non-working regex filter :
GET https://hurl.dev/broken
HTTP 404
[Captures]
id: xpath "string(//span[@class='comment'])" regex "this regex does not work"
Executing hurl --test /tmp/test.hurl must fail, but the error stack is on the query instead of the filter :
error: No query result
--> /tmp/test.hurl:4:5
|
| GET https://hurl.dev/broken
| ...
4 | id: xpath "string(//span[@class='comment'])" regex "this regex does not work"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The query didn't return any result
|
/tmp/test.hurl: Failure (1 request(s) in 323 ms)
What is the expected correct behavior?
error: No query result
--> /tmp/test.hurl:4:5
|
| GET https://hurl.dev/broken
| ...
4 | id: xpath "string(//span[@class='comment'])" regex "this regex does not work"
| ^^^^^ The filter didn't return any result
|
/tmp/test.hurl: Failure (1 request(s) in 323 ms)
Execution context
Hurl Version (hurl --version): 5.0.1
The text was updated successfully, but these errors were encountered:
lepapareil
changed the title
The error stack is incorrect when using a query with a filter that doesn't return any result
The error stack is inaccurate when using a query with a filter that doesn't return any result
Nov 22, 2024
Steps to reproduce
Create
/tmp/test.hurl
file :Executing
hurl --test /tmp/test.hurl
must succeed :Then update
/tmp/test.hurl
file, adding a non-working regex filter :Executing
hurl --test /tmp/test.hurl
must fail, but the error stack is on thequery
instead of thefilter
:What is the expected correct behavior?
Execution context
hurl --version
): 5.0.1The text was updated successfully, but these errors were encountered: