|
Vignesh Senapathy created JENKINS-12810:
------------------------------------------- Summary: 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: last_tc.png, 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 |
|
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159189#comment-159189 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- Hi Vignesh! Glad to hear that you are using the plug-in and the execution status is working. Let's focus on the attachments now. Could you give more information on your project? Try to explain here what you are using in your project. Say, if it's a TestNG project with Selenium, how are you creating/destroying WebDriver. You're using tap4j, right? How are you using TestNG/JUnit with TAP? Or are you using something different, like Python, Ruby? The more information you can provide on your project, the merrier. I will try to set up a similar environment here. Cheers, B > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159192#comment-159192 ] Vignesh Senapathy commented on JENKINS-12810: --------------------------------------------- Hi Bruno, I am using JUnit project with Selenium. JUnit reports are generated once the scripts are run. I am not using TAP. I am just trying to attach the results in the JUnit results into each of the test case in Testlink. Below is the scenario: Have JUnit automated test scripts Have a job in Jenkins to run those scripts using ANT Once the job finishes testlink XMP-RPC scans through the test results which has more than one Test class name in it. But the attachments which gets passed to Testlink is wrongly attached meaning 1st testcase in the test execution has 6 test results, then the next one has 5 and so on. Have one key custom field which matches to the test class name in the test results XML. In the image last_tc.png you can see I have 6 test cases in it. I hope this helps. > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159194#comment-159194 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- Hello Vignesh, thanks for the quick response. I'm not sure if I got it right. You are using the plug-in only to execute your JUnit+Selenium tests in Jenkins and have the execution status updated in TestLink. Then you are using a custom script to scan your workspace and upload attachments to TestLink. Is that right? Your set up for the plug-in seems correct. The only part that I didn't quite get it was how you upload the attachments. The plug-in does that, but only when you are using TAP. Thanks for providing further information :) B > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159211#comment-159211 ] Vignesh Senapathy commented on JENKINS-12810: --------------------------------------------- I dont have a custom script that scans and uploads the document. Actually the plugin attaches the results to test cases in Testlink automatically, without me doing anything. I dont know whether that is the right behavior. Also wanted to know if I want to attach JUnit test results how will i go about it. > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159222#comment-159222 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- Hi Vignesh! Thanks for clearing it up, it's much more clear for me now. The plug-in, by default, attaches the Test Result it found. If the plug-in found a TestNG XML, then it will attach this one. The same goes for JUnit and TAP files. However, the behavior that you described here looks like a Bug. Just few more questions (by the way, thanks for being so patient and answering all my dumb questions :). > Also I have one custom field which maps to the test suite name and test class name. Does that mean that each test case in TestLink has a custom field, which value is the same as both suite and test class name in JUnit? I never used the plug-in this way. Always used either the suite name or test name or test class name (the new version of the plug-in will be easier to handle different test results and result seeking strategy). Thanks! Have a great weekend and Carnival (not sure if you celebrate it though :) B > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159229#comment-159229 ] Vignesh Senapathy commented on JENKINS-12810: --------------------------------------------- Hi Bruno, For me both the names of the Test suite name and the class name is the same, this i found out by looking at the junit report it showed me the same name. The problem only occurs while attaching the JUnit reports to the test cases it found match with. I have not experienced any other problems with it. Let me know if this bug can be fixed?? Thanks a ton for the quick response... Vignesh > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159230#comment-159230 ] Vignesh Senapathy commented on JENKINS-12810: --------------------------------------------- Hi Bruno, If you want an example of the Test suite and test class name being same please do let me know, I will sent it across Thanks Vignesh > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159231#comment-159231 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- Hi Vignesh! >For me both the names of the Test suite name and the class name is the same, this i found out by looking at the junit report it showed me the same name. I believe this issue is occurring for this reason :) At moment I'm working on a new release that will let you choose between one/or many test result seeking strategies. I.e., you'll be able to configure "For this Job, you have to seek JUnit results using certain pattern to locate files, and match the key custom field with the *JUnit Suite Name*". All the strategies are very similar, except by the last term, surrounded by *'s. At moment, I've created the following strategies (the name tells what I'm using to match against the key custom field value): - JUnit suite name - JUnit test name - JUnit test class name - TestNG suite name - TestNG class name - TestNG package.class#method name (com.sample.TestA#testVoid) - TAP file name And for a future release, I plan to include: - JUnit Xpath expression (this way, you'll can say something like: match the key custom field value against suite[name=LocatorsTests*]) - TAP YAMLish field However, it would be great if you could attach a sample test project that produces similar output. Comments or suggestions on these new strategies are very welcome too! I'll try to cut a release before March, and if you have some spare time to test an alpha version, maybe you could test the plug-in and say if this new version works for your issue ;) Cheers, B > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159282#comment-159282 ] Vignesh Senapathy commented on JENKINS-12810: --------------------------------------------- Hi Bruno, Wanted to know do u want the Testlink project or the selenium project. Please let me know about this. > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159373#comment-159373 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- Hi Vignesh, I was talking about the selenium project :) Thank you in advance. Cheers, Bruno > 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: last_tc.png, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslavas D. updated JENKINS-12810: ------------------------------------ Attachment: 1.jpg 2.jpg 3.jpg > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159553#comment-159553 ] Jaroslavas D. commented on JENKINS-12810: ----------------------------------------- Have same problem. Moreover, if test class has, for example, 2 test methods - report get attached twice! h3.Let's look at my example: I have 3 test classes: # {{ProductCreateCopyDeleteSmokeWebTests}} (executes first and has 3 test methods) # {{RulesOverrideSmokeWebTests}} (executes second and has 1 test method) # {{RulesOverrideRuntimeSmokeWebTests}} (executes third and has 1 test method) After jenkins job execution I get following results in TestLink: ||1 TC||2 TC||3 TC|| |!1.jpg|thumbnail!|!2.jpg|thumbnail!|!3.jpg|thumbnail!| > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159553#comment-159553 ] Jaroslavas D. edited comment on JENKINS-12810 at 2/27/12 7:12 AM: ------------------------------------------------------------------ Have same problem. Moreover, if test class has, for example, 2 test methods - report get attached twice! h3.Let's look at my example: I have 3 test classes: # {{ProductCreateCopyDeleteSmokeWebTests}} (executes first and has 3 test methods) # {{RulesOverrideSmokeWebTests}} (executes second and has 1 test method) # {{RulesOverrideRuntimeSmokeWebTests}} (executes third and has 1 test method) After jenkins job execution I get following results in TestLink: ||1 TC||2 TC||3 TC|| |!1.jpg|thumbnail!|!2.jpg|thumbnail!|!3.jpg|thumbnail!| *P.S. Is it possible to prevent jenkins from attaching reports at all? was (Author: jar): Have same problem. Moreover, if test class has, for example, 2 test methods - report get attached twice! h3.Let's look at my example: I have 3 test classes: # {{ProductCreateCopyDeleteSmokeWebTests}} (executes first and has 3 test methods) # {{RulesOverrideSmokeWebTests}} (executes second and has 1 test method) # {{RulesOverrideRuntimeSmokeWebTests}} (executes third and has 1 test method) After jenkins job execution I get following results in TestLink: ||1 TC||2 TC||3 TC|| |!1.jpg|thumbnail!|!2.jpg|thumbnail!|!3.jpg|thumbnail!| > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159553#comment-159553 ] Jaroslavas D. edited comment on JENKINS-12810 at 2/27/12 7:13 AM: ------------------------------------------------------------------ Have same problem. Moreover, if test class has, for example, 2 test methods - report get attached twice! h3.Let's look at my example: I have 3 test classes: # {{ProductCreateCopyDeleteSmokeWebTests}} (executes first and has 3 test methods) # {{RulesOverrideSmokeWebTests}} (executes second and has 1 test method) # {{RulesOverrideRuntimeSmokeWebTests}} (executes third and has 1 test method) After jenkins job execution I get following results in TestLink: ||1 TC||2 TC||3 TC|| |!1.jpg|thumbnail!|!2.jpg|thumbnail!|!3.jpg|thumbnail!| \\ \\ *P.S. Is it possible to prevent jenkins from attaching reports at all?* was (Author: jar): Have same problem. Moreover, if test class has, for example, 2 test methods - report get attached twice! h3.Let's look at my example: I have 3 test classes: # {{ProductCreateCopyDeleteSmokeWebTests}} (executes first and has 3 test methods) # {{RulesOverrideSmokeWebTests}} (executes second and has 1 test method) # {{RulesOverrideRuntimeSmokeWebTests}} (executes third and has 1 test method) After jenkins job execution I get following results in TestLink: ||1 TC||2 TC||3 TC|| |!1.jpg|thumbnail!|!2.jpg|thumbnail!|!3.jpg|thumbnail!| *P.S. Is it possible to prevent jenkins from attaching reports at all? > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159557#comment-159557 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- Hi Jaroslavas! Thanks for confirming that this issue is happening indeed. I haven't had time to thoroughly investigate what is happening, but I have a hunch that it has something to do with the result seeking strategy. I think you are using JUnit to execute your files. It generates XML's, that the plug-in looks for after it executed the tests. The problem may be happening if you have more than one test class, test name or suite name that collides with the key custom field value. That happens because if you provided a pattern to find JUnit XML files, the plug-in will use all JUnit strategies to seek test results. I.e.: say you have a test case in testlink which the key custom field value is 'TestOperationA', and you have a JUnit class with name TestOperationA and a suite with name TestOperationA too. The JUnit class is included in this suite. What will happen, is that the plug-in will find these both items (the class and the suite) and for each one will attach its corresponding XML file. > 2 test methods - report get attached twice! Depends on the way the XML is generated, the key custom field value, name of test class, test suite. At moment, the plug-in does not work with test methods. Now the good news. 1. Test methods will be supported in version 3.1 2. For three weeks I've been refactoring the plug-in code (to simplify the code) and add an Extension point (Jenkins API) for Result Seeking Strategy. 3. Now you will be able to choose which strategies you want to use, so you can choose and say: In this job, the plug-in should use only test methods. It will reduce the execution time, as well as will avoid wrong attachments / execution status updates. 4. A result strategy now has options, like the pattern for report files, the key custom field name (it's per strategy now), and whether it will upload attachments or not > Is it possible to prevent jenkins from attaching reports at all? It's already coded in the code trunk, but I still have to test the attachment under several circumstances to ensure that I didn't break anything with the refactoring. Would you like to test an 3.1 alpha version? I can finish testing the upload of attachments in one or two days. All the best! Bruno > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159558#comment-159558 ] Jaroslavas D. commented on JENKINS-12810: ----------------------------------------- Hi, Bruno! Thanks for the quick response. It would be nice to test 3.1 TestLink plugin version. How can I get it for testing? > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159559#comment-159559 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- I've attached it to issue 11894, you can get it there if you want, but I would like to do some tests on the attachments feature before asking you to start with your tests, as I haven't had a chance to test it after the refactoring :-) https://issues.jenkins-ci.org/browse/JENKINS-11894 > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159560#comment-159560 ] Jaroslavas D. commented on JENKINS-12810: ----------------------------------------- Thank You! When will 3.1 version official release? > 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, 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 |
|
In reply to this post by JIRA noreply@jenkins-ci.org
[ https://issues.jenkins-ci.org/browse/JENKINS-12810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159567#comment-159567 ] Bruno P. Kinoshita commented on JENKINS-12810: ---------------------------------------------- My first intention was to release 3.1 on 1st March, but due to the refactoring, I think it may be a good idea delay the release one or two weeks, so I can fix the remaining issues and give some time for some users to test the alpha version. If everything goes out correctly, we may be able to release 3.1 by around March 7th. > 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, 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 |
| Powered by Nabble | See how NAML generates this page |
