Re: Testing a GLOBAL_ERROR

2004-03-17 Thread atta-ur rehman
You might want to try logic:messagesPresent tag instead.

ATTA

- Original Message - 
From: Joao Batistella [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 12:59 PM
Subject: Testing a GLOBAL_ERROR


 I'm trying to test if I got an Global Error with the following code in my
 JSP:

 logic:present name=org.apache.struts.action.ERROR
 property=org.apache.struts.action.GLOBAL_ERROR
 test
 /logic:present

 Is this correct? This does not print the test and I'm sure I have a Global
 Error?

 Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: testing for presence of GLOBAL_ERROR

2004-03-12 Thread Niall Pemberton
logic:present name=org.apache.struts.action.ERROR
property=org.apache.struts.action.GLOBAL_ERROR

- Original Message - 
From: mucus snot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:51 PM
Subject: testing for presence of GLOBAL_ERROR


 Hi,

 I know that you can test for the presence of actionErrors with the
following.

 logic:present name=org.apache.struts.action.ERROR

 But how can I test specifically for the presence of a GLOBAL_ERROR?

 Many thanks, al




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: testing for presence of GLOBAL_ERROR

2004-03-12 Thread Niall Pemberton
Sorry, I meant to put the logic:messagesPresent tag and you don't need to
specify the name, it defaults to the Globals.ERROR_KEY

For messages stored under Globals.ERROR_KEY
logic:messagesPresent property=org.apache.struts.action.GLOBAL_ERROR

For messages stored under Globals.MESSAGE_KEY
logic:messagesPresent message=true
property=org.apache.struts.action.GLOBAL_ERROR

Niall

- Original Message - 
From: Niall Pemberton [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 5:36 PM
Subject: Re: testing for presence of GLOBAL_ERROR


 logic:present name=org.apache.struts.action.ERROR
 property=org.apache.struts.action.GLOBAL_ERROR

 - Original Message - 
 From: mucus snot [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 4:51 PM
 Subject: testing for presence of GLOBAL_ERROR


  Hi,
 
  I know that you can test for the presence of actionErrors with the
 following.
 
  logic:present name=org.apache.struts.action.ERROR
 
  But how can I test specifically for the presence of a GLOBAL_ERROR?
 
  Many thanks, al
 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing DispatchAction with StrutsTestCase

2004-02-02 Thread Nick Heudecker
Al,

I just set the appropriate request parameter.  If the parameter is 'method'
and the method I want to test is 'get', it would look like this:

addRequestParameter(method, get);



On 2004-Feb-02 10:02, Al Rathon wrote:
 Hi:
 I am working working on a Struts based web-app that
 uses DispatchAction to club the methods belonging to
 each entity in one Action class. I would like to know
 how to test such an action class using struts test
 case.
 
 Thanks in advance for the help. 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Testing iterator quantity

2003-12-29 Thread Robert Taylor
Using JSTL tags and assuming you have a collection of elements named
elements in some scope:

table ...
c:forEach var=element items=${elements} varStatus=status
c:if test=${(status.index % 10 == 0)  !status.first}/tr/c:ifc:if
test=${status.index % 10 == 0}tr/c:if
td!-- put data here --/td
c:if test=${status.last}/tr/c:if
/c:forEach
/table

robert

 -Original Message-
 From: Otávio Augusto [mailto:[EMAIL PROTECTED]
 Sent: Sunday, December 28, 2003 10:58 PM
 To: [EMAIL PROTECTED]
 Subject: Testing iterator quantity


 Is there a way to know how many times i've iterated over a
 collection, using struts tags ? for instance: i have an iterator
 with 100 elements. I want to put each 10 elements in a different
 row of a table. Does anybody have an idea?

 thanks

 Otávio Augusto

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: testing

2003-08-25 Thread Emerson Cargnin
test2

Emerson Cargnin wrote:
just testing...




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Testing Struts-Config

2003-07-25 Thread Edgar Dollin
 
 An additional useful test would be whether all the referenced 
 classes actually exist in your webapp (form beans, actions, 
 ...).  Of course, that probably ought to be a configurable 
 startup feature for Struts itself.
 

This would be perfect...if you need any help let me know.


  -James
 
 Craig
 


Edgar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Testing Struts-Config

2003-07-25 Thread Kamholz, Keith (corp-staff) USX
IBM's Websphere Studio Application Developer, version 5, has a good struts
UI.  It does quite a bit of validation, a lot of what is being mentioned
here.
My one complaint though is that I get a warning for every time I use a tiles
definition though.  It doesn't hurt anything, it's just so ugly...

- Keith


-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 9:57 PM
To: '[EMAIL PROTECTED]'
Subject: Testing Struts-Config


Does anyone know of a tool that just tests the struts-config for 'class
correctness'?

The situation I find myself in is I have a large project, which was heavily
refactored (unfortunately w/o adequate struts tests), and I need to debug
the struts-config.

Thanks in advance.

Edgar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing Struts-Config

2003-07-24 Thread Rob Leland
Edgar Dollin wrote:

Does anyone know of a tool that just tests the struts-config for 'class
correctness'?
The situation I find myself in is I have a large project, which was heavily
refactored (unfortunately w/o adequate struts tests), and I need to debug
the struts-config.
This may help you, though I haven't used it:
http://sourceforge.net/projects/strutstestcase/
Thanks in advance.

Edgar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



--
Rob Leland


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Testing Struts-Config

2003-07-24 Thread James Holmes
If you use Struts Console it will tell you of any problems your config
file has with respect to validating against the Struts Config DTD.

http://www.jamesholmes.com/struts/

However, Struts Console will not tell you things like the fact that you
have 2 form beans with the same name.  I have this type of functionality
on my todo list though.

-James

-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 8:57 PM
To: '[EMAIL PROTECTED]'
Subject: Testing Struts-Config

Does anyone know of a tool that just tests the struts-config for 'class
correctness'?

The situation I find myself in is I have a large project, which was
heavily
refactored (unfortunately w/o adequate struts tests), and I need to
debug
the struts-config.

Thanks in advance.

Edgar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Testing Struts-Config

2003-07-24 Thread Craig R. McClanahan


On Thu, 24 Jul 2003, James Holmes wrote:

 Date: Thu, 24 Jul 2003 23:18:40 -0400
 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Testing Struts-Config

 If you use Struts Console it will tell you of any problems your config
 file has with respect to validating against the Struts Config DTD.

 http://www.jamesholmes.com/struts/

 However, Struts Console will not tell you things like the fact that you
 have 2 form beans with the same name.  I have this type of functionality
 on my todo list though.


An additional useful test would be whether all the referenced classes
actually exist in your webapp (form beans, actions, ...).  Of course, that
probably ought to be a configurable startup feature for Struts itself.

 -James

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Testing Frameworks - experience/recommendation

2003-07-03 Thread Brian McSweeney
Thanks to both Erik and Simon for the 
excellent advice/links,
Regards,
Brian


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2003 17:11
To: Struts Users Mailing List
Subject: Re: Testing Frameworks - experience/recommendation



Brian McSweeney wrote:
 Hi all,
  
 I know this has been discussed previously, but I’d like some user
 feedback.
 I’m going to start writing test cases soon, and I’d like to know
 people’s experience 
 using the various frameworks available.
  
 First off, my environment: I’m using Struts talking to ejbs (session
 façade to entity beans).
 So to test, I’d like to test both functionality, and performance under
 load.
 
 My understanding is about the frameworks available is that they pretty
 much all use Junit.
 I know that strutstestcase is recommended a lot, but it doesn’t seem
 obvious to me how 
 to do load testing with it, like I could with JunitPerf.
  
 Anyone’s experience, advice would be very much appreciated,

Not specific to load or performance testing, but I found the following 
article helpful in testing some parts of my model/domain code:

http://www-106.ibm.com/developerworks/library/j-mocktest.html


The only problem is that if you are using ServiceLocator pattern, and 
you wish to subclass the ServiceLocator to override its behavior (so 
that you can have it provide mock objects instead of actual database 
connections or EJB handles, etc), static methods are not inherited in 
subclasses.  For instance, I am using a static method to access the 
ServiceLocator singleton instance


Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Testing Frameworks - experience/recommendation

2003-07-02 Thread Chappell, Simon P
Brian,

I'm currently trying JMeter (also a Jakarta project) and am finding it very useful. It 
has the advantage that it is possible to record web sessions and play them back in 
testing mode. This eliminates the need for coding of tests.

The tools that extend Junit typically require coding, so they take more time. If you 
have the time, you might want to consider a combination of JMeter and the 
HttpUnit/JUnitPerf.

I was unable to get StrutsTestCase working on my W2K box (it worked on my Mac OS X 
box), so I've decided not to use it on this iteration of testing. I'll come back to it 
in the spring.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

Never give in - never, never, never, never, in nothing great or
small, large or petty, never give in except to convictions of
honor and good sense. - Sir Winston Churchill


-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: Testing Frameworks - experience/recommendation


Hi all,
 
I know this has been discussed previously, but I'd like some user
feedback.
I'm going to start writing test cases soon, and I'd like to know
people's experience 
using the various frameworks available.
 
First off, my environment: I'm using Struts talking to ejbs (session
façade to entity beans).
So to test, I'd like to test both functionality, and performance under
load.

My understanding is about the frameworks available is that they pretty
much all use Junit.
I know that strutstestcase is recommended a lot, but it doesn't seem
obvious to me how 
to do load testing with it, like I could with JunitPerf.
 
Anyone's experience, advice would be very much appreciated,
Thanks,
Brian 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing Frameworks - experience/recommendation

2003-07-02 Thread Erik Price


Brian McSweeney wrote:
Hi all,
 
I know this has been discussed previously, but Id like some user
feedback.
Im going to start writing test cases soon, and Id like to know
peoples experience 
using the various frameworks available.
 
First off, my environment: Im using Struts talking to ejbs (session
faade to entity beans).
So to test, Id like to test both functionality, and performance under
load.

My understanding is about the frameworks available is that they pretty
much all use Junit.
I know that strutstestcase is recommended a lot, but it doesnt seem
obvious to me how 
to do load testing with it, like I could with JunitPerf.
 
Anyones experience, advice would be very much appreciated,
Not specific to load or performance testing, but I found the following 
article helpful in testing some parts of my model/domain code:

http://www-106.ibm.com/developerworks/library/j-mocktest.html

The only problem is that if you are using ServiceLocator pattern, and 
you wish to subclass the ServiceLocator to override its behavior (so 
that you can have it provide mock objects instead of actual database 
connections or EJB handles, etc), static methods are not inherited in 
subclasses.  For instance, I am using a static method to access the 
ServiceLocator singleton instance

Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Testing your Struts Application

2003-03-15 Thread Jeff Kyser
several previous posts refer to this - might check it out:

http://strutstestcase.sourceforge.net/

-jeff

On Saturday, March 15, 2003, at 04:02  PM, Aaron O'Hara wrote:

Can anybody point out some good automated testing strategies for
Struts-based applications?
Ideally, I'd like to run automated tests that simulate an end user:
1) filling out a form and testing for success and expected failure
2) clicking on a url that brings up a result set
I know I could unit test some of my business and data layers, but that
leaves out potential run-time errors that may exist in the JSP pages
(like a typo for an html:text property=naame / tag).
I'm really interested to know what automated testing is working for
people, especially for larger web applications with more moving 
parts.

Aaron



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Testing I18n.

2003-02-04 Thread Taylor Cowan
Struts can detect the client's prefered language by using the
accept-languages header value.  You can do this on IE by selecting
ToolsInternet OptionsLanguages and choosing Chinese as your preferred
language.

Then from within an action you can retrieve the locale with
getLocale(req).  Note that i18n in struts is different from swing in that
you must always tell the java.text and util classes which locale to use.
The default locale of the server may not be what the user wants.  Is that
what you meant by
make struts to think that this application runs on Chinese/German locale?


Taylor Cowan

- Original Message -
From: joni santoso [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 9:00 PM
Subject: Testing I18n.


 Hi,

 I am using Win2kServer using English version. I wanna test
 the i18n support from struts. I want to create an app
 using Chinese and German language. How to emulate it using
 struts? I mean how to make struts to think that this
 application runs on Chinese/German locale.

 Regards,




===
 Meriahkan Hari Kasih Sayang dengan mengirimkan Kartu Elektronik PlasaCom
kepada kerabat dan teman yang Anda kasihi !
 Kepada para pengguna TELKOMSave, lakukan pergantian kartu lama Anda segera
! http://www.telkomsave.com


===

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Testing an action

2002-12-11 Thread Ryan Olson
Alireza,

I highly recommend StrutsTestCase, which makes use of JUnit and the Jakarta 
Cactus framework:

http://strutstestcase.sourceforge.net

- rdo


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: testing your Struts JSPs

2002-10-22 Thread David Graham
Cactus might do this.

David




From: Andy Kriger [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: testing your Struts JSPs
Date: Tue, 22 Oct 2002 12:33:15 -0400

What JUnit extension or JUnit-like tools do folks use to test their JSPs? I
am aware of StrutsTestCase but in this instance I need to test form
validation on an action that uses an ActionForward directly (no associated
Action class). So direct JSP testing makes more sense.

-a



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


_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


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



Re: Testing ...

2002-09-25 Thread Tiago Nodari


 get lost :) sorry couldnt resist :)

 Not an expert, but I think the dynaActionForm uses the commons 
beanutil package and there is a list of converters and you can create you 
own and register them, i read this awhile ago in the api, 
http://jakarta.apache.org/commons/beanutils/api/index.html

 hope it helps, if it doesnt I will get lost :)

 tiago

At 04:50 PM 9/25/2002 -0400, you wrote:
Hi .. I've posted about 12 questions in the last week.

Answered about 5-6 .. is this getting through ... I get no reponses.  Not
even a 'get lost'

;)

D.

-Original Message-
From: Darren Hill [mailto:[EMAIL PROTECTED]]
Sent: September 25, 2002 4:34 PM
To: 'Struts Users Mailing List'
Subject: [AGAIN] DynaActionForm


This should be an easy one ...

What types can a DynaActionForm support? ( ie. String, Integer, BigDecimal,
etc)
 - I assume anything that can be converted to a String ( toString )

If I have a DynaActionForm form-property as follows

form-property name=marketingToolId type=java.lang.Integer/

how do I get that to display in a text field? .. like

further .. how can I access this? ... like ... 
(Integer)form.get(marketingToolId) Thanks. Darren. -- To unsubscribe, 
e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For 
additional commands, e-mail: -- To unsubscribe, e-mail: For additional 
commands, e-mail:



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Testing ...

2002-09-25 Thread James Mitchell

If you had searched the archive you would see what Papa Strut says about
using DynaActionForm and why you would always use String.

Please STFA more thoroughly before 'getting lost' ;)

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: Darren Hill [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 4:51 PM
 To: 'Struts Users Mailing List'
 Subject: Testing ...


 Hi .. I've posted about 12 questions in the last week.

 Answered about 5-6 .. is this getting through ... I get no reponses.  Not
 even a 'get lost'

 ;)

 D.

 -Original Message-
 From: Darren Hill [mailto:[EMAIL PROTECTED]]
 Sent: September 25, 2002 4:34 PM
 To: 'Struts Users Mailing List'
 Subject: [AGAIN] DynaActionForm


 This should be an easy one ...

 What types can a DynaActionForm support? ( ie. String, Integer,
 BigDecimal,
 etc)
   - I assume anything that can be converted to a String ( toString )

 If I have a DynaActionForm form-property as follows

 form-property name=marketingToolId type=java.lang.Integer/

 how do I get that to display in a text field? .. like

 html:text property=marketingToolId size=16 maxlength=16/

 further .. how can I access this? ... like ...

 (Integer)form.get(marketingToolId)

 Thanks.

 Darren.

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: testing..........

2002-05-16 Thread DHS Struts

Tell someone there are 100 billion stars and they will believe you...
Tell them that a bench has wet paint on it and they'll have to touch it to 
be sure.

=)
mark n


From: Rajesh Kalluri [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: testing..
Date: Thu, 16 May 2002 10:04:12 -0400


test


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: testing..........

2002-05-16 Thread Mannem, Taati


test failure ;)
test again 
!the test is a failure..reconfigure the web.xml

:)


Regards,
Taati
 -Original Message-
 From: Rajesh Kalluri [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 10:04 AM
 To:   Struts Users Mailing List
 Subject:  testing..
 
 
 test
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: testing..........

2002-05-16 Thread Stephen . Thompson

I don't take sides - I insult everyone.
 

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 15:32
To: Struts Users Mailing List
Subject: RE: testing..



test failure ;)
test again 
!the test is a failure..reconfigure the web.xml

:)


Regards,
Taati
 -Original Message-
 From: Rajesh Kalluri [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 10:04 AM
 To:   Struts Users Mailing List
 Subject:  testing..
 
 
 test
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Testing tool for JSP

2002-05-07 Thread Jim Crossley

[EMAIL PROTECTED] writes:

 Does anybody know how to test JSP using JTest which has Taglib or is
 there any other test tool available to test struts based JSPs.

I like httpunit (http://www.httpunit.org) for complete end-to-end
testing. 

-- Jim 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Testing struts-user@jakarta.apache.org

2001-10-27 Thread Pier Fumagalli

Pier Fumagalli at [EMAIL PROTECTED] wrote:

 Testing the mailing list after moving server

Yes, it works... Now messages should be back to normal. The only problem
might be with old mail which might still be backlogged on Daedalus...
Let me know of any problems :)

Pier


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Testing within Struts Framework

2001-10-23 Thread David Boardman

We have been using ant (http://jakarta.apache.org/ant/) to do a nightly
build of all of our classes and ejbs and then deploy them to an instance of
Orion application server.

For each bean we write we write a corresponding JUnit test class that is
named by prefixing the name of the bean with Test (so the Customer bean
would have a corresponding TestCustomer class).

The final step was to write a Perl script that performs the following steps.
1)Shuts down the test instance of Orion
2)Checks the latest version of the application out of CVS
3)Runs our ANT script to build and deploy the classes and Beans to Orion.
4)Starts Orion
5)Runs all of the junit Test classes (see above).
6)Emails a log of all compile and test failures to the development team.

We run this script (called the Nun) on a nightly basis.  This automated
build-deploy-test process (very XP in conception) has led to much better
code, immediate notification of both compile time and integration errors,
and has made our team development environment possible.

We are doing our front end testing using a product called E-Tester developed
by Empirix
(http://www.empirix.com/Empirix/web+test+monitoring/products/functional+test
ing.html).  We looked into open source options but the only one we found was
HTTPUnit http://httpunit.sourceforge.net/.  We found this to be more
complicated to use as you have to write code for the tests.  Since we have a
non-coder developing the front end test suites, this approach would not have
worked for us.  We have had great success with E-Tester.

Dave Boardman
Integral7

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Barry Nauta
Sent: Tuesday, October 23, 2001 8:00 AM
To: [EMAIL PROTECTED]
Subject: Testing within Struts Framework


I am currently looking at how to test my EJBs within Struts.
I have been reading about JUnit, Cactus (
http://jakarta.apache.org/cactus/ ), MockObjects etc.

I would like to go as far as implementing mouseclicks within the webpage
to simulate user-interaction.

Any suggestions/comments/known pitfalls?

Barry
--
Whatever you do will be insignificant, but it is very important that you
do it -- Mahatma Ghandi




Re: Testing within Struts Framework

2001-10-23 Thread Vincent Massol



- Original Message -
From: David Boardman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 23, 2001 2:38 PM
Subject: RE: Testing within Struts Framework


 We have been using ant (http://jakarta.apache.org/ant/) to do a nightly
 build of all of our classes and ejbs and then deploy them to an instance
of
 Orion application server.

 For each bean we write we write a corresponding JUnit test class that is
 named by prefixing the name of the bean with Test (so the Customer bean
 would have a corresponding TestCustomer class).


how do you test code that uses the Servlet API  for example (or Struts) ?

 The final step was to write a Perl script that performs the following
steps.
 1)Shuts down the test instance of Orion
 2)Checks the latest version of the application out of CVS
 3)Runs our ANT script to build and deploy the classes and Beans to Orion.
 4)Starts Orion
 5)Runs all of the junit Test classes (see above).
 6)Emails a log of all compile and test failures to the development team.

you don't need perl for that ... :) All of this can be done within Ant (this
is actually how it is done in Cactus - http://jakarta.apache.org/cactus)


 We run this script (called the Nun) on a nightly basis.  This automated
 build-deploy-test process (very XP in conception) has led to much better
 code, immediate notification of both compile time and integration errors,
 and has made our team development environment possible.

I agree 100%. I also do that for all the projects I work on !


 We are doing our front end testing using a product called E-Tester
developed
 by Empirix

(http://www.empirix.com/Empirix/web+test+monitoring/products/functional+test
 ing.html).  We looked into open source options but the only one we found
was
 HTTPUnit http://httpunit.sourceforge.net/.  We found this to be more
 complicated to use as you have to write code for the tests.  Since we have
a
 non-coder developing the front end test suites, this approach would not
have
 worked for us.  We have had great success with E-Tester.

 Dave Boardman
 Integral7

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Barry Nauta
 Sent: Tuesday, October 23, 2001 8:00 AM
 To: [EMAIL PROTECTED]
 Subject: Testing within Struts Framework


 I am currently looking at how to test my EJBs within Struts.
 I have been reading about JUnit, Cactus (
 http://jakarta.apache.org/cactus/ ), MockObjects etc.

 I would like to go as far as implementing mouseclicks within the webpage
 to simulate user-interaction.

 Any suggestions/comments/known pitfalls?

 Barry
 --
 Whatever you do will be insignificant, but it is very important that you
 do it -- Mahatma Ghandi






Re: Testing Xalan prior to STRUTS build

2001-04-24 Thread chris brown

You need to add the .jar files for Xalan to your classpath, not just the
folders (you only add folders to your classpath when they contain unarchived
.class files).  This means including at least xalan.jar and xerces.jar
(the XML parser which Xerces requires) in your classpath (see the bin
folder where you installed Xalan).

-Chris

- Original Message -
From: Galon, Mary-Jay [EMAIL PROTECTED]
To: Struts-User@Jakarta. Apache. Org (E-mail)
[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 6:21 PM
Subject: Testing Xalan prior to STRUTS build


 I am getting this problem when testing to make sure Xalan works by using
the
 SimpleTranform sample.  I've checked the classpath already.  Whatelse can
I
 check.

 CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
 Files\jsdkee1.3;d:\ant\lib;D:\Program
 Files\junit3.6;d:\xalan;d:\xalan\samples

 COMMAND ERROR MSG:
 D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java
 SimpleTransform.java:58: cannot resolve symbol
 symbol  : class SAXException
 location: package sax
 import org.xml.sax.SAXException;
^
 SimpleTransform.java:59: cannot resolve symbol
 symbol  : class XSLTProcessorFactory
 location: package xslt
 import org.apache.xalan.xslt.XSLTProcessorFactory;
  ^
 SimpleTransform.java:60: cannot resolve symbol
 symbol  : class XSLTInputSource
 location: package xslt
 import org.apache.xalan.xslt.XSLTInputSource;
  ^
 SimpleTransform.java:61: cannot resolve symbol
 symbol  : class XSLTResultTarget
 location: package xslt
 import org.apache.xalan.xslt.XSLTResultTarget;
  ^
 SimpleTransform.java:62: cannot resolve symbol
 symbol  : class XSLTProcessor
 location: package xslt
 import org.apache.xalan.xslt.XSLTProcessor;
  ^
 SimpleTransform.java:68: SimpleTransform clashes with package of same name
 public class SimpleTransform
^
 SimpleTransform.java:73: cannot resolve symbol
 symbol  : class SAXException
 location: package sax
org.xml.sax.SAXException
   ^
 SimpleTransform.java:77: cannot resolve symbol
 symbol  : class XSLTProcessor
 location: class SimpleTransform
 XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
 ^
 SimpleTransform.java:77: cannot resolve symbol
 symbol  : variable XSLTProcessorFactory
 location: class SimpleTransform
 XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
   ^
 SimpleTransform.java:81: cannot resolve symbol
 symbol  : class XSLTInputSource
 location: class SimpleTransform
 processor.process(new XSLTInputSource(birds.xml),
   ^
 SimpleTransform.java:82: cannot resolve symbol
 symbol  : class XSLTInputSource
 location: class SimpleTransform
   new XSLTInputSource(birds.xsl),
   ^
 SimpleTransform.java:83: cannot resolve symbol
 symbol  : class XSLTResultTarget
 location: class SimpleTransform
   new XSLTResultTarget(birds.out));
   ^
 12 errors

 D:\XALAN\SAMPLES\SIMPLE~1




RE: Testing Xalan prior to STRUTS build

2001-04-24 Thread Galon, Mary-Jay

HELP!! Does anyone have a suggestion!

-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:22 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: Testing Xalan prior to STRUTS build


I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample.  I've checked the classpath already.  Whatelse can I
check.

CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

COMMAND ERROR MSG:
D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java
SimpleTransform.java:58: cannot resolve symbol
symbol  : class SAXException
location: package sax
import org.xml.sax.SAXException;
   ^
SimpleTransform.java:59: cannot resolve symbol
symbol  : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
 ^
SimpleTransform.java:60: cannot resolve symbol
symbol  : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
 ^
SimpleTransform.java:61: cannot resolve symbol
symbol  : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
 ^
SimpleTransform.java:62: cannot resolve symbol
symbol  : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
 ^
SimpleTransform.java:68: SimpleTransform clashes with package of same name
public class SimpleTransform
   ^
SimpleTransform.java:73: cannot resolve symbol
symbol  : class SAXException
location: package sax
   org.xml.sax.SAXException
  ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : class XSLTProcessor
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
^
SimpleTransform.java:77: cannot resolve symbol
symbol  : variable XSLTProcessorFactory
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
  ^
SimpleTransform.java:81: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
processor.process(new XSLTInputSource(birds.xml),
  ^
SimpleTransform.java:82: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
  new XSLTInputSource(birds.xsl),
  ^
SimpleTransform.java:83: cannot resolve symbol
symbol  : class XSLTResultTarget
location: class SimpleTransform
  new XSLTResultTarget(birds.out));
  ^
12 errors

D:\XALAN\SAMPLES\SIMPLE~1



RE: Testing Xalan prior to STRUTS build

2001-04-24 Thread Owen Taylor

Chris Brown was correct.  You need to understand how the Classpath works.

Instead of
CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

1) Locate the xalan.jar and ensure that it is in your classpath:

You will have to do this for all jar files from which you wish to have
classes loaded.

2) You do not need to include  d:\Program Files\jdk1.3  in your classpath.
It does nothing for you, unless you have compiled classes of your own there.
As of jdk1.2.2 the java classloader automatically loads the essential java
classes.  Likewise, d:\Program
Files\jsdkee1.3  will not give you any benefit . . .there are no class files
located there!

3) I do not like to have spaces in my classpath so you might consider moving
your java-related files to a simpler and consistent directory - maybe
d:\java
your classpath would then look something like this:

CLASSPATH=d:\java\jsdkee1.3\lib\j2ee.jar;d:\java\ant\lib\ant.jar;d:\java\ant
\lib\jaxp.jar;d:\java\ant\lib\parser.jar;d:\java\junit3.6\junit.jar;d:\java\
xalan\xalan.jar

NB:  you must include the bin directory of your java installation in your
PATH environment variable  eg:
PATH=d:\java\jdk1.3\bin

HTH

owen.



-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Testing Xalan prior to STRUTS build


HELP!! Does anyone have a suggestion!

-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:22 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: Testing Xalan prior to STRUTS build


I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample.  I've checked the classpath already.  Whatelse can I
check.

CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

COMMAND ERROR MSG:
D:\XALAN\SAMPLES\SIMPLE~1javac SimpleTransform.java
SimpleTransform.java:58: cannot resolve symbol
symbol  : class SAXException
location: package sax
import org.xml.sax.SAXException;
   ^
SimpleTransform.java:59: cannot resolve symbol
symbol  : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
 ^
SimpleTransform.java:60: cannot resolve symbol
symbol  : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
 ^
SimpleTransform.java:61: cannot resolve symbol
symbol  : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
 ^
SimpleTransform.java:62: cannot resolve symbol
symbol  : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
 ^
SimpleTransform.java:68: SimpleTransform clashes with package of same name
public class SimpleTransform
   ^
SimpleTransform.java:73: cannot resolve symbol
symbol  : class SAXException
location: package sax
   org.xml.sax.SAXException
  ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : class XSLTProcessor
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
^
SimpleTransform.java:77: cannot resolve symbol
symbol  : variable XSLTProcessorFactory
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
  ^
SimpleTransform.java:81: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
processor.process(new XSLTInputSource(birds.xml),
  ^
SimpleTransform.java:82: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
  new XSLTInputSource(birds.xsl),
  ^
SimpleTransform.java:83: cannot resolve symbol
symbol  : class XSLTResultTarget
location: class SimpleTransform
  new XSLTResultTarget(birds.out));
  ^
12 errors

D:\XALAN\SAMPLES\SIMPLE~1




Re: Testing equality of bean properties

2001-01-31 Thread Peter Alfors

You could retrieve the bean2:prop2 value into a JSP scriptlet and then pass
it to the logic:equal tag.

% theValue = yourBean.property2() %
logic:equal name="bean1" property="prop1" value="%=theValue%"


Lind Jrgen wrote:

 Hi there,

 is there a possibbility within a struts-enabled jsp to compare
 two bean properties? I am looking for something like

 logic:equal name="bean1" property="prop1" value=bean:write name="bean2"
 property="prop2"
  ...do something...
 /logic:equal

 which is not possible currently since the logic:equal tag only supports
 comparison between a bean property and and constant value... Any ideas?

 Regards,

 Jrgen


begin:vcard 
n:;
x-mozilla-html:FALSE
org:BRIMG SRC="http://www.irista.com/logo/irista.gif"BRBRFONT Color=#80FONT SIZE=2BBringing Vision to Your Supply Chain
adr:;;
version:2.1
end:vcard



Re: Testing equality of bean properties

2001-01-31 Thread Ted Husted

 which is not possible currently since the logic:equal tag only
supports comparison between a bean property and and constant value...
Any ideas?

It might be time to resort to a scriplet. (But then, in other
languages, I've been also known to use a (gasp!) GOTO).

*** REPLY SEPARATOR  ***

On 1/31/2001 at 5:13 PM Lind Jrgen wrote:

Hi there,

is there a possibbility within a struts-enabled jsp to compare
two bean properties? I am looking for something like

logic:equal name="bean1" property="prop1" value=bean:write
name="bean2"
property="prop2"
 ...do something...
/logic:equal

which is not possible currently since the logic:equal tag only supports
comparison between a bean property and and constant value... Any ideas?

Regards,

Jrgen



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





Re: Testing equality of bean properties

2001-01-31 Thread Craig R. McClanahan

Peter Alfors wrote:

 You could retrieve the bean2:prop2 value into a JSP scriptlet and then pass
 it to the logic:equal tag.

 % theValue = yourBean.property2() %
 logic:equal name="bean1" property="prop1" value="%=theValue%"


Or, in a similar vein:

bean:define id="theValue" name="yourBean" property="property2"/
logic:equal name="bean1" property="prop1" value="%= theValue %"/

Craig