Re: Unexpected Page returned

2011-10-25 Thread brock
Thanks! Got it pulling the HTML Title to use for the If controller, but if I
look at the Debug Sampler I see a few version of the variable I defined in
the RegEx Extractor:

PageTitle is the reference name in the RegEx Extractor.

Info from the Debug Sampler:
PageTitle=Verify Login 
PageTitle_g=1
PageTitle_g0=TITLEVerify Login /TITLE
PageTitle_g1=Verify Login 

My if controller is:
${PageTitle} == TITLEVerify Login /TITLE

But it never goes into the If controller.  Tried escaping thebut it
still didn't work.  What do I have wrong? lol

Oh and I now see what you mean by it getting messy, not sure this is going
to even work, structure wise.

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4936662.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: Unexpected Page returned

2011-10-25 Thread sebb
On 25 October 2011 16:30, brock brockmo...@gmail.com wrote:
 Thanks! Got it pulling the HTML Title to use for the If controller, but if I
 look at the Debug Sampler I see a few version of the variable I defined in
 the RegEx Extractor:

 PageTitle is the reference name in the RegEx Extractor.

 Info from the Debug Sampler:
 PageTitle=Verify Login

Note, no tags ...

 PageTitle_g=1
 PageTitle_g0=TITLEVerify Login /TITLE
 PageTitle_g1=Verify Login

 My if controller is:
 ${PageTitle} == TITLEVerify Login /TITLE

See above - PageTitle does not include the tags.


 But it never goes into the If controller.  Tried escaping the    but it
 still didn't work.  What do I have wrong? lol

Wrong compare.

 Oh and I now see what you mean by it getting messy, not sure this is going
 to even work, structure wise.

 --
 View this message in context: 
 http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4936662.html
 Sent from the JMeter - User mailing list archive at Nabble.com.

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



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



Re: Unexpected Page returned

2011-10-25 Thread Deepak Shetty
Also you need quotes around page title
On Oct 25, 2011 8:49 AM, sebb seb...@gmail.com wrote:

 On 25 October 2011 16:30, brock brockmo...@gmail.com wrote:
  Thanks! Got it pulling the HTML Title to use for the If controller, but
 if I
  look at the Debug Sampler I see a few version of the variable I defined
 in
  the RegEx Extractor:
 
  PageTitle is the reference name in the RegEx Extractor.
 
  Info from the Debug Sampler:
  PageTitle=Verify Login

 Note, no tags ...

  PageTitle_g=1
  PageTitle_g0=TITLEVerify Login /TITLE
  PageTitle_g1=Verify Login
 
  My if controller is:
  ${PageTitle} == TITLEVerify Login /TITLE

 See above - PageTitle does not include the tags.

 
  But it never goes into the If controller.  Tried escaping thebut it
  still didn't work.  What do I have wrong? lol

 Wrong compare.

  Oh and I now see what you mean by it getting messy, not sure this is
 going
  to even work, structure wise.
 
  --
  View this message in context:
 http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4936662.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 

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




Re: Unexpected Page returned

2011-10-25 Thread brock
Thank you'll its working great.

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4937259.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: Unexpected Page returned

2011-10-24 Thread brock
I'm still not understanding how this would work, example test plan:

Home Page
Login
 Update Email
 Update Address
 Update Phone
Main Page

I do not know which or if any of the Update pages will get returned instead
of the Main Page.  Its all determined by flags in Oracle.  

So your suggesting it would look like:

Home Page
Login
 Update Email
   Regular Expression Extractor
 Update Address
   Regular Expression Extractor
 Update Phone
   Regular Expression Extractor
Main Page

Its just not clicking for me, lol.  It seems like I need to view the
response first then branch into a tree:

Home Page
Login
 Pre Process Response, based on TITLE
 If title=
   Update Email
 If title=
   Update Address
 If title=
   Update Phone
Main Page

I'm no JMeter expert if you cant tell...




--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4932752.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: Unexpected Page returned

2011-10-24 Thread Deepak Shetty
Home Page
Login (assuming the response to this page can be 1 of 3)
+Post Processor Regular Expression extractor
If(some condition)
+do something like update email
If(some other condition)
+do something else like update address

Main Page

regards
deepak

On Mon, Oct 24, 2011 at 7:20 AM, brock brockmo...@gmail.com wrote:

 I'm still not understanding how this would work, example test plan:

 Home Page
 Login
  Update Email
  Update Address
  Update Phone
 Main Page

 I do not know which or if any of the Update pages will get returned instead
 of the Main Page.  Its all determined by flags in Oracle.

 So your suggesting it would look like:

 Home Page
 Login
  Update Email
   Regular Expression Extractor
  Update Address
   Regular Expression Extractor
  Update Phone
   Regular Expression Extractor
 Main Page

 Its just not clicking for me, lol.  It seems like I need to view the
 response first then branch into a tree:

 Home Page
 Login
  Pre Process Response, based on TITLE
  If title=
   Update Email
  If title=
   Update Address
  If title=
   Update Phone
 Main Page

 I'm no JMeter expert if you cant tell...




 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4932752.html
 Sent from the JMeter - User mailing list archive at Nabble.com.

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




Re: Unexpected Page returned

2011-10-24 Thread Oliver Lloyd
Yes, you check the response first, and then branch onto a tree. Like this:

-Home Page
-Login
--Regular Expression Extractor - Returns 1,2 or 3
-IF 1
--Update Email
-IF 2
--Update Address
-IF 3
--Update Phone
Main Page

That's an example but the concept is clear. It starts to get messy if you
have too many possible conditions though, but works very well for simple
(predictable) situations.

-
http://www.http503.com/
--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4933234.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: Unexpected Page returned

2011-10-05 Thread Oliver Lloyd
You could use a 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
regular expression extractor  and an 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#If_Controller
if controller  to have a decision tree where different branches get invoked
depending on the server response.

Keep in mind though, that - generally - the server response will be
predictable, nothing is random in computing, so you might want to look
deeper into why you are seeing changeable results.

A typical scenario with login requests is that the state is lost / not set
and the request gets redirected to a different page. You might be
experiencing this. In that case you would want to use a 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion
response assertion  to verify the login was successful. If both cases are in
fact successful and you just have weird app logic then stick with the
previous approach.

-
http://www.http503.com/
--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4874267.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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