File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes What is the concept of TestNG @DataProvider? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "What is the concept of TestNG @DataProvider?" Watch "What is the concept of TestNG @DataProvider?" New topic
Author

What is the concept of TestNG @DataProvider?

André Asantos
Ranch Hand

Joined: Nov 23, 2009
Posts: 234
What is the concept of TestNG @DataProvider? Why to use? How to use?


André AS
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

It's a little like the Parameterized Test Case pattern in JUnit. See this DataProvider Test NG thread that discusses the @DataProvider. One of the posters is the creator of TestNG so it comes straight from the source!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Cedric Beust
author
Ranch Hand

Joined: Oct 12, 2004
Posts: 46
You probably mean the creator of TestNG :-)
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

Cedric Beust wrote:You probably mean the creator of TestNG :-)

Of course I did! Fixed and sorry about that.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What is the concept of TestNG @DataProvider?
 
Similar Threads
Difference between Array and ArrayCollection ?
How does surefire work
How to have different data provides in TestNG
most important feature in TestNG
Wicket Filter form using Dataview/IDataProvider