-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 1.516 on Debian
We use CasperJS as Tool for Frontend Integrationtests. Casper generates jUnit-Files like this:
<testsuites time="12.975">
<testsuite name="/qa/src/test/javascript/portal/questionnaire/photoupload.js" tests="2" failures="0" errors="0" time="12.975" timestamp="2013-11-01T13:24:46.696Z" package="../../test/javascript/portal/questionnaire/photoupload">
<testcase name="ProfilePrefill is openend" classname="../../test/javascript/portal/questionnaire/photoupload" time="10.292"/>
<testcase name="ajaxTransport is defined" classname="../../test/javascript/portal/questionnaire/photoupload" time="0.001"/>
<system-out/>
</testsuite>
</testsuites>
The only way I see to get a mapping is via the ResultSeeking Strategy: "jUnit Suite Name".
We use exactly the String that is entered in Testlinks "Custom Field"
We also tried to use a simpler name="photoupload".
Jenkins can read the jUnit File and shows the correct Result. But for Testlink "Execution Status" is set to "Not Run"
We have other Backend jUnit Testfiles that do work for us. (At least with ResultSeeking "jUnit Method Name")
The logfile is not very helpful:
[32mDone, without errors.[39m
Looking for the test results of TestLink test cases.
Looking for test results in JUnit methods by its name.
Found 1 test result(s).
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing JUnit
[xUnit] [INFO] - [JUnit] - 1 test report file(s) were found with the pattern 'qa/src/main/grunt/xunit/*/.xml' relative to '/parship/jenkins/workspace/Testlink_frontend' for the testing framework 'JUnit'.
---------------
One Testresult is found but nothing updated in Testlink here