bash - TestNG ERROR No test suite found. Nothing to run -


i have problem run test suite command line.

java -jar test.jar  java.io.filenotfoundexception: /home/user01/jenkins/run_suite/test-suites/test.xml  (no such file or directory) @ java.io.fileinputstream.open0(native method) @ java.io.fileinputstream.open(fileinputstream.java:195) @ java.io.fileinputstream.<init>(fileinputstream.java:138) @ java.io.fileinputstream.<init>(fileinputstream.java:93) @ org.testng.xml.parser.parse(parser.java:167) @ org.testng.testng.initializesuitesandjarfile(testng.java:302) @ org.testng.testng.run(testng.java:991) [testng] [error] no test suite found. nothing run usage: <main class> [options] xml suite files run 

but if in directory

[user01@xxxx ~]$ ll /home/user01/jenkins/run_suite/test-suites/test.xml  -rwxrwxrwx 1 user01 user01 233 apr  7 16:07 /home/user01/jenkins/run_suite/test-suites/test.xml 

i've changed permission 777

chmod -r 777 /home/user01/jenkins/ 

but not help. same test.xml suite executed without problems eclipse

i've found issue :)

because file "test.xml" updated

sed -i 's/\(testsuite = \)/\1test-suites\/test_suite.xml/' test.xml 

i notice have white space on last line, after i've removed space issue gone, run following command

sed -i 's/\s*$//' test.xml 

working :)


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -