History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-59
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Dan Fabulich
Reporter: Dan Fabulich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Make Java tests use TestNG instead of JUnit

Created: 10/May/06 03:06 PM   Updated: 12/Aug/08 05:37 PM
Component/s: Client Driver - Java, Build Scripts/Tooling
Affects Version/s: 0.8.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Java Source File FunctionalTestsA.java (2 kb)
2. Java Source File MyFunctionalTests.java (0.4 kb)
3. Java Source File SeleneseTests.java (12 kb)



 Description  « Hide
TestNG is better for functional testing than JUnit. We should set a good example and write the tests with TestNG rather than JUnit.

 All   Comments   Work Log   Change History      Sort Order:
Patrick Lightbody - 12/May/06 11:31 AM
One warning: surefire doesn't support TestNG yet. I'd suggest waiting until the new surefire plugin is out and solidly tested. I use TestNG in some other projects, so I can give a heads up when this happens.

Dan Fabulich - 04/Jul/07 04:38 AM
I'm sure this will be ready before 0.9.3...

Dan Fabulich - 24/Oct/07 05:27 PM
Nope. TestNG still sucks in Maven. I'm using it at work and I'll be sure to update this bug when it's working properly.

Joseph Anthony Pasquale Holsten - 21/Dec/07 04:16 PM
Shouldn't this issue be closed? Dan, you've pointed out that this is not a resonable improvement. Could we at least close it for now and reopen it when testng becomes a realistic option?

Nelson Sproul - 14/Jan/08 09:17 PM
From Flavio Stutz.

Nelson Sproul - 14/Jan/08 09:18 PM
From Flavio Stutz.

Nelson Sproul - 14/Jan/08 09:18 PM
From Flavio Stutz.

Nelson Sproul - 14/Jan/08 09:19 PM
Added sample code from Flavio Stutz. Here's his mail to us:

From: Flavio Stutz [mailto:flaviostutz@gmail.com]
Sent: Monday, January 14, 2008 5:33 PM
To: dfabulich@warpmail.net; Nelson Sproul
Subject: TestNG utility offer

Guys,

Firstly, thanks for the GREAT work you did with Selenium.
I am using TestNG to do tests, so I created a "SeleneseTestCase" version for TestNG that is attached to this message (SeleneseTests class).

I hope you could commit this to the java driver distribution. There is two additional classes that demonstrates some tests using the SeleneseTests. I used SeleniumIDE for recording the tests.

Thanks for your attention.

Flávio Stutz