Skip to content

ReportPortal doesn't parse postman tests correctly. #58

Description

@VsevolodBulgartsev

I have simple test (see code below):

pm.environment.set('trigger', 0)

let trigger = pm.environment.get('trigger')

if (trigger === 0) {
    pm.test("trigger is 0", function() {                
        pm.expect(trigger).to.eql(0)                
    })
}
else {
    pm.test("trigger is 1", function() {  
        pm.expect(trigger).to.eql(1)
    })
}

If I run this test in Postman or newman, it will show me correct results (1 test passed).
But if send this test in ReportPortal, it will show me incorrect results (1 test passed and 1 In Progress forever).
I've tried to use switch-case, but issue still exists.
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions