« Return to Thread:
Unable to execute
This looks like a classpath problem. I haven't used an ear file in a while but can't you specify additional classpath entries in its MANIFEST or something like that?
--Cédric
On Mon, Nov 9, 2009 at 4:37 PM, Ed Young <ejy@...> wrote:
Why would in-container execution fail only <package> elements?I'm programmatically executing testng.xml files by passing them into org.testng.xml.Parser.Parser(InputStream). When I deploy my in container tests to WebLogic, I can execute just about any testng.xml suite except for those that specify a package.For example:<suite name="Test Suite" verbose="1"><test name="Test"><packages><package name="com.mycompany.neto.qa.ws.testng"/></packages></test></suite>Executes fine when I run it from eclipse, but when I build it into an ear, and deploy it to WebLogic, it apparently can't find any classes to execute. The test-results look like this<testng-results><reporter-output></reporter-output><suite name="Test Suite"><groups></groups><test name="Test"></test></suite></testng-results>I see that the testng.xml file is getting through to the call, but it shows no tests are executed.<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"><suite name="Test Suite" verbose="1"><test name="Test"><packages><package name="com.comcast.neto.qa.ws.testng"/></packages></test></suite>)xmlSuitList length: 1packages: 0[Parser] Running:Command line suite===============================================Test SuiteTotal tests run: 0, Failures: 0, Skips: 0===============================================
--
- Ed
« Return to Thread:
Unable to execute
| Free embeddable forum powered by Nabble | Forum Help |