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

Print info in current "step" before assertions #597

Closed
ColinHuang opened this issue Oct 24, 2022 · 0 comments · Fixed by #617 or #670
Closed

Print info in current "step" before assertions #597

ColinHuang opened this issue Oct 24, 2022 · 0 comments · Fixed by #617 or #670

Comments

@ColinHuang
Copy link

In this case, result 2 will still print the bodyjson of result 1.
Is there a way to make result 2 print the bodyjson of test2?

Hope the result 2 will be printed even if the test of test2 failed.

testcases:
- name: test A
  steps:
  - type: http
    method: POST
    url: {{.url}}/test1
    timeout: 5
    info: result 1 {{.result.bodyjson}}
    assertions:
    - result.statuscode ShouldEqual 200
  - type: http
    method: GET
    url: {{.url}}/test2
    timeout: 5
    retry: 3
    delay: 2
    info: result 2 {{.result.bodyjson}}
    assertions:
    - result.statuscode ShouldEqual 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant