maciejmaciejewski / azure-pipelines-postman

MIT License
13 stars 9 forks source link

Results not displaying #9

Open mattiashjorth opened 4 years ago

mattiashjorth commented 4 years ago

Hi!

I've implemented this task both in the build pipeline and in the release pipeline. Everything looks good and the tasks finishes with success but the html-reports is never displayed in the tab in the DevOps-portal. After the loading indicator the tabs gets black:

image

image

This is how the steps in the build pipeline looks:

steps:

Am I doing something wrong or is it an error?

pankajdevrani commented 4 years ago

I think the problem is the report not being present in the location. In your newman run script, try using $(System.DefaultWorkingDirectory)/Results/htmlReport.html path to create the results in the $(System.DefaultWorkingDirectory)/Results directory

nikohsieh commented 3 years ago

I am running into the same issue

script: 'newman run postman_collection.json -e test.postman_environment.json --reporters htmlextra --reporter-htmlextra-export $(System.DefaultWorkingdirectory)\Results\htmlReport.xml

steps:

I see the same spinning "Waiting for task results" screen

mattiashjorth commented 3 years ago

Hi nikohsieh!

In my case the actual problem was in the installation step. The syntax I tried with was wrong, after change to a one-liner it worked for me. Try to specify the installation step like this:

npm install -g newman newman-reporter-htmlextra

nikohsieh commented 3 years ago

Hi nikohsieh!

In my case the actual problem was in the installation step. The syntax I tried with was wrong, after change to a one-liner it worked for me. Try to specify the installation step like this:

npm install -g newman newman-reporter-htmlextra

Hi Mattiashjorth,

I tried your suggestion and it's the same, I am still getting the spinning circle waiting for task results. I confirm that the html reports are in the folder but not sure why it's still not working.


steps: