agent-js-postman icon indicating copy to clipboard operation
agent-js-postman copied to clipboard

ReportPortal doesn't parse postman tests correctly.

Open VsevolodBulgartsev opened this issue 3 years ago • 2 comments

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

VsevolodBulgartsev avatar Aug 10 '21 07:08 VsevolodBulgartsev

Hello @VsevolodBulgartsev ! At first glance, this looks like a bug. We will investigate this case and make a decision on it.

AmsterGet avatar Aug 30 '21 13:08 AmsterGet

https://github.com/reportportal/agent-js-postman/pull/94

dgosantos89 avatar Jun 29 '23 20:06 dgosantos89