On 19/02/2010, Mike Barasch <[email protected]> wrote:
> Yes I removed the pre-processor variable and I have a post processor Regular 
> Expression Extractor.  I wish I could post some pictures
>
>  Code is
>  Thread Group
>   HTTP Request
>   HTTP Request
>   HTTP Request
>   HTTP Request
>   View Results Tree
>   Debug Sampler
>   Regular Expression Extractor

The RE should be a child of the HTTP Request that generates the
response containing the data you want to extract.

E.g. if the second sampler has the info:

Thread Group
+ HTTP Request
+ HTTP Request
+ + Regex Extractor
+ HTTP Request
+ HTTP Request
+ Debug Sampler

Make sure you specify a Default value on the Regex Extractor screen.
If that appears as the value, then you know that the RE element was
processed, but did not match.

>
>  I have tried putting the Regular Expression Extractors under the HTTP 
> Requests also and I get failed.  What else could help my cause?

What do you mean by "failed"?

>  Thanks!
>
> Mike
>
>  -----Original Message-----
>  From: Andrey Pohilko [mailto:[email protected]]
>
> Sent: Friday, February 19, 2010 11:02 AM
>  To: 'JMeter Users List'
>  Subject: RE: variable for Regular Expression
>
>  Did you remove Pre-Processor and used Post-Processor instead? Is your Post
>  Processor a child of your Sampler?
>
>
>  С уважением,
>  Андрей Похилько
>
>  -----Original Message-----
>  From: Mike Barasch [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 6:50 PM
>  To: JMeter Users List
>  Subject: RE: variable for Regular Expression
>
>  Ok so when I remove the user parameter variable I get failed.
>
>  Mike Barasch
>  Network Engineer
>  STI
>  260.429.3015
>  Be Safe!
>
>  -----Original Message-----
>  From: Andrey Pohilko [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 10:40 AM
>  To: 'JMeter Users List'
>  Subject: RE: variable for Regular Expression
>
>  Nonononono!
>
>  You should add a Post-Processor as a child your sampler, that's the way
>  JMeter does its stuff. You haven't to use pre-processors or define variable
>  before Post-Processor. It's OK, Post-processor will define the variable
>  himself.
>
>
>  С уважением,
>  Андрей Похилько
>
>  -----Original Message-----
>  From: Mike Barasch [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 6:25 PM
>  To: JMeter Users List
>  Subject: RE: variable for Regular Expression
>
>  Thanks for the tool I looked up \$ and it matches a $ so I changed my RegEx
>  to the following so I should be good here.
>
>  name="\$\$screenId" value="(.+?)"
>
>  The variable is empty.
>  I added the Debug Sampler but I don't see my variable called screen.  Should
>  I see this variable?  I defined my variable by adding Pre Processor, User
>  Parameter, add variable.  Is this correct or since I defined a post
>  processor reg extractor am I supposted to add the variable a different way?
>
>  Mike
>
>  -----Original Message-----
>  From: Andrey Pohilko [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 10:02 AM
>  To: 'JMeter Users List'
>  Subject: RE: variable for Regular Expression
>
>  Try to debug your regexp at http://gskinner.com/RegExr/
>  If regexp is ok (I tried my suggested regexp, it was ok for me), then
>  something wrong with your Regular Expression extractor.
>
>  What it assigns to variable in fact? "failed" or empty? Are you using Debug
>  Sampler to debug?
>
>
>  С уважением,
>  Андрей Похилько
>
>  -----Original Message-----
>  From: Mike Barasch [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 5:54 PM
>  To: JMeter Users List
>  Subject: RE: variable for Regular Expression
>
>  Thanks for getting back with me!!  I tried what you said but I'm still not
>  getting the value, immediately below is what I'm trying to match
>  name="$$screenId" value="1266591002450"/>
>  And the next expert is what it trys to Post.  I'm so close...  Any other
>  ideas?
>
>   <form action="ScreenInput.jsp" method="post"  onsubmit='return
>  formSubmit()' acceptcharset='8859_1' class='top'>
>       <input type="hidden" id="$$cursor" name="$$cursor" value="000000"/>
>       <input type="hidden" id="$$cursField" name="$$cursField" value=""/>
>       <input type="hidden" name="$$screenId" value="1266591002450"/>
>       <input type="hidden" name="$$modified" value=""/>
>       <table class='topTable' >
>
>
>  POST data:
>  %24%24cursor=020015&%24%24cursField=command&%24%24screenId=&%24%24modified=%
>  2Ccommand&command=v615&PFKEY=F0%3DENTR&*PFKEY=0
>
>
>  Mike Barasch
>  Network Engineer
>  STI
>  260.429.3015
>  Be Safe!
>  -----Original Message-----
>  From: Andrey Pohilko [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 9:44 AM
>  To: 'JMeter Users List'
>  Subject: RE: variable for Regular Expression
>
>  Make note that $ symbol means string end in regular expressions.
>
>  Try this regexp:
>         name="[^"]*screenId" value="([^"]*)"
>
>
>  С уважением,
>  Андрей Похилько
>
>  -----Original Message-----
>  From: Mike Barasch [mailto:[email protected]]
>  Sent: Friday, February 19, 2010 5:24 PM
>  To: [email protected]
>  Subject: variable for Regular Expression
>
>  From what I understand when you setup a Regular Expression Extractor you
>  need to setup a variable.  So I defined a User Paramater and added a
>  variable called screen.  Then in my code I reference this variable by
>  using ${screen}.  When I run my script it doesn't appear that my screen
>  variable is being set to anything.  Is there a way to tell if screen is
>  being set when I do my RE extraction?  Did I setup my variable correctly
>  or do I need to make screen= to something?
>
>
>
>  My RegEx is:
>
>  Ref Name: screen
>
>  Reg Exp: name="$$screenId" value="(.*?)"
>
>  Template: $1$
>
>  Match: 1
>
>  Default Value: failed
>
>
>
>  Thanks!
>
>  Mike
>
>
>
>
>
>  ---------------------------------------------------------------------
>  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]
>
>
>
>  ---------------------------------------------------------------------
>  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]
>
>
>
>  ---------------------------------------------------------------------
>  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]
>
>
>
>  ---------------------------------------------------------------------
>  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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to