A B created Bug JENKINS-26000
Issue Type: Bug Bug
Assignee: Bruno P. Kinoshita
Attachments: All.xml, config.xml, jenkins-ko.PNG, jenkins-ok.PNG, TAMMerchants.xml, TAMScenarioWizard.xml, testng-results.ko, testng-results.ok
Components: testlink-plugin
Created: 10/Dec/14 12:34 PM
Description:

There is a problem while retrieving results for testng when the testng XML file contains the constructions <suite-file path="./suite1.xml"/> with multiple suites.
Here are the details.

At first, this is the example that works OK:
<suite name="TAM TestSuite">
<test name="MRCT1100"><classes><class name="com.ingenico.tam.testsuite.merchants.MRCT1101"></class></classes></test>
<test name="SCNWZD1100"><classes><class name="com.ingenico.tam.testsuite.scenariowizard.SCNWZD1100"></class></classes></test>
</suite>
Here there are two tests, the first one is successful, the second one fails. In this format everything is OK, see the screenshot jenkins-ok.png.
I attach also the file testng-results.ok for this case.

Next, I do the same tests java with the same confuguration of testlink and plugin. I replace only the testng XML file by three files (attached): All.xml, TAMMerchants.xml, TAMScenarioWizard.xml.
The tests are the same, but they are organized in separate files:
<suite name="TAM TestSuite" parallel="false" thread-count="1" preserve-order="true">
<suite-files>
<suite-file path="./TAMMerchants.xml"/>
<suite-file path="./TAMScenarioWizard.xml"/>
</suite-files>
</suite>
In this case both tests are executed by testng, but the problem appears when the plugin retrieves the result, see the screenshot jenkins-ko.PNG attached.
The test from TAMScenarioWizard.xml is Not Run.
However it was executed, see the file testng-results.ko attached.

In TestLink also:

  • for the first case the test MRCT1100 is successful, and SCNWZD1100 failes
  • in the second case the test MRCT1100 is successful, and SCNWZD1100 Not Run

It seems that there is a problem when processing testng-results.xml: in first case it contains only one suite ,and it works, and in the seconde case there are three suite tags, and only one result is retrieved.

I join also the file config.xml

Environment: Testlink Plugin 3.10
Jenkins 1.567
TestLink 1.9.10
Project: Jenkins
Labels: testng testlink suite-files
Priority: Minor Minor
Reporter: A B
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to