suites.add("testng-A.xml");
suites.add("testng-B.xml");
testng.setTestSuites(suites);
testng.addListener(tla);
testng.run();
The problem is that I cannot get TestNG to successfully find the xml files.
I receive a "java.io.FileNotFoundException: testng-a.xml (No such file or
directory)" error. The location of the files in the JAR are:
/com/address/MyMainClass
/testng-a.xml
/testng-b.xml
I am running the jar with the following command:
java -jar uber.jar
Any ideas on how I can get this to work?
--
View this message in context: http://old.nabble.com/How-to-load-TestNG-config-within-an-executable-JAR--tp32969731p32969731.html
Sent from the testng-users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
--
View this message in context: http://old.nabble.com/How-to-load-TestNG-config-within-an-executable-JAR--tp32969731p32970485.html
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Can you please add some context behind your project, what your code looks like, what your runner looks like, what version of TestNG are you on, etc.,
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/a42e9c16-94e4-4086-8327-5cbef207d82bn%40googlegroups.com.