Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReportPortal doesn't parse postman tests correctly. #58

Open
VsevolodBulgartsev opened this issue Aug 10, 2021 · 2 comments
Open

ReportPortal doesn't parse postman tests correctly. #58

VsevolodBulgartsev opened this issue Aug 10, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@VsevolodBulgartsev
Copy link

VsevolodBulgartsev commented Aug 10, 2021

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

@AmsterGet AmsterGet added the bug Something isn't working label Aug 30, 2021
@AmsterGet
Copy link
Member

AmsterGet commented Aug 30, 2021

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

@dgosantos89
Copy link

#94

@AmsterGet AmsterGet linked a pull request Aug 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants