[testng-users] How to run test xmls which are inside the jar?

0 views
Skip to first unread message

sudhi123

unread,
Aug 28, 2009, 10:20:02 AM8/28/09
to testng...@googlegroups.com

Hello, i have jar functionalTests-0.0.1-SNAPSHOT-tests.jar which contains my
functional tests, and test suites in folder test.

java -jar functionalTests-0.0.1-SNAPSHOT-tests.jar org.testng.TestNG
/test/submissionSuite.xml

when i run the above command in sunOS i get

java.io.FileNotFoundException: /test/submissionSuite.xml (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.testng.xml.Parser.<init>(Parser.java:68)
at org.testng.TestNG.setTestSuites(TestNG.java:507)
at org.testng.TestNG.configure(TestNG.java:956)
at org.testng.TestNG.privateMain(TestNG.java:912)
at org.testng.TestNG.main(TestNG.java:887)

can somebody help me what is right command to use ?

thanks in advance...


--
View this message in context: http://www.nabble.com/How-to-run-test-xmls-which-are-inside-the-jar--tp25190776p25190776.html
Sent from the testng-users mailing list archive at Nabble.com.

sudhi123

unread,
Aug 28, 2009, 11:16:45 AM8/28/09
to testng...@googlegroups.com

Hello, i have jar functionalTests-0.0.1-SNAPSHOT-tests.jar. which contains

sudhi123

unread,
Aug 28, 2009, 12:53:55 PM8/28/09
to testng...@googlegroups.com

any takers ?

sudhi123 wrote:
>
> Hello, i have jar functionalTests-0.0.1-SNAPSHOT-tests.jar. which


> contains my functional tests, and test suites in folder test.
>
> java -jar functionalTests-0.0.1-SNAPSHOT-tests.jar org.testng.TestNG
> /test/submissionSuite.xml
>
> when i run the above command in sunOS i get
>
> java.io.FileNotFoundException: /test/submissionSuite.xml (No such file or
> directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at org.testng.xml.Parser.<init>(Parser.java:68)
> at org.testng.TestNG.setTestSuites(TestNG.java:507)
> at org.testng.TestNG.configure(TestNG.java:956)
> at org.testng.TestNG.privateMain(TestNG.java:912)
> at org.testng.TestNG.main(TestNG.java:887)
>
> can somebody help me what is right command to use ?
>
> thanks in advance...
>
>
>

--
View this message in context: http://www.nabble.com/How-to-run-test-xmls-which-are-inside-the-jar--tp25190776p25193340.html

Reply all
Reply to author
Forward
0 new messages