Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..
824 views

Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi 

I have integrated PC 12.55 with jenkins 2.107.3 and it is working fine. The only issue is blank report is getting generated on left hand side of jenkins bar.

I would appreciate if you can share your experience on this or provide some direction to work on.

 

Jenkin version:- 2.107.3

Microfocus Automation Plugin: 5.3

 

Pipeline Job:-

stage('RunPCTESTS'){ // The stage name

 

    node('master'){ //  The name of the node in which to run the test.

    def perfResultPath

    def currentBuildNo = env.BUILD_NUMBER

    println currentBuildNo

   

    pcBuild HTTPSProtocol: false, addRunToTrendReport: 'NO_TREND', almDomain: 'DEFAULT', almPassword: 'xxxxx', almProject: 'Test', almUserName: 'temp1', autoTestInstanceID: 'MANUAL', description: '', pcServerName: 'nclpwnqwebxxxxx.cmp.aon.net', postRunAction: 'COLLATE_AND_ANALYZE', proxyOutPassword: '', proxyOutURL: '', proxyOutUser: '', serverAndPort: 'http://localhost:8080', statusBySLA: false, testId: '46', testInstanceId: '24', timeslotDurationHours: '0', timeslotDurationMinutes: '30', trendReportId: '', vudsMode: false

 

          perfResultPath= 'C:\\Program Files (x86)\\Jenkins\\jobs\\RAF_PT_Pipeline\\builds\\'+currentBuildNo+'\\archive\\performanceTestsReports\\pcRun'

     

println perfResultPath

 

publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: '', reportFiles: perfResultPath+'\\Report.html', reportName: 'Performance Report', reportTitles: 'HTML Performance Report'])

                               

                                               

    }

}

 

 

 

0 Likes
13 Replies
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi,

Do you refer to the LoadRunner HTML report that is being downloaded to be seen in Jenkins? If so, I believe the issue happens because Jenkins has a policy that prevents running JavaScript in files attached to it.  You will typically this error in the browser console: 

Blocked script execution in 'http://...' because the document's frame is sandboxed and the 'allow-scripts' permission is not set

Check this link to see how to "relax" Jenkins rules in order to avoid this issue.

Regards,
Shlomi

0 Likes
Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Thanks Shlomi for your response !

I am not getting any error in console and also I have already followed the steps related to content headers policy, but that also did not work.

Regards

Mukesh

 

0 Likes
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi Mukesh,

Please open a support ticket. I would like the formal process to start while we try to find a resolution in this post.

I will ask relevant subject matter experts to comment on this post tomorrow.

Regards,
Shlomi

0 Likes
Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Thanks Shlomi,

I have opened a ticket SD02279244 with Microfocus support team.

Appreciate your help on this as well.

 

Regards

Mukesh

 

0 Likes
Daniel_3
New Member.

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi Mukesh,

Just to make sure we understand you correctly, please try the following:

-Download to your machine the analysis reports from the workspace of the Jenkins job build (the html file and its related folder).

-Try to open the downloaded report localy from your browser.

If it is blank, this probably means that the Performance Center plugin didn't properly download the report from Performance Center project.

If it is not blank, this probably means that Jenkins is set with security preventing displaying content used in the PC analysis reports and for this, perhaps the following may help:

 

-Go to the Jenkins home page.
-Navigate to "Manage Jenkins" -> "Script Console".
-In the console, paste below statement and click on Run: System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

After this, opening the report from Jenkins should be allowed.

Best Regards,
Daniel

0 Likes
Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Thanks Daniel  !

I have already applied these steps. The problem is that we can view the report from the links generated in console logs. however we have created a link with following code to get pubish on left hand side bar (where build now, configure etc options are there). When we access the report from this link it shows the blank page.

 

code used is :- 

def perfResultPath

def currentBuildNo = env.BUILD_NUMBER

println currentBuildNo

perfResultPath= 'C:\\Program Files (x86)\\Jenkins\\jobs\\RAF_PT_Pipeline\\builds\\'+currentBuildNo+'\\archive\\performanceTestsReports\\pcRun'

println perfResultPath

publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: '', reportFiles: perfResultPath+'\\Report.html', reportName: 'Performance Report', reportTitles: 'HTML Performance Report'])

0 Likes
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi Mukesh,

We will continue handling that in the support ticket you opened it.

Regards,
Shlomi

0 Likes
Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Thanks Shalomi !

0 Likes
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi Mukesh,

From what I understood you are trying to use a 3rd party plugin for showing the HTML report on the left menu. Right?

What happens if you do not use that 3rd party? Will the HTML report appear correctly?

Regards,
Shlomi

0 Likes
Micro Focus Contributor
Micro Focus Contributor

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hello Mukesh,

The HTML Publisher Plugin requires you to give a path to an html file relative to the workspace (which is on slave, observation: the reports are saved on master only). Indeed, the build passes when you give an absolute path but the html report is empty. We will add a button to display the reports in a future release.

 

Regards,

Rolando.

Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Yes Shlomi, normally reports open perfectly. However I have requirement to show the report on left hand side menu for easy reference (with the same approach we can publish the reports for Cocumber, nunit etc...). Now for performance center we have to navigate to the console output to see the result files.

0 Likes
Trusted Contributor.. XU Trusted Contributor..
Trusted Contributor..

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi Rolando

Thanks for your response, however I tried it on master machine as well where Jenkin's installed and it is same behavior there, it showing blank report.

 

Regards

Mukesh

0 Likes
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: Performance Center Reports are appearing as blank in Jenkins console on left hand side

Hi Mukesh,

I suggest changing the support ticket to an enhancement request.

We will address it as soon as we can.

Regards,
Shlomi

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.