Thank you.  That will probably help after I get past this step.  I am
unable to get past this page.  I need to provide more detail.

Here is the current test plan.
-- cookie manager
-- results tree
-- Loop Controller
----/html request
----/html request
------(Regexp Extractor)

Without the Regexp Extractor, the result tree looks like this.
-- result 1
-- result 2
----result 2a

result 2a includes the following:
. <frameset rows="152,*" frameborder="NO" border="0" framespacing="0"
cols="*">
  <frame name="projectIcons" scrolling="NO" noresize
src="projectIcons.jsp?projectId=2917&r=-1103423276" >
  <frame name="marklist"
src="marktree.jsp?projectId=2917&r=-643505401">.

I added the regexp extractor:
Reference Name: pid
Regular Expression: projectId=([0-9]*)
Template $1$
Match No: 1
Default Value: hello

With the regexp extractor the result tree looks like this:
-- result 1

Result 2 and 2a do not even show in the tree, and I get this exception:
Java.lang.NoSuchMethodError:
org.apache.oro.text.regex.Unitl.split(LJava/util/Collection;Lorg/apache/
oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Ljava/l
ang/String;)V
        at
org.apache.jmeter.extractor.RegexExtractor.initTemplate(RegexExtractor.j
ava:155)
        at
org.apache.jmeter.extractor.RegexExtractor.process(RegexExtractor.java:5
9)
.

Of course, I am under the gun on this one, but we have all been there.
I would be grateful for any further direction.

Thanks!
Don

-----Original Message-----
From: Archana Bharathidasan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2003 1:52 PM
To: JMeter Users List
Subject: Re: Trying to use the Regular Expression Extractor


Hi,

>From my understanding:
Name could be anything

Reference name is the name that you will be using
later to refer to the extracted value. Suppose "value"
(without the quotes :-)) is the reference name, when
you refer to it elsewhere u will be using ${value}

Regular expression is what u have mentioned in your
mail

Template: some explanation is given in the manual but
$1$ works fine for me!

Match tells u which match u want to use. Mostly it is
1.

Default value is what you use when u dont find a
match.

Hope that helps,
Archana



--- Don Dehm <[EMAIL PROTECTED]> wrote:
> Hello group.  I am trying to parse a page to extract
> a variable (to
> later be used as an argument to later links).
> 
> I have placed a Regular Expression Extractor after
> the sample.  I have
> been experimenting with this for a while and have
> not been able to find
> instructions on it.
> 
> The regexp I am using is projectId=([0-9]*)
> 
> Here are my questions:
> 
> Concerning the Regular Expression Extractor Form:
> What is meant by "Template" and what value do I put
> there?  (I am
> currently getting an exception pointing toward an initTemplate 
> function in PatternMatcher.
> Is the reference name supposed to be the same as a
> Parameter name in
> "User Parameters".  Is that where the value is
> stored?
> 
> What is the syntax for later using that parameter.
> 
> Any help or direction is greatly appreciated.
> 
> Thanks!
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~
It is better to be hated for what you are than to be loved for what you
are not.

-Andre Gide

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.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]

Reply via email to