Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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

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.


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

The Maven 2 Set up.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32635

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Testng And Maven Error Log. Can not understand
It's not a secret anymore!