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

(bug) Subassertions are not rendered in reports #754

Open
bcecchinato opened this issue Dec 4, 2023 · 6 comments
Open

(bug) Subassertions are not rendered in reports #754

bcecchinato opened this issue Dec 4, 2023 · 6 comments
Labels

Comments

@bcecchinato
Copy link

Hello !

I've got the following assertions :

        assertions:
          - result.statuscode ShouldEqual 200
          - result.bodyjson.board-current ShouldEqual 17999
          - result.bodyjson.board-current-residual ShouldEqual 99
          - result.bodyjson.detection-threshold ShouldEqual 69
          - result.bodyjson.emergency-mode ShouldEqual "LOWER_FIRST"
          - result.bodyjson.output-current.0 ShouldEqual 3999
          - result.bodyjson.output-current.1 ShouldEqual 3998
          - result.bodyjson.output-current.2 ShouldEqual 3998
          - result.bodyjson.output-current.3 ShouldEqual 3998
          - result.bodyjson.output-current.4 ShouldEqual 3998
          - result.bodyjson.output-current.5 ShouldEqual 3998
          - result.bodyjson.output-current.6 ShouldEqual 3998
          - result.bodyjson.output-current.7 ShouldEqual 3998
          - result.bodyjson.output-current-residual.0 ShouldEqual 19
          - result.bodyjson.output-current-residual.1 ShouldEqual 18
          - result.bodyjson.output-current-residual.2 ShouldEqual 18
          - result.bodyjson.output-current-residual.3 ShouldEqual 18
          - result.bodyjson.output-current-residual.4 ShouldEqual 18
          - result.bodyjson.output-current-residual.5 ShouldEqual 18
          - result.bodyjson.output-current-residual.6 ShouldEqual 18
          - result.bodyjson.output-current-residual.7 ShouldEqual 18
          - result.bodyjson.rearm-timeout ShouldEqual 299
          - or:
            - and:
              - SPDU-20-4008-TC01-Details.report.firmware ShouldNotStartWith "BIN_V5.0"
              - result.bodyjson.backoff-timeout ShouldEqual 0
              - result.bodyjson.output-priority.0 ShouldEqual 0
              - result.bodyjson.output-priority.1 ShouldEqual 0
              - result.bodyjson.output-priority.2 ShouldEqual 0
              - result.bodyjson.output-priority.3 ShouldEqual 0
              - result.bodyjson.output-priority.4 ShouldEqual 0
              - result.bodyjson.output-priority.5 ShouldEqual 0
              - result.bodyjson.output-priority.6 ShouldEqual 0
              - result.bodyjson.output-priority.7 ShouldEqual 0
            - and:
              - SPDU-20-4008-TC01-Details.report.firmware ShouldNotStartWith "BIN_V5.1"
              - result.bodyjson.backoff-timeout ShouldEqual 0
              - result.bodyjson.output-priority.0 ShouldEqual 0
              - result.bodyjson.output-priority.1 ShouldEqual 0
              - result.bodyjson.output-priority.2 ShouldEqual 0
              - result.bodyjson.output-priority.3 ShouldEqual 0
              - result.bodyjson.output-priority.4 ShouldEqual 0
              - result.bodyjson.output-priority.5 ShouldEqual 0
              - result.bodyjson.output-priority.6 ShouldEqual 0
              - result.bodyjson.output-priority.7 ShouldEqual 0
            - and:
              - SPDU-20-4008-TC01-Details.report.firmware ShouldNotStartWith "BIN_V5.0"
              - SPDU-20-4008-TC01-Details.report.firmware ShouldNotStartWith "BIN_V5.1"
              - result.bodyjson.backoff-timeout ShouldEqual 299
              - result.bodyjson.output-priority.0 ShouldEqual 0
              - result.bodyjson.output-priority.1 ShouldEqual 1
              - result.bodyjson.output-priority.2 ShouldEqual 1
              - result.bodyjson.output-priority.3 ShouldEqual 1
              - result.bodyjson.output-priority.4 ShouldEqual 1
              - result.bodyjson.output-priority.5 ShouldEqual 1
              - result.bodyjson.output-priority.6 ShouldEqual 1
              - result.bodyjson.output-priority.7 ShouldEqual 1

The report will render all "root" assertions properly, but the and/or blocs are rendered as [object Object]. It would be better to show the assertions that have been validated/skipped instead.

@ivan-velasco
Copy link
Contributor

@bcecchinato Which report are you referring to? html report?

@bcecchinato
Copy link
Author

Yes that's in the html report :)

@bcecchinato
Copy link
Author

Why closing this issue as it's not treated or fixed ?

@yesnault
Copy link
Member

Hi @bcecchinato, not fixed but staled. Can you provide a full reproducer please? We'll reopen the issue.

@bcecchinato
Copy link
Author

test.zip

Attached a reproducible test case.

@bcecchinato
Copy link
Author

And the snapshot of the test report (also in the zip) :
image

@yesnault yesnault reopened this Aug 13, 2024
@github-actions github-actions bot removed the Stale label Aug 14, 2024
@github-actions github-actions bot added the Stale label Aug 28, 2024
@yesnault yesnault reopened this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants