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.


I have simple test (see code below):
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.