Skip to content

Bug: show_test_results_from_build_id fails with any outcomes filter value #1129

@krid-583

Description

@krid-583

Tool: testplan_show_test_results_from_build_id

The tool returns an error when the outcome parameter is passed saying Argument filter with value Outcome eq 'failed' is not correct

Image

Steps to reproduce:

  • Call the tool with a valid buildid and project
  • Pass outcomes parameter with value ["Failed"]
  • Expected: Returns test results filtered by the specified outcome.
  • Actual: Returns error:
    Error fetching test results: Argument filter with value Outcome eq 'Failed' is not correct. Correct the argument value and try again.

Suggestions for fixing:

When I tried to remove the ' ' while the creation of the outcomeFilter expression in
const outcomeFilter = outcomes?.map((o) =>Outcome eq '${o}').join(" or ");, the tool was working correctly.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Review 👓needs review by the product teamPipelines 🚀builds, releases and pipelines area

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions