some questions for TestNG support in Jtreg

Henry Jen henry.jen at oracle.com
Fri Oct 18 16:33:35 PDT 2013


Just an idea, not sure if it will work.
Did you try to put another copy of Test.properties in a3/b3 with content "TestNG.dirs=."?

Cheers,
Henry

On Aug 21, 2013, at 3:47 AM, patrick zhang <patrick.zhang at oracle.com> wrote:

> Hi List,
> 
> I have some functional tests based on TestNG, the dir structure looks like:
> ==========
> a1/b1/Test1.java
> a2/b2/Test2.java
> a3/b3/Test3.java
> ==========
> 
> For Test1.java and Test2.java, they are located in "a1.b1" or "a2.b2" package really.
> But for Test3.java, it is in default package. Here a3/b3 is only simple source directory.
> 
> As you know, we can use TEST.properties to declare source root like below:
> =======
> //it can be referenced to Test1 and Test2. Fail to get Test3.
> TestNG.dirs = .
> =======       
> or 
> =======
> //it can be referenced to Test3. Fail to get Test1 and Test2.
> TestNG.dirs = a3/b3
> =======
> 
> My question is how I can reference to Test1, Test2 and Test3 at same time? It looks "TestNG.dirs = .;a3/b3" or "TestNG.dirs = . a3/b3" does not work.
> 
> FYI,
> For some reason I want to keep all structure hierarchy. And I do not want to move Test.java into a3.b3 package. Could it be resolved through TEST.properties directly?
> 
> Regards
> Patrick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20131018/0be1c79a/attachment.html 


More information about the jtreg-use mailing list