aspose file tools *
The moose likes Testing and the fly likes Testng And Maven Error Log. Can not understand Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testng And Maven Error Log. Can not understand" Watch "Testng And Maven Error Log. Can not understand" New topic
Author

Testng And Maven Error Log. Can not understand

kartik krishnan
Ranch Hand

Joined: Nov 19, 2006
Posts: 63
Hi ,

I am a newbie to both Maven and Testng. So I hope this is not a silly question.

I am trying to run unit tests using TestNg and using Maven 2 . I am getting the following error, that I can not understand.

If anyone know what is wrong, then please help me.

Thanks,




My testng is directly under Project Tree and is as follows.



The Maven 2 Set up.


Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31119
    
166

Kartik,
Since the stack trace refers to TestNG classes, it looks like the Maven part is correct. Maven is finding the TestNG jar and kicking off TestNG.

The stack trace also gives us a clue that TestNG is looking for a number in an XML file where you currently have the string "true." The testng.xml file comes to mind. Then go through any place you have "true" and confirm that is allowed (per the documentation.) One thing I've done a few times was set the verbose attribute to "true" instead of "1". It's a common mistake.


[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
 
wood burning stoves
 
subject: Testng And Maven Error Log. Can not understand