[ 
https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159650#comment-159650
 ] 

Jaroslavas D. commented on JENKINS-12810:
-----------------------------------------

Hi Bruno.

I have one question about 3.1 version. 

There are two seeking strategies in 3.1:
# _+JUnit class name+_ - searches only for {{<testcase 
classname="tests.AAAAAAAAAAA">}} property in reports *.xml files and if 
{{classname}} match custom field value - result are recorder in TestLink 
(correct me if I am wrong)
# _+JUnit case name+_ - searches  only for {{<testcase name="a1"/>}} property 
in reports *.xml files and if {{name}} match custom field value - result are 
recorder in TestLink (correct me if I am wrong)

*How can I mix both strategies together?* I'll explain what I mean. Imagine 
there are two classes:
* {{TestClass1}} with methods {{TestCase1}} and {{TestCase2}}
* {{TestClass2}} with methods {{TestCase1}} and {{TestCase2}} (as you can 
notice method names in classes are the same)

So, for proper results in TestLink I need to match both {{classname}} and 
{{name}}, and only if +both+ properties are the same as defined in custom 
fields then result for TC should be recorded.
                
> JUnit test results are getting wrongly attached to all the test cases
> ---------------------------------------------------------------------
>
>                 Key: JENKINS-12810
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12810
>             Project: Jenkins
>          Issue Type: Bug
>          Components: testlink
>    Affects Versions: current
>            Reporter: Vignesh Senapathy
>            Assignee: Bruno P. Kinoshita
>             Fix For: current
>
>         Attachments: 1.jpg, 2.jpg, 3.jpg, last_tc.png, 
> screenshot20120228152415.jpg, screenshot20120228152511.jpg, tc1.png, tc2.png
>
>
> Hi,
> I am using the Testlink Jenkins plugin and when i run my jobs in Jenkins the 
> Junit Test results are getting generated. This in turn calls the Testlink xml 
> rpc and attaches the results to the test case, but the test results are 
> attached wrongly. The 1st test case has 6 results, the next has 5 and so on 
> and the last one has 1 test result attached to it. I dont know if it is bug 
> which is causing this. Please let me know what seems to be the problems. Also 
> the execution flags are correctly rendered in this. which ever test case 
> fails is marked as failed and which passed is marked as passed.
> Also I have one custom field which maps to the test suite name and test 
> classname.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to