maciejmaciejewski / azure-pipelines-postman

MIT License
13 stars 9 forks source link

Unable to get reports when use multiple agent jobs #3

Closed saikiran40cs closed 4 years ago

saikiran40cs commented 4 years ago

My scenario is we have 3 collections and each is configured to run as an agent job. When publishing reports only one collection results are getting published.

image

Output: image

Could you please look into this.

maciejmaciejewski commented 4 years ago

@saikiran40cs Thanks for reporting the issue. I am currently working on this issue in my other extension (Protractor) and will port it here once done.

saikiran40cs commented 4 years ago

We are still not able to view two collection results. Could you please let me know if I need to do any change

maciejmaciejewski commented 4 years ago

I have been testing using following pipeline configuration

  jobs:
  - job: job_1
    displayName: 'Job 1'
    pool:
      vmImage: 'ubuntu-latest'
    steps:
    - task: UploadPostmanHtmlReport@1
      inputs:
        cwd: '$(System.DefaultWorkingDirectory)/NewmanResults'
        tabName: 'Job 1'
  - job: job_2
    displayName: 'Job 2'
    pool:
      vmImage: 'ubuntu-latest'
    steps:
    - task: UploadPostmanHtmlReport@1
      inputs:
        cwd: '$(System.DefaultWorkingDirectory)/NewmanResults'
        tabName: 'Job 2'

Which gives me following output image

tabName parameter is optional

saikiran40cs commented 4 years ago

Thanks this works for Azure YAML Pipelines also unless you specify the newman report export location.

image