4.3 TestNG Result Analysis with Jenkins
Last updated
Was this helpful?
Last updated
Was this helpful?
Pre-requisite is to configure TestNG with Jenkins
Click on the "New Job" link and enter a Job name. Select the "Build a free-style software project" radio button and click OK.
Configure your Job settings as required. To add a SCTM build step, scroll down to the "Build" section and select "SilkCentral Test Manager Execution" from the "Add Build step" drop down.
Enter the SCTM Execution Plan ID you wish to execute and also the SCTM Project ID that contains this execution plan.
Click the "Advanced" button to configure other options when running the SCTM execution plan such as continue on error, collect results, build numbers to be used. Click "Save" to save the job.
Once save click on the Workspace link for the job you just created.
You will receive an error stating that the project does not have any Workspaces, this is because no builds have been performed yet. To do this click on the "Run a build" link.
This will start the SCTM execution and you can see the pending status on the Jenkins project page.
Once the execution has started you will get an 'in progress' icon. Click on the build number to view the progress of the job under execution
Once the execution has completed you will see the screen below.
If you then go to the Execution Plan in SCTM you will see that it was executed and the build information has been brought over from Jenkins.
Now if you run a new build in Jenkins for this job the SCTM execution will automatically be executed.