You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Don Dehm <dd...@edgenet.com> on 2003/08/26 17:43:36 UTC

Trying to use the Regular Expression Extractor

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!


Re: Trying to use the Regular Expression Extractor

Posted by Mike Lindsey <mi...@ticketweb.com>.
Ah!  thanks.  I had both jakarta-oro-2.0.1.jar and 
jakarta-oro-2.0.7.jar....  I whiped the directory and reinstalled and it 
doesn't error out now.

mstover1@apache.org wrote:
> I have the exact same setup and I don't get this problem.  Can you 
> tell me the specs of your jakarta-oro jar?  What's the full name of it, 
> the size in bytes?  (Should be in your /lib dir)
> 
> -Mike
> 
> On 26 Aug 2003 at 16:55, Mike Lindsey wrote:
> 
> 
>>Yea, this is the same problem I'm having.  What java version are you 
>>running, what OS?
>>
>>I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded 
> 
> from 1.9 
> 
>>and 1.8)...
>>
>>Don Dehm wrote:
>>
>>
>>>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/apac
> he/
> 
> oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;L
> java/l
> 
>>>ang/String;)V
>>>	at
>>>
> 
> org.apache.jmeter.extractor.RegexExtractor.initTemplate(RegexExt
> ractor.j
> 
>>>ava:155)
>>> 	at
>>>
> 
> org.apache.jmeter.extractor.RegexExtractor.process(RegexExtract
> or.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.


-- 
Mike Lindsey
"They're all the same speed with the power off."


RE: Trying to use the Regular Expression Extractor

Posted by Don Dehm <dd...@edgenet.com>.
I downloaded it again and it is working fine now.

Don

-----Original Message-----
From: mstover1@apache.org [mailto:mstover1@apache.org] 
Sent: Wednesday, August 27, 2003 7:11 AM
To: JMeter Users List
Subject: Re: Trying to use the Regular Expression Extractor


I have the exact same setup and I don't get this problem.  Can you 
tell me the specs of your jakarta-oro jar?  What's the full name of it, 
the size in bytes?  (Should be in your /lib dir)

-Mike

On 26 Aug 2003 at 16:55, Mike Lindsey wrote:

> Yea, this is the same problem I'm having.  What java version are you
> running, what OS?
> 
> I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded
from 1.9 
> and 1.8)...
> 
> Don Dehm wrote:
> 
> > 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/apac
he/
> > 
oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;L
java/l
> > ang/String;)V
> > 	at
> > 
org.apache.jmeter.extractor.RegexExtractor.initTemplate(RegexExt
ractor.j
> > ava:155)
> >  	at
> > 
org.apache.jmeter.extractor.RegexExtractor.process(RegexExtract
or.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.
> 
> 
> --
> Mike Lindsey
> "They're all the same speed with the power off."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
> 




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

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


Re: Trying to use the Regular Expression Extractor

Posted by Mike Lindsey <mi...@ticketweb.com>.
delete jakarta-oro-2.0.1.jar.
Or, better yet, (after making sure to back up your test scripts) delete 
the whole directory and install the latest version again.

Don Dehm wrote:

> I have been out of the office for some time and have not been able to
> get back to work on this one.  Now I am picking up where we left off.
> Mike, you asked for more information.  I have both of these jar files in
> the lib directory:
> jakarta-oro-2.0.1.jar (75kb)
> jakarta-oro-2.0.7.jar (64kb)
> 
> -----Original Message-----
> From: mstover1@apache.org [mailto:mstover1@apache.org] 
> Sent: Wednesday, August 27, 2003 7:11 AM
> To: JMeter Users List
> Subject: Re: Trying to use the Regular Expression Extractor
> 
> 
> I have the exact same setup and I don't get this problem.  Can you 
> tell me the specs of your jakarta-oro jar?  What's the full name of it, 
> the size in bytes?  (Should be in your /lib dir)
> 
> -Mike
> 
> On 26 Aug 2003 at 16:55, Mike Lindsey wrote:
> 
> 
>>Yea, this is the same problem I'm having.  What java version are you
>>running, what OS?
>>
>>I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded
> 
> from 1.9 
> 
>>and 1.8)...
>>
>>Don Dehm wrote:
>>
>>
>>>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/apac
> he/
> 
> oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;L
> java/l
> 
>>>ang/String;)V
>>>	at
>>>
> 
> org.apache.jmeter.extractor.RegexExtractor.initTemplate(RegexExt
> ractor.j
> 
>>>ava:155)
>>> 	at
>>>
> 
> org.apache.jmeter.extractor.RegexExtractor.process(RegexExtract
> or.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.
>>
>>
>>--
>>Mike Lindsey
>>"They're all the same speed with the power off."
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jmeter-user-
> 
> unsubscribe@jakarta.apache.org
> 
>>For additional commands, e-mail: jmeter-user-
> 
> help@jakarta.apache.org
> 
> 
> 
> 
> 
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> AIM: mstover777
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 


-- 
Mike Lindsey
"They're all the same speed with the power off."


RE: Trying to use the Regular Expression Extractor

Posted by Don Dehm <dd...@edgenet.com>.
I have been out of the office for some time and have not been able to
get back to work on this one.  Now I am picking up where we left off.
Mike, you asked for more information.  I have both of these jar files in
the lib directory:
jakarta-oro-2.0.1.jar (75kb)
jakarta-oro-2.0.7.jar (64kb)

-----Original Message-----
From: mstover1@apache.org [mailto:mstover1@apache.org] 
Sent: Wednesday, August 27, 2003 7:11 AM
To: JMeter Users List
Subject: Re: Trying to use the Regular Expression Extractor


I have the exact same setup and I don't get this problem.  Can you 
tell me the specs of your jakarta-oro jar?  What's the full name of it, 
the size in bytes?  (Should be in your /lib dir)

-Mike

On 26 Aug 2003 at 16:55, Mike Lindsey wrote:

> Yea, this is the same problem I'm having.  What java version are you
> running, what OS?
> 
> I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded
from 1.9 
> and 1.8)...
> 
> Don Dehm wrote:
> 
> > 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/apac
he/
> > 
oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;L
java/l
> > ang/String;)V
> > 	at
> > 
org.apache.jmeter.extractor.RegexExtractor.initTemplate(RegexExt
ractor.j
> > ava:155)
> >  	at
> > 
org.apache.jmeter.extractor.RegexExtractor.process(RegexExtract
or.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.
> 
> 
> --
> Mike Lindsey
> "They're all the same speed with the power off."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
> 




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

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


Re: Trying to use the Regular Expression Extractor

Posted by ms...@apache.org.
I have the exact same setup and I don't get this problem.  Can you 
tell me the specs of your jakarta-oro jar?  What's the full name of it, 
the size in bytes?  (Should be in your /lib dir)

-Mike

On 26 Aug 2003 at 16:55, Mike Lindsey wrote:

> Yea, this is the same problem I'm having.  What java version are you 
> running, what OS?
> 
> I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded 
from 1.9 
> and 1.8)...
> 
> Don Dehm wrote:
> 
> > 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/apac
he/
> > 
oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;L
java/l
> > ang/String;)V
> > 	at
> > 
org.apache.jmeter.extractor.RegexExtractor.initTemplate(RegexExt
ractor.j
> > ava:155)
> >  	at
> > 
org.apache.jmeter.extractor.RegexExtractor.process(RegexExtract
or.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.
> 
> 
> -- 
> Mike Lindsey
> "They're all the same speed with the power off."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
> 




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

RE: Trying to use the Regular Expression Extractor

Posted by Don Dehm <dd...@edgenet.com>.
In response to your questions.
Windows XP, sdk1.4.1, Jmeter 1.9

Don

-----Original Message-----
From: Mike Lindsey [mailto:mikel@ticketweb.com] 
Sent: Tuesday, August 26, 2003 6:55 PM
To: JMeter Users List
Subject: Re: Trying to use the Regular Expression Extractor


Yea, this is the same problem I'm having.  What java version are you 
running, what OS?

I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded from 1.9 
and 1.8)...

Don Dehm wrote:

> 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.


-- 
Mike Lindsey
"They're all the same speed with the power off."


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


Re: Trying to use the Regular Expression Extractor

Posted by Mike Lindsey <mi...@ticketweb.com>.
Yea, this is the same problem I'm having.  What java version are you 
running, what OS?

I'm running j2se 1.4.2 on windows xp; jmeter 1.9.1 (upgraded from 1.9 
and 1.8)...

Don Dehm wrote:

> 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.


-- 
Mike Lindsey
"They're all the same speed with the power off."


RE: Trying to use the Regular Expression Extractor

Posted by Don Dehm <dd...@edgenet.com>.
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:archanabharathi@yahoo.com] 
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 <dd...@edgenet.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Trying to use the Regular Expression Extractor

Posted by Archana Bharathidasan <ar...@yahoo.com>.
Hi,