RE: How to run Cactus tests on already running Weblogic server?

"Srinivasan, Radha" <[email protected]> Wed, 15 Jul 2009 15:11:56 +0530
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <94F478516F964A47B96DD2196254F96C0341BF59@iwblrcormsg001.sci.local>
Never mind Cargo automatically does that. If a Weblogic instance is
running it does not try to start the server. We don't have to use
<runservertests> task anymore.

<cactus warfile=3D"${src.war.dir}/mytest.war" fork=3D"yes"
        errorProperty=3D"test.failed"
        failureproperty=3D"tests.failed" printsummary=3D"yes">
	<containerset >
      <cargo containerId=3D"weblogic9x"
             home=3D"${bea.home}/weblogic92"
	     output=3D"${testresults.dir}/weblogic-output.log"
log=3D"${testresults.dir}/weblogic-cargo.log"
			 type=3D"installed" >
          <configuration>
             <property name=3D"cargo.servlet.port" value=3D"${port}"/>
              <property name=3D"cargo.logging" value=3D"high"/>
			  <property name=3D"cargo.jvmargs"
value=3D"-Dvendor=3Dshell
-DvendorFile=3D${install.dir}/properties/servers.properties
			  -Xdebug -Xnoagent"/>
              <property name=3D"cactus.toDir" =
value=3D"${testresults.dir}"/>
              <deployable type=3D"war" =
file=3D"${src.war.dir}/stktest.war"/>
          </configuration>
      </cargo>
	</containerset>
	<classpath refid=3D"test.classpath"/>
	<formatter type=3D"brief" usefile=3D"false"/>
	<formatter type=3D"xml" />
	<test name =3D "${testcase.name}"/>
	<sysproperty key=3D"test.server.baseurl"
value=3D"http://${server}:${port}"/>
</cactus>

<junitreport todir=3D"${reports.dir}">
  <fileset dir=3D"${testresults.dir}" includes=3D"TEST-*.xml"/>
     <report todir=3D"${reports.dir}" format=3D"frames"/>
</junitreport>
<fail message=3D"Tests failed. Please see test reports"
      if=3D"test.failed" />
</target>


-----Original Message-----
From: Srinivasan, Radha [mailto:[email protected]]=20
Sent: Wednesday, July 15, 2009 12:47 PM
To: [email protected]
Subject: How to run Cactus tests on already running Weblogic server?=20

=20

Hi,

I am trying to use <runservertests> since I could not do it with cargo.

I have started the server with test war deployed

This is what I have in the xml

=20

<runservertasks
testurl=3D"http://${server}:${port}/<webapp>/ServerRedirector/Cactus_Serv=
i
ce=3DRUN_TEST" starttarget=3D"start.weblogic.92"
stoptarget=3D"stop.weblogic.92" testtarget=3D"test"/>

=20

--> starttarget and stoptarget are empty targets.

=20

Thanks

Radha Srinivasan

=20