|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Unable to execute <package> when testing in container = WebLogicWhy would in-container execution fail only <package> elements? 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: 1 packages: 0 [Parser] Running: Command line suite =============================================== Test Suite
Total tests run: 0, Failures: 0, Skips: 0 =============================================== -- - Ed --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Unable to execute <package> when testing in container = WebLogicThis 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:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Unable to execute <package> when testing in container = WebLogicI don't know...I'm using maven to do all the heavy lifting of creating the ear file. I'll see if I can find a way to add additional classpath entries using maven.
I can execute this kinds of suites no problem:
<suite name="Test Suite" verbose="1"> <test name="Test"> <classes>
<class name="com.comcast.neto.qa.ws.testng.DemoTest"/> <methods>
<include name="testMethod1" /> </methods> </classes>
</test> </suite> 2009/11/9 Cédric Beust ♔ <cbeust@...> 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? -- - Ed --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "testng-users" group. To post to this group, send email to testng-users@... To unsubscribe from this group, send email to testng-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/testng-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |