Anil
Anil

Reputation: 61

Azure Devops Extension- PublishHTMLReport in Azure pipelines not producing HTML tab in azure devops

I am having issue with this extension (Azure Devops Extension- PublishHTMLReport) somehow HTML tab is not appearing in the Azure Devops. The below config of this plugin: htmltype: Jmeter JmeterReportsPath: D:\a\r1\a\HTMLReports

Prior to the above task, I am using CMD task as below: echo 'JMeter' jmeter -n -t _JmeterTest\JmeterWebApp.jmx -l _JmeterTest\Summary.jtl -e -o HTMLReports

In the log, it is generating HTML content but not publishing HTML report using Publish HTML Report extension.

Upvotes: 0

Views: 2884

Answers (1)

Bright Ran-MSFT
Bright Ran-MSFT

Reputation: 13534

Check if the path of the report is consistent.

In this command line,

jmeter -n -t _JmeterTest\JmeterWebApp.jmx -l _JmeterTest\Summary.jtl -e -o HTMLReports

The output folder should be generated in the directory '$(Build.SourcesDirectory)', in your case it should be "D:\a\r1\s\".

However, on the publishhtmlreport task, I noticed that path you set is "D:\a\r1\a\HTMLReports", it equals to "$(Build.ArtifactStagingDirectory)\HTMLReports".

So, please try to change the JmeterReportsPath to "$(Build.SourcesDirectory)\HTMLReports" on the publishhtmlreport task to see if it work.

You also can reference to the sample here.

enter image description here

[UPDATE]

The extension PublishHTMLReports has some issues are causing the HTML report can't be publish to the Azure pipelines.

Turning to using the extension Html Viewer can solve the problem. It can work fine as expected.

Upvotes: 1

Related Questions