Re: Packages defined in TestNG XML config does not get searched for tests when running TestNG programmatically

57 views
Skip to first unread message

Fozzle

unread,
Sep 25, 2012, 10:40:56 AM9/25/12
to testng...@googlegroups.com
Did you ever get a solution for this?  I'm having the same problem.

Mike

unread,
Oct 18, 2012, 4:44:59 PM10/18/12
to testng...@googlegroups.com
I always built my XML file on the fly using the TesNG API.  How are you specifying an XML file when running programmatically?

Mike

On Wednesday, July 4, 2012 1:25:15 AM UTC-7, mangan77 wrote:
Hi!

Having problems when running tests programmatically using a XML config file. It seems that the tests are not found when I use the following:

    <packages>
      <package name="ibe.*"/>
    </packages>

But when classes explicitly declared it works just fine:

    <classes>
      <class name="ibe.car.CarSearchTest"/>
    </classes>

How come this doesn't work? 

Classes are in the classpath, otherwise the second part wouldn't work either, right?
Reply all
Reply to author
Forward
0 new messages