Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows add custom message to report #3791

Open
3 tasks
dannykentala opened this issue Feb 27, 2025 · 0 comments
Open
3 tasks

Allows add custom message to report #3791

dannykentala opened this issue Feb 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dannykentala
Copy link

dannykentala commented Feb 27, 2025

Problem to solve

Have a better description of what test fail

Idk, if my approach is correct, but actually i am having multiple request in a single file to test a API functionality however, hurl just return something like

error: Assert failure
  --> user-reads.hurl:83:0
     |
     | POST {{BASE_URL}}/userReads
     | ...
83 | jsonpath "$.data.dailyIncrement" == 0
     |   actual:   float <6.520000457763672>
     |   expected: int <0>
     |

Proposal

My idea is that hurl could allow to add a error description, like

error: Assert failure
  --> user-reads.hurl:83:0
     |
     | POST {{BASE_URL}}/userReads
     | ...
83 | jsonpath "$.data.dailyIncrement" == 0
     |   actual:   float <6.520000457763672>
     |   expected: int <0>
     |
     | description: If initial date is one day before end date, daily increment should be 0

in .hurl file the option could look like this

POST {{BASE_URL}}/userReads
[Asserts]
description:  If initial date is one day before end date, daily increment should be 0

This will help me to have a cleaner idea of what the test does.

Tasks to complete

  • Display custom message when an error appear
  • Allows to add a custom message in [Asserts] section
  • Update the docs, that explain how to use this functionality
@dannykentala dannykentala added the enhancement New feature or request label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant