Highlighted
Absent Member.. Absent Member..
Absent Member..
871 views

Jenkins automated Performance Center run with groovy trigger

Hello,

I have got a question regarding automated load tests with Jenkis and HPE Performance Center. By using the HP Application Automation Tools it is possible to create a freestyle project and assigning a scenario located on Performance Center. After that it is possible to use this freestyle project in a pipeline by a build command.

Is there also a possibility to define a stage in a pipeline to run a load test without creating a freestyle project first? Maybe there is a command to trigger a load test to get the load test results directly in the stage view and not having a lot projects to create.

 

Best Regards

 

0 Likes
3 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Jenkins automated Performance Center run with groovy trigger

Hi,

You can use Performance Center REST API directly to start a load test and get the test results after the test is ended and results were analyzed.
For more infomration: PC 12.53 REST API
For earlier versions you can find the related REST API documentation.

Regards,
Eyal

 

0 Likes
Highlighted
Contributor.
Contributor.

Re: Jenkins automated Performance Center run with groovy trigger

For triggering a test using microfocus automation plugin you will need TestId and TestInstanceId, for which you need to create a scenario and run a test manually in performance centre for the first time,
Then you can trigger a test anytime using the automation plugin through jenkins.
And you can download the results using the REST API'S
0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Re: Jenkins automated Performance Center run with groovy trigger

Hi

Yes it is very much possible, I did it recently using the same plugin.

Sample code:-

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

    node('master'){ //  The name of the node in which to run the test.
   
       pcBuild HTTPSProtocol: false, addRunToTrendReport: 'NO_TREND', almDomain: 'DEFAULT', almPassword: 'XXXXX', almProject: 'Test', almUserName: 'xxxxx', autoTestInstanceID: 'MANUAL', description: '', pcServerName: xx.xx.xx.xx', postRunAction: 'COLLATE_AND_ANALYZE', proxyOutPassword: '', proxyOutURL: '', proxyOutUser: '', serverAndPort: 'http://localhost:8080', statusBySLA: false, testId: '2', testInstanceId: '1', timeslotDurationHours: '0', timeslotDurationMinutes: '30', trendReportId: '', vudsMode: false
 //pcBuild HTTPSProtocol: false, addRunToTrendReport: 'NO_TREND',

 

Regards

Mukesh Dhingra

 

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.