lakshaykaushik / PublishHTMLReport

Azdo Extension- Publish Jmeter Reports to Azure Devops
MIT License
33 stars 23 forks source link

Jmeter html report doesn’t contains some .js files #38

Closed dagnetro closed 3 years ago

dagnetro commented 3 years ago

Hi guys,

When i try to publish jmeter html report in azdo i've got error because content/js/jquery-ui.min.js and content/js/customGraph.js is missing and that's true, jmeter does not generate that js files.

This is the error from azdo:

Starting: publishhtmlreport
==============================================================================
Task         : publishhtmlreport
Description  : This task can be used to publish html reports to azdo. Currently Jmeter HTML reports are being transformed to be consumed into Azdo directly
Version      : 1.1.52
Author       : LakshayKaushik
Help         : 
==============================================================================
##[error]Unable to process command '##vso[task.addattachment type=tenthscriptname;name=content;]/opt/vsts_agent/_work/1/TestResults/report/content/js/jquery-ui.min.js' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
##[error]Value cannot be null. (Parameter 'Cannot upload task attachment file, attachment file location is not specified or attachment file not exist on disk')
##[error]Unable to process command '##vso[task.addattachment type=twefthscriptname;name=content;]/opt/vsts_agent/_work/1/TestResults/report/content/js/customGraph.js' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
##[error]Value cannot be null. (Parameter 'Cannot upload task attachment file, attachment file location is not specified or attachment file not exist on disk')
Finishing: publishhtmlreport

This is what i have in content/js folder:

[xxx@xxx Report]$ ll report/content/js/
total 2692
-rw-r-----. 1 xxx xxx   16821 Apr  2 14:33 curvedLines.js
-rw-r-----. 1 xxx xxx    5074 Apr  2 14:33 dashboard-commons.js
-rw-r-----. 1 xxx xxx  139143 Apr  2 14:33 dashboard.js
-rw-r-----. 1 xxx xxx 2027045 Apr  2 14:33 graph.js
-rw-r-----. 1 xxx xxx   14107 Apr  2 14:33 hashtable.js
-rw-r-----. 1 xxx xxx  487212 Apr  2 14:33 jquery-ui.js
-rw-r-----. 1 xxx xxx    3238 Apr  2 14:33 jquery.cookie.js
-rw-r-----. 1 xxx xxx    3141 Apr  2 14:33 jquery.flot.stack.js
-rw-r-----. 1 xxx xxx    4675 Apr  2 14:33 jquery.numberformatter-1.2.3.min.js
-rw-r-----. 1 xxx xxx   37977 Apr  2 14:33 jquery.tablesorter.min.js

JMeter version: Version 4.0 r1823414 I generate html report with this command: /app/apache-jmeter-4.0/bin/jmeter -g /app/jmeter2/test_results/report-*.csv -o /app/jmeter2/test_results/Report

Task from pipeline:

- task: publishhtmlreport@1
   inputs:
     htmlType: 'Jmeter'
     JmeterReportsPath: '$(folderName)'

Do you have any idea why JMeter doesn’t generate that js files?

lakshaykaushik commented 3 years ago

Can you use latest version of Jmeter?

lakshaykaushik commented 3 years ago

Closing this as No response