jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Morris <>
Subject RE: HTTP URL Re-writing Modifier in the nonGUI [PATCH]
Date Tue, 15 Oct 2002 12:12:28 GMT
Thanks a lot for the patch but I am woriking on an NT machine, is there any
chance you could send me the source and I will rebuild it myself.

-----Original Message-----
From: Michal Kostrzewa []
Sent: 14 October 2002 20:55
To: JMeter Users List
Subject: Re: HTTP URL Re-writing Modifier in the nonGUI [PATCH]


> This tests works fine when I run it in the GUI but when I try to run it
> from the command line, I only get the following response:
> 	Http req 1
> 	Http req 2
> 	Http req 6
> It seems that the all the request-siblings of the HTTP URL Re-writing
> Modifier  are ignored.

I think you've found a bug! So I'm sending you the patch :)

The reason of this bug is, that method setArgumentName of class 
org.apache.jmeter.protocol.http.modifier.URLRewritingModifier, which 
initializes regular expressions, is called only from gui. 
(URLRewritingModifierGUI). When loading test without gui, only setParameter 
method is called and in result, case1, case2, case3 variables are 
uninitialized (and you can see NullPointer errors in log).

To Michael Stover: Am I correct? I've implemented patch overriding
of URLRewritingModifier, and initializing casexxx variables when
instead of doing this in setArgumentName. Is it "politically correct"? :)

To Michael Morris: It should work :) apply the patch to 
please do:

cd src/protocol/http/org/apache/jmeter/protocol/http/modifier/
patch <

and rebuild jmeter. Please note, i'm using the latest CVS version (but you 
have fresh snapshot, I think you can try with that). Please tell me your 
success (or failure) story.

To Michael Stover again :) It may be that my patch contains some formatting 
caused by my IDE. Sorry about this....

hope that helps and best regards
Michal Kostrzewa

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message