[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-user
Subject:    RE: Using hidden form item values from one request to another
From:       Tim Wilkinson <wilkinsont () synovation ! com>
Date:       2002-05-21 18:03:15
[Download RAW message or body]

Yes, I got an error message.  Here is the info.

java.lang.NullPointerException
at org.apache.oro.text.regex.Perl5Compiler.compile(Perl5Compiler.java:17
31)
at org.apache.jmeter.protocol.http.parser.HtmlParser.isAnchorMatched(Htm
lParser.java:147)
at org.apache.jmeter.protocol.http.modifier.AnchorModifier.addFormUrls(A
nchorModifier.java:254)
at org.apache.jmeter.protocol.http.modifier.AnchorModifier.modifyEntry(A
nchorModifier.java:173)
at org.apache.jmeter.control.ModifyController.addConfigElements(ModifyCo
ntroller.java:159)
at org.apache.jmeter.control.GenericController.configureEntry(GenericCon
troller.java:464)
at org.apache.jmeter.control.GenericController.nextEntry(GenericControll
er.java:284)
at org.apache.jmeter.control.LoopController.nextEntry(LoopController.jav
a:245)
at org.apache.jmeter.control.LoopController.endEntryCycle(LoopController
.java:187)
at org.apache.jmeter.control.LoopController.nextEntry(LoopController.jav
a:252)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:120)
at java.lang.Thread.run(Unknown Source)

As for using the new source files, once I compiled with them, I was unable
to open the test plan file I had been using.  There is an error stating that
it has a problem loading part of the file.  So, I went to recreate the test
by hand, but I could not find the Modifier Controller under the Logic
Controller or under the Listener, so I was unable to recreate my test.

Tim
-----Original Message-----
From: Stover, Michael [mailto:Michael.Stover@usa.xerox.com] 
Sent: Tuesday, May 21, 2002 10:44 AM
To: 'JMeter Users List'; 'wilkinsont@synovation.com'
Subject: RE: Using hidden form item values from one request to another

Did you get an error message?  I don't get this, so I'm interested.

Also, there are brand new source files you can try that are working better
for me than anything else.  When you build, do like so:

build install -Dsources.src.dir=src_1

(do a "build clean" first, however).

If this behaves differently after building with the new sources (other than
the many feature enhancements, I mean :-), I'd like to know.

-Mike

-----Original Message-----
From: Tim Wilkinson [mailto:wilkinsont@synovation.com]
Sent: Tuesday, May 21, 2002 1:04 PM
To: 'JMeter Users List'
Subject: RE: Using hidden form item values from one request to another


OK, I got the May 21 build and got it set up and used the same test that I
created in the release build.  The form does have the NAMEID as a blank
value that gets filled in after the first POST.  What happens now is that
after JMeter runs through and does that first POST, it stops and I never see
any results with it trying to do the second POST.  It seems that it stops in
the Link Parser or such.  Is this a bug in the nightly build?

Tim

-----Original Message-----
From: Mike Stover [mailto:mstover1@apache.org] 
Sent: Tuesday, May 21, 2002 5:49 AM
To: JMeter Users List
Subject: Re: Using hidden form item values from one request to another

You appear to be doing it correctly.  The most common reason people don't
get the results 
they expect is that the page containing the form with the hidden value
doesn't quite match up 
with their next request.  JMeter tries to match all your arguments, and the
path, and the 
domain, to a form on the previous page (not just your argument with a value
of '.*').

Also, in the release, there's a bug that will break this if your form
contains input text fields that 
are blank, but your request fills in values.  This has been fixed in the
nightly tarballs.

-Mike

On 20 May 2002 at 14:28, Tim Wilkinson wrote:

> Hi,
> 
> I am a new user to JMeter.  I am looking to try and use a hidden form
value
> from one request into another request.  This is done because the site I am
> testing dynamically creates an id that needs to be used in another other
> requests to either update the item or to delete that item.  After looking
> through the documentation, this is what I came up with under the Thread
> Group.
> 
> | HTTP Cookie Manager
> | HTTP Request Defaults
> | HTTP Request - This is a POST that returns the hidden form item
> | Modification Control
> 	| HTTP HTML Link Parser
> 	| HTTP Request - This is a POST that uses the hidden form item
> 
> For the second HTTP Request, I am using NAMEID as one of the parameters,
> which is the hidden form item.  I have set this to .*  When I run the
test,
> thought, it fails.  Using a sniffer, I saw that instead of replace the .*
> with the NAMEID hidden value from the first request, the .* is passed to
the
> server.  I am doing something wrong here?  Any help would be appreciated.
> 
> Thanks,
> 
> Tim
> 
> --
> To unsubscribe, e-mail:
<mailto:jmeter-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:jmeter-user-help@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:
<mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:jmeter-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:jmeter-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jmeter-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic