Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [maxq-dev] Up to date source - how to ? (Struts token management)

maxq
Discussion topic

Back to topic list

[maxq-dev] Up to date source - how to ? (Struts token management)

Author mregazzi
Full name Matteo Regazzi
Date 2005-02-13 02:35:04 PST
Message Hi,

First of all I would like to say that I'm from Italy, so I need to excuse
me for the possible errors in my English writing.
I'm a Java developer (now more involved in PM) and I'm using MaxQ for testing
web applications that use Struts.
I started working on a little enhancement to MaxQ 0.98, in order to make
it able to dinamically use the Jakarta Struts token. I already posted an
alpha dirty solution to the users mailing list but now, as Oliver suggested
me, I would like to work on a more generic and usable (comfortable) solution.
Now I have the java source directory that's included in the 0.98 package
I downloaded from Tigris, but I'm not sure it's up to date. Is there a CVS
or SVN repository where I can get the updated src ? I didn't see anything
in the mailing list archive (just a CVS commit mail, I never used). Or can
I use the src I already have ?

Here is a first idea for the solution:
Problem: MaxQ records and hardcode the dynamic token thet the server generated
and sent into the response.
Solution: write a specific generator that checks if the response contains
a token and write the appropriate script management lines to dynamically
get and send it.

1 - add some parameters to the configuration like this:
# Configuration parameters for the tokens
# The first is the struts one.
# Example:
# token.type=theLitera​lNameUsedInTheGenera​tor
# token.theLiteralName​UsedInTheGenerator.n​ame=theIdentifierNam​eOfTheParameter
# token.theLiteralName​UsedInTheGenerator.l​ength=lengthOfTheTok​enString

2- add a StrutsCodeGenerator (a copy of the standard script), here I can
override the setParams(). I don't like this solution but it should work

3 - improve and make more generic the getStrutsToken method I already added
to the HttpTestCase class.

4 - use that method from StrutsCodeGenerator, so it could write in output
to the script the call self.getToken("type")

Thank you very much in advance and best regards.

Matteo Regazzi
Roma
(Italy)

____________________​____________________​____________________​______
Tiscali Adsl 3 Mega Flat, 3 MESI GRATIS!
Con Tiscali Adsl 3 Mega Flat navighi in Rete alla supervelocita'
a soli 29.95 euro al mese senza limiti di tempo. Attivati entro
il 15 Febbraio 2005, 3 MESI sono GRATIS
Scopri come http://abbonati.tisc​ali.it/adsl/sa/2flat​_tc/




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 1 of 8 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] Up to date source - how to ? (Struts token management) mregazzi Matteo Regazzi 2005-02-13 02:35:04 PST
     Re: [maxq-dev] Up to date source - how to ? (Struts token management) oliverbock Oliver Bock 2005-02-13 15:33:35 PST
         RE: [maxq-dev] Up to date source - how to ? (Struts token management) Dylan van Iersel <d dot van dot iersel at portinfolink dot com> Dylan van Iersel <d dot van dot iersel at portinfolink dot com> 2005-02-22 01:01:44 PST
             RE: [maxq-dev] Up to date source - how to ? (Struts token management) mregazzi Matteo Regazzi 2005-02-22 03:14:33 PST
             RE: [maxq-dev] Up to date source - how to ? (Struts token management) mregazzi Matteo Regazzi 2005-02-22 03:18:53 PST
             RE: [maxq-dev] Up to date source - how to ? (Struts token management) mregazzi Matteo Regazzi 2005-02-22 03:28:11 PST
                 RE: [maxq-dev] Up to date source - how to ? (Struts token management) Dylan van Iersel <d dot van dot iersel at portinfolink dot com> Dylan van Iersel <d dot van dot iersel at portinfolink dot com> 2005-02-22 09:09:47 PST
                     Re: [maxq-dev] Up to date source - how to ? (Struts token management) oliverbock Oliver Bock 2005-02-22 16:13:04 PST
Messages per page: