This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250512 - Ant Suite repeatedly show only one testng class names when running same class name on different test name
Summary: Ant Suite repeatedly show only one testng class names when running same class...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 03:11 UTC by kitoymonster
Modified: 2015-09-14 15:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Ant-Suite screenshot (33.42 KB, image/png)
2015-02-19 03:11 UTC, kitoymonster
Details
testng-output html (31.10 KB, image/png)
2015-02-19 03:12 UTC, kitoymonster
Details
sample project (17.16 KB, application/zip)
2015-09-14 15:09 UTC, Theofanis Oikonomou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kitoymonster 2015-02-19 03:11:28 UTC
Created attachment 152069 [details]
Ant-Suite screenshot

I have a testng.xml which runs the same class name 3 times then a different class name for the 4th. The testng-output html is showing the test correctly but not the Ant Suite. This is my testng.xml:


<suite name="Selenium">
    <test name="Login fail (wrong username, wrong password)" preserve-order="true">
        <classes>
            <class name="Selenium.LoginFailed">
                <methods>
                    <include name="openSite" />
                    <include name="landingbtnclick" />
                    <include name="wronguserwrongpass" />
                    <include name="loginbtnclick" />
                    <include name="backbtnclick" />
                    <include name="closeSite" />
                </methods>     
            </class>
        </classes>
    </test>
    <test name="Login fail (wrong username, correct password)" preserve-order="true">
        <classes>
            <class name="Selenium.LoginFailed">
                <methods>          
                    <include name="openSite" />
                    <include name="landingbtnclick" />
                    <include name="wrongusercorrectpass" />
                    <include name="loginbtnclick" />
                    <include name="backbtnclick" />    
                    <include name="closeSite" />
                </methods>     
            </class>
        </classes>
    </test>
   <test name="Login fail (correct username, wrong password)" preserve-order="true">
        <classes>
            <class name="Selenium.LoginFailed">
                <methods>            
                    <include name="openSite" />
                    <include name="landingbtnclick" />
                    <include name="correctuserwrongpass" />
                    <include name="loginbtnclick" />
                    <include name="backbtnclick" />    
                    <include name="closeSite" />
                </methods>    
            </class>
        </classes>
    </test>
    <test name="Login Pass Test" preserve-order="true">
        <classes>
            <class name="Selenium.LoginPass">
                <methods>
                    <include name="openSite" />
                    <include name="landingbtnclick" />
                    <include name="typeUsername" />
                    <include name="typePassword" />
                    <include name="loginbtnclick" />
                    <include name="closeSite" />
                </methods>
            </class>
        </classes>
    </test>
</suite>
Comment 1 kitoymonster 2015-02-19 03:12:28 UTC
Created attachment 152070 [details]
testng-output html
Comment 2 Tomas Stupka 2015-06-11 13:27:48 UTC
please evaluate
Comment 3 Theofanis Oikonomou 2015-09-14 15:09:02 UTC
Created attachment 156159 [details]
sample project
Comment 4 Theofanis Oikonomou 2015-09-14 15:09:30 UTC
I cannot reproduce in NetBeans IDE Dev (Build 20150914-448dc3b109e9). I am getting the expected names both in html results file and in the TRW. Attached the project I am using. Please try a latest build and reopen if it is not working for you. Thank you