Add the aforementioned user to the target project, where the plugin should upload test results.
Ensure that the user can access a Test Configuration, Test Case and Test Run tracker. Ensure that the user has write access in the Test Case and Test Run tracker.
This plugin has been tested with Freestyle Jenkins projects.
Write down the exact location of the Jenkins project's workspace. Note: You must build the project first to create a workspace.
Go to "Manage jenkins" page and click on "Plugin manager".
You have two options to install:
Go to the Available tab.
Select XUnit Uploader plugin.
Click on "Install without restart" button.
Download the plugin source code from GitHub and build it.
Go to Advanced tab.
Go to Upload Plugin section and upload the hpi file.
Go to the settings page of your jenkins job.
Go to "Post-build Actions" tab and click on "Add post-build action" button.
Select CodeBeamer XUunit Uploader plugin.
Now you can see the following screen:
Disable XUnit Uploader
If this is set to true then the plugin does not upload test results to codeBeamer.
You can set the URL of codeBeamer instance. It is mandatory. Example: http://example.com/cb
You can set a codeBeamer user, user should have "Rest / Remote API - Access" permission. It is mandatory.
Test Configuration ID
You can set a test configuration to the generated test cases. This is Test Configuration tracker item coming from the prepared tracker. It is mandatory.
Test Case Tracker ID
You can set a test case tracker. The generated test cases are created on this tracker. It is mandatory if test case id is not set.
Test Case ID
You can set a parent test case item. The generated test cases are created under this item. It is optional.
Warning: This option override test case tracker option!
Test Run Tracker ID
You can set a test run tracker. The generated test case runs are created on this tracker. It is mandatory.
You can set a release. This is set in all generated test case run items. It is optional
Test Results Directory
You can set the test result directory. This contains the test result xml files. You can use relative path and the root folder is the workspace folder of your jenkins job in this case. It is mandatory.
Note: Locate the folder within the workspace, which contains the xml files. This might be different in different projects. Plugin does not contain any hardcoded path.
Default Package Prefix
You can set a package prefix. It is optional.
For example: abc.test.ng
In this case the test results are filtered by this prefix.
After successful build, the xUnit Uploader Plugin sends the test results to the codebeamer instance. These will appear among the test cases and test runs in the specified trackers.