agent-js-postman
agent-js-postman copied to clipboard
ReportPortal doesn't parse postman tests correctly.
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.
Hello @VsevolodBulgartsev ! At first glance, this looks like a bug. We will investigate this case and make a decision on it.
https://github.com/reportportal/agent-js-postman/pull/94