[JIRA] [hp-application-automation-tools-plugin] (JENKINS-35106) HP ALM plugin fails to find junit results file

36 views
Skip to first unread message

mpendas@java.net (JIRA)

unread,
May 24, 2016, 3:53:02 PM5/24/16
to jenkinsc...@googlegroups.com
mpendas created an issue
 
Jenkins / Bug JENKINS-35106
HP ALM plugin fails to find junit results file
Issue Type: Bug Bug
Assignee: Ofir Shaked
Components: hp-application-automation-tools-plugin
Created: 2016/May/24 7:52 PM
Environment: Jenkins ver. 1.642
HP Application Automation Tools plugin ver. 4.01
java version "1.7.0_71"
OpenJDK Runtime Environment (rhel-2.5.3.1.el6-x86_64 u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Priority: Minor Minor
Reporter: mpendas

I am only trying to upload test results to ALM. This is running on RedHat Linux. No HP LAM software is installed on the jenkins machine.

The Junit plugin finds the results file the HP ALM plugin does not find the file:

Recording test results
Build step 'Publish JUnit test result report' changed build result to UNSTABLE
INFO: 'Upload test result to ALM' Post Build Step is being invoked.
INFO: No Test Report found.
INFO: 'Upload test result to ALM' Completed.
Finished: UNSTABLE

The file path for both plugins is: **/fit_tests/ApiResults.xml

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

mpendas@java.net (JIRA)

unread,
May 26, 2016, 3:27:05 PM5/26/16
to jenkinsc...@googlegroups.com
mpendas updated an issue
Change By: mpendas
I am only trying to upload test results to ALM. This is running on RedHat Linux. No HP  LAM  ALM  software is installed on the jenkins machine.



The Junit plugin finds the results file the HP ALM plugin does not find the file:

Recording test results
Build step 'Publish JUnit test result report' changed build result to UNSTABLE
INFO: 'Upload test result to ALM' Post Build Step is being invoked.
INFO: No Test Report found.
INFO: 'Upload test result to ALM' Completed.
Finished: UNSTABLE

The file path for both plugins is: **/fit_tests/ApiResults.xml

alexander.neutov@hpe.com (JIRA)

unread,
May 31, 2016, 7:52:02 AM5/31/16
to jenkinsc...@googlegroups.com
Alexander Neutov commented on Bug JENKINS-35106
 
Re: HP ALM plugin fails to find junit results file

Hi,

HP ALM plugin by default searches for testing result files in build directory.
So I suppose you to invoke shell script step before uploading results to ALM with something like:

#!/bin/bash 
cp <xml result location>/*.xml /var/lib/jenkins/jobs/<jobname>/builds/$BUILD_ID

And set "Upload test results to ALM" property Testing result file to "*/.xml"

alexander.neutov@hpe.com (JIRA)

unread,
May 31, 2016, 7:56:01 AM5/31/16
to jenkinsc...@googlegroups.com
Alexander Neutov edited a comment on Bug JENKINS-35106
Hi,

HP ALM plugin by default searches for testing result files in build directory.
So I suppose you to invoke shell script step before uploading results to ALM with something like:

{code}

#!/bin/bash 
cp <xml result location>/*.xml /var/lib/jenkins/jobs/<jobname>/builds/$BUILD_ID
{code}

And set "Upload test results to ALM" property  Testing result file to "**
* /* * .xml"

mpendas@java.net (JIRA)

unread,
May 31, 2016, 4:27:01 PM5/31/16
to jenkinsc...@googlegroups.com
mpendas resolved as Fixed
 

Thank you for the response. I was expecting the plugin to look for the result file in the workspace directory of the job, not the build directory. I was assuming the same behavior as the junit plugin. I see now that this plugin uses the results of the junit plugin not that actual junit file produced by a given test framework.

I think if you were a bit more explicit about that in the help available in the jenkins job configuration, it would avoid this question in the future.

Again thanks for the help and for writing the plugin!

Change By: mpendas
Status: Open Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages