You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mi...@ubsw.com on 2003/05/04 15:05:56 UTC

[OT] Running StrutsTestCase from Ant?

I ahve been searching, but can't find an answer to my issue:
I have an ant script that builds 1 common.jar, 1 myEjbs.jar, app.war and packages all this up in app.ear and copies this to my server deploy directory.

I have been looking at the Mock tests, and can't figure out how to run the tests from ant. All I get are nullPointerExceptions.
So, What is the trick to running this, and/or Cactus versions from ant?

-------------------------
Thank You 
Mick Knutson 
Sr. Designer - Project Trust 
aUBS AG, Financial - Zürich 
Office: +41 (0)1/234.42.75 
Internal: 48194 
Mobile: 079.726.14.26 
-------------------------



Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] Running StrutsTestCase from Ant?

Posted by "Michael C. Lee Jr." <ml...@hotmail.com>.
You can try using JMeter at
http://jakarta.apache.org/jmeter
and using the ant plug in for testing.
http://www.programmerplanet.org/ant-jmeter/
We use it for nightly functional testing against the nightly builds.
It works great.
Mike

----- Original Message -----
From: "Phil Steitz" <ph...@steitz.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, May 04, 2003 10:26 AM
Subject: Re: [OT] Running StrutsTestCase from Ant?


> Mick.Knutson@ubsw.com wrote:
> > I ahve been searching, but can't find an answer to my issue:
> > I have an ant script that builds 1 common.jar, 1 myEjbs.jar, app.war and
packages all this up in app.ear and copies this to my server deploy
directory.
> >
> > I have been looking at the Mock tests, and can't figure out how to run
the tests from ant. All I get are nullPointerExceptions.
> > So, What is the trick to running this, and/or Cactus versions from ant?
>
> Have a look at build-tests.xml from the struts dist.  It uses the Ant
> Junit optional task to fire off both the cactus-based and
> non-cactus-based struts framework tests.  This might give you some
> ideas. Also look at the Ant docs for how to make sure that classes from
> junit.jar get loaded correctly in your environment.
>
> Phil
> >
> > -------------------------
> > Thank You
> > Mick Knutson
> > Sr. Designer - Project Trust
> > aUBS AG, Financial - Zürich
> > Office: +41 (0)1/234.42.75
> > Internal: 48194
> > Mobile: 079.726.14.26
> > -------------------------
> >
> >
> >
> > Visit our website at http://www.ubswarburg.com
> >
> > This message contains confidential information and is intended only
> > for the individual named.  If you are not the named addressee you
> > should not disseminate, distribute or copy this e-mail.  Please
> > notify the sender immediately by e-mail if you have received this
> > e-mail by mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free
> > as information could be intercepted, corrupted, lost, destroyed,
> > arrive late or incomplete, or contain viruses.  The sender therefore
> > does not accept liability for any errors or omissions in the contents
> > of this message which arise as a result of e-mail transmission.  If
> > verification is required please request a hard-copy version.  This
> > message is provided for informational purposes and should not be
> > construed as a solicitation or offer to buy or sell any securities or
> > related financial instruments.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] Running StrutsTestCase from Ant?

Posted by Phil Steitz <ph...@steitz.com>.
Mick.Knutson@ubsw.com wrote:
> I ahve been searching, but can't find an answer to my issue:
> I have an ant script that builds 1 common.jar, 1 myEjbs.jar, app.war and packages all this up in app.ear and copies this to my server deploy directory.
> 
> I have been looking at the Mock tests, and can't figure out how to run the tests from ant. All I get are nullPointerExceptions.
> So, What is the trick to running this, and/or Cactus versions from ant?

Have a look at build-tests.xml from the struts dist.  It uses the Ant 
Junit optional task to fire off both the cactus-based and 
non-cactus-based struts framework tests.  This might give you some 
ideas. Also look at the Ant docs for how to make sure that classes from 
junit.jar get loaded correctly in your environment.

Phil
> 
> -------------------------
> Thank You 
> Mick Knutson 
> Sr. Designer - Project Trust 
> aUBS AG, Financial - Zürich 
> Office: +41 (0)1/234.42.75 
> Internal: 48194 
> Mobile: 079.726.14.26 
> -------------------------
> 
> 
> 
> Visit our website at http://www.ubswarburg.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free 
> as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses.  The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 







---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Dynamic html link...

Posted by Kris Schneider <kr...@dotech.com>.
Maybe:

<bean:parameter id="forwardName" name="reqParamName" value="defaultValue"/>

<html:link forward="<%= forwardName %>" ...>
</html:link>

Quoting Renato Romano <r....@set-network.com>:

> Ineed to define an <html:link> using the forward attribute to define the
> value of the rendered href, but the name of the forward is a request
> parameter (the schema is: passing a page the path to which return
> control...)
> Any ideas ??
> Thanks a lot
> Renato
> 
> ____________________________________
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
> 
> e-mail: r.romano@set-network.com
> Tel.:   010 2712603
> _____________________________________


-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Dynamic html link...

Posted by Renato Romano <r....@set-network.com>.
Ineed to define an <html:link> using the forward attribute to define the
value of the rendered href, but the name of the forward is a request
parameter (the schema is: passing a page the path to which return
control...)
Any ideas ??
Thanks a lot
Renato

____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: r.romano@set-network.com
Tel.:   010 2712603
_____________________________________





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Dynamic html link...

Posted by Renato Romano <r....@set-network.com>.
I'd want to define an <html:link> using the forward attribute to define
the value of the rendered href, but the name of the forward is a request
parameter (the schema is: passing a page the path to which return
control...)
Any ideas ??
Thanks a lot
Renato

____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: r.romano@set-network.com
Tel.:   010 2712603
_____________________________________




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org