Skip to content

Assertion errors #8

Open
Open
@fsaltiu

Description

@fsaltiu

Hello,

I have an issue that I'm not sure how to fix, it's probably me doing something wrong but I didn't find any other way of getting in contact. I use your Wrapper to convert my Postman Collections into Test Cases and run them with the release pipeline as specified in the wiki. The thing is that these Test Cases always seem to be passing when actually in Postman the Tests scripts do not pass.
For example:
I add pm.response.to.have.status(201) to my 'Tests' tab in Postman request and it returns 404 but the Test Case is still marked as passed. I have tried with different assertions like tests["Status code is 200"] = responseCode.code === 200 but I never seem to be able to make the Test Case fail (in Azure, in Postman it works as expected).
The question would be if I need to add some updates to the Wrapper to also check for the Tests scripts or if these assertions should be done in a different way.

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions