no, I don't use startup/shutdown within the containerset. i have separate
tasks that startup/shutdown the servers. and its controlled by the
runservertests task.
<target name="run.cactus.tests" depends="init,test.ejb.copywar"
description="execute cactus tests">
<runservertests
testURL="http://localhost:${internet.domain.port}/test/ServletRedirector?Cac
tus_Service=RUN_TEST"
startTarget="cactus.start.weblogic6x"
stopTarget="stop.mydomain"
testTarget="test.ejb" />
</target>
have you sifted through the output of running ant with the -debug flag?
> -----Original Message-----
> From: Bret Kumler [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 3:25 PM
> To: Mark Lybarger
> Subject: RE: runservertests task - multiple startTargets, stopTargets
>
>
> Here's what mine looks like.
>
> <target name="test" depends="start.weblogic.81"
> description="Run the tests
> against weblogic 8's container">
> <!-- Run the tests -->
> <cactus
> earfile="${base.dir}/pm-tests/${test.file}" fork="yes"
> failureproperty="tests.failed">
> <classpath>
> <path refid="project.classpath"/>
> <pathelement
> location="${pm.required.libs}/qa-test.jar"/>
> </classpath>
> <containerset>
> <generic name="Weblogic 8.1.1"
> port="${test.port}">
> <startup
> target="start.weblogic.81"/>
> <shutdown
> target="stop.weblogic.81"/>
> </generic>
> </containerset>
> <formatter type="brief" usefile="false"/>
> <formatter type="xml"/>
> <batchtest>
> <fileset dir="${pm.test.src}">
> <include name="**/Qa*.java"/>
> <exclude name="**/Qa*All.java"/>
> </fileset>
> </batchtest>
> </cactus>
> <!-- Generate the JUnit reports -->
> <junitreport
> todir="${base.dir}/${modification.location}/weblogic8x">
> <fileset
> dir="${base.dir}/${modification.location}/weblogic8x"
> includes="TEST-*.xml"/>
> <report
> todir="${base.dir}/${test.reports.loc}/weblogic8x"
> format="frames"/>
> </junitreport>
> <fail if="tests.failed">At least one test failed!</fail>
> </target>
>
> -----Original Message-----
> From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 11:16 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: runservertests task - multiple startTargets, stopTargets
>
>
> it shouldn't be any different in executing the tests. here's
> my task to run
> the tests. i'm testing an ejb
>
>
> <target name="test.ejb" depends="init">
> <cactus warfile="test.war" printsummary="withOutAndErr">
> <formatter type="plain" />
> <classpath>
> <path refid="ejbdoclet.classpath" />
> <pathelement
> location="${basedir.build.mysystem.web-inf.classes}" />
> </classpath>
> <containerset>
> <generic name="${internet.server.name}"
> port="${internet.domain.port}" />
> </containerset>
> <batchtest>
> <fileset dir="${basedir.build.mysystem.web-inf.classes}">
> <include name="**/MyTestBeanTest.class" />
> </fileset>
> </batchtest>
> </cactus>
> </target>
>
>
> > -----Original Message-----
> > From: Bret Kumler [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 10, 2003 3:07 PM
> > To: Mark Lybarger
> > Subject: RE: runservertests task - multiple startTargets,
> stopTargets
> >
> >
> > I've been trying to get it working on WLS 8.1
> >
> > I have it starting the server, but it never executes the tests..
> >
> > -----Original Message-----
> > From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 10, 2003 9:55 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: runservertests task - multiple startTargets,
> stopTargets
> >
> >
> > wls 6.1
> >
> > > -----Original Message-----
> > > From: Bret Kumler [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, October 10, 2003 1:47 PM
> > > To: Mark Lybarger
> > > Subject: RE: runservertests task - multiple startTargets,
> > stopTargets
> > >
> > >
> > > I have an question off your topic.
> > >
> > > What version of weblogic are you using for your tests?
> > >
> > >
> > >
> > >
> > > ---
> > > Incoming mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
> > >
> > >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
> >
> >
> >
> >
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
> >
> >
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>
>
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]