RE: How to parse responses
Using The Regex Coach cat.*?id=(\d+) gets 15 from the following example blah blah cat blah blah noid blah blah blah blah horse blah blah id=15 blah blah What I think I need is a search within a backreference (cat.*? however this does not work within The Regex Coach. I tried this inside JMeter RegExp Extractor regex: (cat.*? but that did not work either. What am I missing? Thanks, Andrew --- "BAZLEY, Sebastian" <[EMAIL PROTECTED]> wrote: > The regex extractor and function both allow one to > specify a default value, > which is returned if the regex does not match. > > Try it and see. > > You can use a dummy JavaSampler to display the > contents of any variable(s) > by including a reference to the variable(s). > > S. > -Original Message- > From: Andrew Roughan [mailto:[EMAIL PROTECTED] > Sent: 03 August 2004 06:20 > To: JMeter Users List > Subject: RE: How to parse responses > > > Thanks for the response Sebastian. > > I think the suggestion will work well for the first > part of my requirement: > > I want to extract the value of id from the form > > section where the text includes cat. e.g. 54 > > However, I don't think it will work for this second > part: > > Further, if id= does not exist within the form > > section where the text includes cat, then return > > false or similar. > > e.g. If the response was like this: > > > blah blah dog blah blah id=32 blah blah > > > blah blah cat blah blah noid blah blah > > > blah blah horse blah blah id=15 blah blah > > > in this case I think the suggested regexp would > return > 15? > > I was thinking that ForEach may assist if I actually > had to go through a list of extracted values (e.g. > dog > id=32, cat id=54, horse id=15). However this may not > be necessary. > > Cheers, > Andrew > > --- "BAZLEY, Sebastian" > <[EMAIL PROTECTED]> wrote: > > Try a regex of the form > > > > cat.*?id=(\d+) > > > > where = space. > > > > You don't say how you want to use the id value, so > > it is not clear whether > > the ForEach controller would be useful or not. > > > > See the JMeter Wiki for a pointer to a very useful > > regex tester. > > > > S. > > -Original Message- > > From: Andrew Roughan > [mailto:[EMAIL PROTECTED] > > Sent: 22 July 2004 13:30 > > To: [EMAIL PROTECTED] > > Subject: How to parse responses > > > > > > Hi, Can someone please tell me whether what I want > > to > > do is possible, and if it is, give a suggestion on > > how > > it can be done? > > > > If I have a HTML response similar to > > > > ... > > > > blah blah dog blah blah id=32 blah blah > > > > > > blah blah cat blah blah id=54 blah blah > > > > > > blah blah horse blah blah id=15 blah blah > > > > ... > > > > I want to extract the value of id from the form > > section where the text includes cat. e.g. 54 > > > > Further, if id= does not exist within the form > > section where the text includes cat, then return > > false > > or similar. > > > > I've looked at Regular Expression Extractor (using > > > Controller > > and but I haven't yet worked out how this could be > > done. If this is possible, I sure would like a > > pointer > > on how to go about it. If it isnt, knowing that > > would > > be good too! > > > > Thanks, > > Andrew Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to parse responses
Thanks for the response Sebastian. I think the suggestion will work well for the first part of my requirement: > I want to extract the value of id from the form > section where the text includes cat. e.g. 54 However, I don't think it will work for this second part: > Further, if id= does not exist within the form > section where the text includes cat, then return > false or similar. e.g. If the response was like this: blah blah dog blah blah id=32 blah blah blah blah cat blah blah noid blah blah blah blah horse blah blah id=15 blah blah in this case I think the suggested regexp would return 15? I was thinking that ForEach may assist if I actually had to go through a list of extracted values (e.g. dog id=32, cat id=54, horse id=15). However this may not be necessary. Cheers, Andrew --- "BAZLEY, Sebastian" <[EMAIL PROTECTED]> wrote: > Try a regex of the form > > cat.*?id=(\d+) > > where = space. > > You don't say how you want to use the id value, so > it is not clear whether > the ForEach controller would be useful or not. > > See the JMeter Wiki for a pointer to a very useful > regex tester. > > S. > -Original Message- > From: Andrew Roughan [mailto:[EMAIL PROTECTED] > Sent: 22 July 2004 13:30 > To: [EMAIL PROTECTED] > Subject: How to parse responses > > > Hi, Can someone please tell me whether what I want > to > do is possible, and if it is, give a suggestion on > how > it can be done? > > If I have a HTML response similar to > > ... > > blah blah dog blah blah id=32 blah blah > > > blah blah cat blah blah id=54 blah blah > > > blah blah horse blah blah id=15 blah blah > > ... > > I want to extract the value of id from the form > section where the text includes cat. e.g. 54 > > Further, if id= does not exist within the form > section where the text includes cat, then return > false > or similar. > > I've looked at Regular Expression Extractor (using > Controller > and but I haven't yet worked out how this could be > done. If this is possible, I sure would like a > pointer > on how to go about it. If it isnt, knowing that > would > be good too! > > Thanks, > Andrew > > Find local movie times and trailers on Yahoo! > Movies. > http://au.movies.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > ___ > > This e-mail and the documents attached are > confidential and intended > solely for the addressee; it may also be privileged. > If you receive this > e-mail in error, please notify the sender > immediately and destroy it. > As its integrity cannot be secured on the Internet, > the Atos Origin group > liability cannot be triggered for the message > content. Although the > sender endeavours to maintain a computer virus-free > network, the > sender does not warrant that this transmission is > virus-free and will > not be liable for any damages resulting from any > virus transmitted. > ___ > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to parse responses
Hi, Can someone please tell me whether what I want to do is possible, and if it is, give a suggestion on how it can be done? If I have a HTML response similar to ... blah blah dog blah blah id=32 blah blah blah blah cat blah blah id=54 blah blah blah blah horse blah blah id=15 blah blah ... I want to extract the value of id from the form section where the text includes cat. e.g. 54 Further, if id= does not exist within the form section where the text includes cat, then return false or similar. I've looked at Regular Expression Extractor (using http://au.movies.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to Terminate JMeter based on results of response \ assertion?
Thank you Thad. A combination of the Regular Expression Extractor, the If Controller and the Test Action Sampler allows me to do exactly as I wanted. Note to searchers of the mailing list: download a nightly build to get this Test Action Sampler Cheers, Andrew - Original Message - From: Thad Smith Date: Thu, 29 Apr 2004 13:50:14 -0700 (PDT) To: JMeter Users List Subject: Re: Is it possible to Terminate JMeter based on results of response \ assertion? > Andrew, > > I included some information about this in a previous > note today, but you can use the Test Action sampler to > terminate JMeter. Place it in an If Controller and set > the condition of the If Controller to test if your > condition is true. Set the Test Action to Stop and it > should do the trick for you. > > Regards, > > Thad Smith > > --- [EMAIL PROTECTED] wrote: > > I've been using JMeter with reasonable success for > > the last few months. I now need some more fine > > grained control of how to terminate JMeter. > > > > The functionality of "Action to be taken after a > > Sampler error" is not good enough for me. Here's my > > situation: > > > > Responses from the web service that I'm testing > > could > > be: > > > > HTTP response 500: Internal Server Error > > HTTP response 401: Unauthorized > > HTTP response 302: Moved temporarily > > > > when it is response 302, the server is returning a > > URL to > > redirect to. I want to be able to parse the URL. > > > > If the condition that I'm looking for in the URL is > > met, > > then I want to stop the thread. > > > > I am already using "Response Assertion" to parse the > > URL. > > > > If I use the "Result Status Action Handler" with > > "Stop Thread", my thread is terminated when my > > parsed > > condition is met OR if I get an HTTP error response > > code (e.g. 401) > > > > I want to be able to stop the thread ONLY IF my > > parsed condition is met. > > > > I guess this would require a distinction between > > Result Errors and Parsing Conditions. > > > > Can this be done now with some other components? If > > not, is implementation for this planned soon? > > > > Thanks, > > Andrew > > > > > > BTW JMeter 2.0.0 is much more memory stable than > > 1.9.1. THANK YOU! > > > > > > - Original Message - > > From: "Sebastian Bazley" > > Date: Tue, 9 Dec 2003 23:28:43 - > > To: "JMeter Users List" > > Subject: Re: Is it possible to Terminate JMeter > > based on results of response \ assertion? > > > > > I've added Post Processor to CVS which can be used > > to stop a thread or the test if \ > > > a sample failed. > > > Sample usage: > > > > > > Loop Controller > > > Sampler > > > Assertion > > > Response Action Error Handler > > > > > > Hope this helps. > > > > > > > > S. > > > - Original Message - > > > > > From: "Sebastian Bazley" > > > To: "JMeter Users List" > > > Sent: Tuesday, December 09, 2003 1:41 AM > > > Subject: Re: Is it possible to Terminate JMeter > > based on results of response \ assertion? > > > > > > > - Original Message - > > > Sent: Tuesday, December 09, 2003 12:40 AM > > > > Subject: Is it possible to Terminate JMeter > > based on results of response \ assertion? > > > > > > > > > > > I am using JMeter to send a request to a web > > service. > > > > > The web service will respond negatively for > > many iterations and then could > > > > > either respond positively once and then > > respond with an alternative negative > > > > > response, or simply respond with an alternate > > negative response > > > > > > > > > > > > What I'd like to do is to terminate sending > > requests after either the positive > > > > > or the alternate negative response has been > > received. > > > > > > > > > > Is this possible? If so, how would it be done? > > > > > > > > > > The following suggestions relate to builds after > > 1.9.1, so you would need to > > > > download one of the nightly builds. > > > > > > The Thread Group now has a set of options for > > action to be taken on Sampler > > > > Error. You could set the action to Stop Thread > > or Stop Test, and then add the > > > > appropriate Assertions to cause the Sample to > > fail where required. This assumes that the web > > service encodes the positive/negative reponse in the > > data, rather > > > > than in the HTTP response code - i.e. the Sample > > responses must be successful; > > > > you can then use the Assertion to set the sample > > as failed. > > > > [The plan was to extend the Stop on Error > > options to allow more fine-grained > > > > control, but this has not yet been implemented.] > > > > > > However, if you are prepared to code a short > > Java script, what you ask should be > > > > possible using the latest CVS build - provided > > that > > > > you get one with BeanShell support compiled in > > (the build log will tell you if > > > > so). Yo
Re: Is it possible to Terminate JMeter based on results of response \ assertion?
I've been using JMeter with reasonable success for the last few months. I now need some more fine grained control of how to terminate JMeter. The functionality of "Action to be taken after a Sampler error" is not good enough for me. Here's my situation: Responses from the web service that I'm testing could be: HTTP response 500: Internal Server Error HTTP response 401: Unauthorized HTTP response 302: Moved temporarily when it is response 302, the server is returning a URL to redirect to. I want to be able to parse the URL. If the condition that I'm looking for in the URL is met, then I want to stop the thread. I am already using "Response Assertion" to parse the URL. If I use the "Result Status Action Handler" with "Stop Thread", my thread is terminated when my parsed condition is met OR if I get an HTTP error response code (e.g. 401) I want to be able to stop the thread ONLY IF my parsed condition is met. I guess this would require a distinction between Result Errors and Parsing Conditions. Can this be done now with some other components? If not, is implementation for this planned soon? Thanks, Andrew BTW JMeter 2.0.0 is much more memory stable than 1.9.1. THANK YOU! - Original Message - From: "Sebastian Bazley" Date: Tue, 9 Dec 2003 23:28:43 - To: "JMeter Users List" Subject: Re: Is it possible to Terminate JMeter based on results of response \ assertion? > I've added Post Processor to CVS which can be used to stop a thread or the test if \ > a sample failed. > Sample usage: > > Loop Controller > Sampler > Assertion > Response Action Error Handler > > Hope this helps. > > S. > - Original Message - > From: "Sebastian Bazley" > To: "JMeter Users List" > Sent: Tuesday, December 09, 2003 1:41 AM > Subject: Re: Is it possible to Terminate JMeter based on results of response \ > assertion? > > > - Original Message - > Sent: Tuesday, December 09, 2003 12:40 AM > > Subject: Is it possible to Terminate JMeter based on results of response \ > > assertion? > > > > > I am using JMeter to send a request to a web service. > > > The web service will respond negatively for many iterations and then could > > > either respond positively once and then respond with an alternative negative > > > response, or simply respond with an alternate negative response > > > > > > What I'd like to do is to terminate sending requests after either the positive > > > or the alternate negative response has been received. > > > > > > Is this possible? If so, how would it be done? > > > > The following suggestions relate to builds after 1.9.1, so you would need to > > download one of the nightly builds. > > The Thread Group now has a set of options for action to be taken on Sampler > > Error. You could set the action to Stop Thread or Stop Test, and then add the > > appropriate Assertions to cause the Sample to fail where required. This assumes > > that the web service encodes the positive/negative reponse in the data, rather > > than in the HTTP response code - i.e. the Sample responses must be successful; > > you can then use the Assertion to set the sample as failed. > > [The plan was to extend the Stop on Error options to allow more fine-grained > > control, but this has not yet been implemented.] > > However, if you are prepared to code a short Java script, what you ask should be > > possible using the latest CVS build - provided that > > you get one with BeanShell support compiled in (the build log will tell you if > > so). You would also need to download the beanshell jar from www.beanshell.org as > > this is not distributed with JMeter. > > The BeanShell Response Assertion allows you access to all the response fields and > > methods, including stopThread() and stopTest(). > > The response fields are accessible as the following variables (Strings): > > ResponseData - this is of type byte [] > > ResponseCode > > ResponseMessage > > ResponseHeaders > > > > So you could code something like: > > > > if (ResponseCode.equals("123")) { > > Response.setStopThread(true); > > } > > > > > > > > The nature of the web service is such that there will be an unknown number of > > > initial negative iterations. > > > > Such is life! > > -- ___ Get your free email from http://www.iname.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter::Proxy Server::Internet world::Urgent !
RTFM!!! http://jakarta.apache.org/jmeter/usermanual/get-started.html#proxy_server - Original Message - From: Kannan K Date: Mon, 22 Dec 2003 12:27:06 +0530 To: "'[EMAIL PROTECTED]'" Subject: JMeter::Proxy Server::Internet world::Urgent ! > Dear All, > > Iam using JMeter 1.9.1 on Windows 2000 and JDK 1.4.1_02. > > Problem: > > In my corporate network, we all need to connect to a proxy server for > getting connected to the internet world. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test on a page which need to login
Basic Authentication is supported. There is coverage of this in the manual. Look for the "HTTP Authorisation Manager" component in the Component Reference, section 13. In my case, this component did not work for me, however I was able to work around it by using the HTTP Header Manager component after recording a manual login to the page with the HTTP Proxy Server. Hope that helps, Cheers, Andrew -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My HTTP Authorisation is failing
After installing a nightly build I have managed to get something working, however I'm sure it's not meant to work this way and must be a feature. I have removed the HTTP Authorisation Manager and the HTTP Cookie Manager. I used the HTTP Proxy Server to record access to the service needing authentication. Then I dragged the HTTP Request into a Thread Group and I added a Response Assertion. A Browser-derived headers config item suddently appeared!! It displayed the Basic Authorization from my recorded page. Bingo... I can now access pages needing authentication. Not the documented way, but heck, I'm glad something is working. Cheers, Andrew - Original Message - From: [EMAIL PROTECTED] Date: Wed, 10 Dec 2003 18:21:52 -0500 To: "JMeter Users List" <[EMAIL PROTECTED]> Subject: Re: My HTTP Authorisation is failing > I still have not resolved this. > Is anyone using HTTP Authorisation successfully with JMeter 1.9.1 ? > If so, I would appreciate it if you could let me know the format of the base URL > that you have setup in the HTTP Autorisation component. > > Thanks, > Andrew > > - Original Message - > From: [EMAIL PROTECTED] > Date: Tue, 09 Dec 2003 02:38:28 -0500 > To: "JMeter Users List" <[EMAIL PROTECTED]> > Subject: My HTTP Authorisation is failing > > > JMeter is not applying authorisation to my HTTP Request. > > I don't understand why. > > > > I am using JMeter 1.9.1. > > My Test Plan is in Functional Test Mode. > > I have a HTTP Authorisation Manager in my Test Plan at a higher level than my > > Thread Group. > > My Base URL is "http://2mmm.listenerpoints.com/2mmm/members/buyme/buyprize.pl"; > > altough I have also tried "2mmm.listenerpoints.com", > > "2mmm.listenerpoints.com/2mmm" and "2mmm.listenerpoints.com/2mmm/members" with the > > same result. > > > > I have set Thread Group to Loop Count of 1 (or any number with the same result). > > On the HTTP request, my server is set to "2mmm.listenerpoints.com" and the path is > > set to "/2mmm/members/buyme/buyprize.pl". > > I have a simple data writer to capture the response. > > > > In the output file I get a 401 Unauthorized error. > > The URL Request that appears in the output file is > > "http://2mmm.listenerpoints.com/2mmm/members/buyme/buyprize.pl?prizeid=228&quantity=1&firstname=Andrew"; > > When I put this directly into my browser, I am prompted to enter my username and > > password. > > Therefore I think the HTTP Request is setup correctly. > > > > Can anyone see what am I doing wrong with the HTTP Authorisation Manager? > > > > Thanks, > > Andrew > > > > > > -- > > ___ > > Sign-up for Ads Free at Mail.com > > http://promo.mail.com/adsfreejump.htm > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > ___ > Sign-up for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Proxy as a Controller
I've installed JMeter 1.9.1 and overlaid content from jakarta-jmeter-20031210_lib.zip but I cannot see HTTP Proxy Server as a controller. It is still appearing for me as a Non Test Element and I cannot create a listener inside it. What have I not done? Thanks, Andrew - Original Message - From: Jordi Salvat i Alabart <[EMAIL PROTECTED]> Date: Thu, 11 Dec 2003 00:56:11 +0100 To: JMeter Users List <[EMAIL PROTECTED]> Subject: Re: Suggestions for additional Recording Controller functionality > Yes, both are possible. > > If you get a recent nightly build, you will see that the HTTP Proxy > Server is now a controller. If you create a listener directly inside it, > the proxy will send the samples it generates to it. If you use a View > Results Tree, you'll be able to track all re-directs, headers, > authorizations, etc. > > Could you please file an enhancement request for 1) ? > > En/na [EMAIL PROTECTED] ha escrit: > > 1) Have the Recording Controller record any authorisations entered and populate > > the HTTP Authorisation component with the values. > > This would assist with setting up the HTTP Authorisation Manager correctly. > > > > 2) Have the Recording Controller work with the Simple Data Writer to output all > > pages received into a file. > > I would use this to have a look at the output that re-directs me to other pages. > > > > Are these extensions possible? > > > > Cheers, > > Andrew > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to Terminate JMeter based on results of response assertion?
I have installed jakarta-jmeter-20031210_lib.zip and I cannot see an item "Response Action Error Handler" in any menu on any level. Is this available from the nightly build yet? If not, how can I add this functionality to my installation of JMeter? Thanks, Andrew - Original Message - From: "Sebastian Bazley" <[EMAIL PROTECTED]> Date: Tue, 9 Dec 2003 23:28:43 - To: "JMeter Users List" <[EMAIL PROTECTED]> Subject: Re: Is it possible to Terminate JMeter based on results of response assertion? > I've added Post Processor to CVS which can be used to stop a thread or the test if a > sample failed. > > Sample usage: > > Loop Controller >Sampler > Assertion > Response Action Error Handler > > Hope this helps. > > S. > - Original Message - > From: "Sebastian Bazley" <[EMAIL PROTECTED]> > To: "JMeter Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, December 09, 2003 1:41 AM > Subject: Re: Is it possible to Terminate JMeter based on results of response > assertion? > > > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, December 09, 2003 12:40 AM > > Subject: Is it possible to Terminate JMeter based on results of response assertion? > > > > > > > I am using JMeter to send a request to a web service. > > > The web service will respond negatively for many iterations and then could either > > > respond positively once and then respond with an alternative negative response, > > > or > > > simply respond with an alternate negative response > > > > > > What I'd like to do is to terminate sending requests after either the positive > > > or the alternate negative response has been > > received. > > > > > > Is this possible? If so, how would it be done? > > > > The following suggestions relate to builds after 1.9.1, so you would need to > > download one of the nightly builds. > > > > The Thread Group now has a set of options for action to be taken on Sampler Error. > > You could set the action to Stop Thread or Stop Test, and then add the appropriate > > Assertions to cause the Sample to fail where > > required. This assumes that the web service encodes the positive/negative reponse > > in the data, rather than in the HTTP response > > code - i.e. the Sample responses must be successful; you can then use the > > Assertion to set the sample as failed. > > > > [The plan was to extend the Stop on Error options to allow more fine-grained > > control, but this has not yet been implemented.] > > > > However, if you are prepared to code a short Java script, what you ask should be > > possible using the latest CVS build - provided > that > > you get one with BeanShell support compiled in (the build log will tell you if > > so). You would also need to download the beanshell > > jar from www.beanshell.org as this is not distributed with JMeter. > > > > The BeanShell Response Assertion allows you access to all the response fields and > > methods, including stopThread() and stopTest(). > > > > The response fields are accessible as the following variables (Strings): > > ResponseData - this is of type byte [] > > ResponseCode > > ResponseMessage > > ResponseHeaders > > > > So you could code something like: > > > > if (ResponseCode.equals("123")) { > > Response.setStopThread(true); > > } > > > > > > > > The nature of the web service is such that there will be an unknown number of > > > initial negative iterations. > > > > > > > Such is life! > > > > > > - > > 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] > -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Suggestions for additional Recording Controller functionality
1) Have the Recording Controller record any authorisations entered and populate the HTTP Authorisation component with the values. This would assist with setting up the HTTP Authorisation Manager correctly. 2) Have the Recording Controller work with the Simple Data Writer to output all pages received into a file. I would use this to have a look at the output that re-directs me to other pages. Are these extensions possible? Cheers, Andrew -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My HTTP Authorisation is failing
I still have not resolved this. Is anyone using HTTP Authorisation successfully with JMeter 1.9.1 ? If so, I would appreciate it if you could let me know the format of the base URL that you have setup in the HTTP Autorisation component. Thanks, Andrew - Original Message - From: [EMAIL PROTECTED] Date: Tue, 09 Dec 2003 02:38:28 -0500 To: "JMeter Users List" <[EMAIL PROTECTED]> Subject: My HTTP Authorisation is failing > JMeter is not applying authorisation to my HTTP Request. > I don't understand why. > > I am using JMeter 1.9.1. > My Test Plan is in Functional Test Mode. > I have a HTTP Authorisation Manager in my Test Plan at a higher level than my Thread > Group. > My Base URL is "http://2mmm.listenerpoints.com/2mmm/members/buyme/buyprize.pl"; > altough I have also tried "2mmm.listenerpoints.com", "2mmm.listenerpoints.com/2mmm" > and "2mmm.listenerpoints.com/2mmm/members" with the same result. > > I have set Thread Group to Loop Count of 1 (or any number with the same result). > On the HTTP request, my server is set to "2mmm.listenerpoints.com" and the path is > set to "/2mmm/members/buyme/buyprize.pl". > I have a simple data writer to capture the response. > > In the output file I get a 401 Unauthorized error. > The URL Request that appears in the output file is > "http://2mmm.listenerpoints.com/2mmm/members/buyme/buyprize.pl?prizeid=228&quantity=1&firstname=Andrew"; > When I put this directly into my browser, I am prompted to enter my username and > password. > Therefore I think the HTTP Request is setup correctly. > > Can anyone see what am I doing wrong with the HTTP Authorisation Manager? > > Thanks, > Andrew > > > -- > ___ > Sign-up for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HI - Http Proxy Server
I'm not able to help you much more sorry. Although it sounds like JBoss is a possible conflict. Do you have another machine that you could run JMeter on? Cheers, Andrew - Original Message - From: "Ranjith K babu" <[EMAIL PROTECTED]> Date: Wed, 10 Dec 2003 14:22:17 +0530 To: "JMeter Users List" <[EMAIL PROTECTED]> Subject: Re: HI - Http Proxy Server > HI Andrew > > 1.when i close the Jboss & free the 8080 port and start the Jmeter with > the IP & port & set the IE setting to localhost & port 8080 , then am > getting the following exception in the IE . > > "java.net.ConnectException: Connection timed out: connect" & > > one Http request page is getting added in the Test Plan of JMeter ( say > if i try to record google one http request page for google is > getting added to the test plan) the contents of that are > > Http request contents: > > servername or Ip google.com > portNo : 80 > protocal : http > > it has a child Http Header Manager:with some name & value in it . > > 2.when i keep the IE Ip to normal ip ( sat 10.12.11.176) then it is not > getting recorded. > > > 3.if i run the JBoss and then give a diff prot to the Jmeter then also > iam not getting any thing recorded ! > > > please tell how can i get out of this... > * i request all in the group if you have any idea about it pls reply > for the same... > > thanks in advance ... > cheers > Ranjith. > > > You mentioned that you were using JBoss on port 8080. Is this on your > local machine? > > If so, you will have a conflict between the JBoss and JMeter Proxy > Server component. > > You should modify the default port number of the JMeter Proxy Server > component to be something else (e.g. 8090) and then setup IE to use > that port number (e.g. 8090). > > > > I hope that is clearer for you. > > > > Cheers, > > Andrew > > > > > > - Original Message - > > From: "Ranjith K babu" <[EMAIL PROTECTED]> > > Date: Wed, 10 Dec 2003 10:50:22 +0530 > > To: "JMeter Users List" <[EMAIL PROTECTED]> > > Subject: Re: HI - Http Proxy Server > > > > > HI Andrew > > > > > > 1.I had specified the Host & Port for the Jmeter same as the proxy > ip & > > > port ( 10.12.11.176 & 8080 ) > > > 2.then i canged the IE proxy to loaclhost & port as 8080 and tried > to > > > record ...but nothing is happening .! and even not able to > browse > > > the net also ...! > > > > > > i think am doing in the right way after installing the > Jmeter , i > > > have set the Jmeter-home & the JDK 1.4 path in the environment, do > i > > > need to do anything else . did i go wrong anywhere... > > > > > > please suggest me how to make the jmeter work for me . > > > > > > thanx in advance > > > cheers > > > Ranjith > > > > > > > > > > As I understand it, > > > > > > > > 1) You have to tell JMeter what your regular web proxy server is > by > > > starting JMeter with the -H -P attributes (for you: 10.12.11.176 & > port > > > is 8080) > > > > > > > > 2) Then you have to tell IE to use the proxy server that JMeter > > > starts: > > > > Set the IE proxy to localhost and port to whatever port you have > > > setup JMeter with (8090?) > > > > Ensure that you have turned off "Use Automatic Configuration > Script" > > > from that screen in IE. > > > > > > > > Hope that helps. > > > > > > > > Cheers, > > > > Andrew > > > > > > > > - Original Message - > > > > From: "Ranjith K babu" <[EMAIL PROTECTED]> > > > > Date: Tue, 9 Dec 2003 14:39:18 +0530 > > > > To: "JMeter Users List" <[EMAIL PROTECTED]> > > > > Subject: Re: HI - Http Proxy Server > > > > > > > > > > > > > > Hi Andrew > > > > > > > > > > I have started the Jmeter with the H & P option , but if i > change > > > the > > > > > port in the IE ti any thing other than 8080 the net is not > working > > > and > > > > > am not able to record any thing in JMeter. > > > > > > > > > > say my original proxy ip is 10.12.11.176 & port is 8080 ... > > > > > 1.i started the JMeter with the same IP 10.12.11.176 & port > 8090 as > > > my > > > > > port 8080 is used by Jboss for my project , then when i try to > > > browse > > > > > anysite and try to recode then it is saying IE cannot find the > site > > > and > > > > > nothing gets recorded in the JMEter . > > > > > 2. if i keep the same ip & port as the original proxy ,then am > bale > > > to > > > > > browse but not getting recorded in the JMeter. > > > > > > > > > > could you please help me out ...! > > > > > > > > > > cheers & Thanx in Advance > > > > > ranjith > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: jmeter-user- > [EMAIL PROTECTED] > > > > > For additional commands, e-mail: jmeter-user- > [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > > > ___ > > > > Sign-up for Ads Free at Mail.com > > > > http://promo.mai
Re: HI - Http Proxy Server
You mentioned that you were using JBoss on port 8080. Is this on your local machine? If so, you will have a conflict between the JBoss and JMeter Proxy Server component. You should modify the default port number of the JMeter Proxy Server component to be something else (e.g. 8090) and then setup IE to use that port number (e.g. 8090). I hope that is clearer for you. Cheers, Andrew - Original Message - From: "Ranjith K babu" <[EMAIL PROTECTED]> Date: Wed, 10 Dec 2003 10:50:22 +0530 To: "JMeter Users List" <[EMAIL PROTECTED]> Subject: Re: HI - Http Proxy Server > HI Andrew > > 1.I had specified the Host & Port for the Jmeter same as the proxy ip & > port ( 10.12.11.176 & 8080 ) > 2.then i canged the IE proxy to loaclhost & port as 8080 and tried to > record ...but nothing is happening .! and even not able to browse > the net also ...! > > i think am doing in the right way after installing the Jmeter , i > have set the Jmeter-home & the JDK 1.4 path in the environment, do i > need to do anything else . did i go wrong anywhere... > > please suggest me how to make the jmeter work for me . > > thanx in advance > cheers > Ranjith > > > > As I understand it, > > > > 1) You have to tell JMeter what your regular web proxy server is by > starting JMeter with the -H -P attributes (for you: 10.12.11.176 & port > is 8080) > > > > 2) Then you have to tell IE to use the proxy server that JMeter > starts: > > Set the IE proxy to localhost and port to whatever port you have > setup JMeter with (8090?) > > Ensure that you have turned off "Use Automatic Configuration Script" > from that screen in IE. > > > > Hope that helps. > > > > Cheers, > > Andrew > > > > - Original Message - > > From: "Ranjith K babu" <[EMAIL PROTECTED]> > > Date: Tue, 9 Dec 2003 14:39:18 +0530 > > To: "JMeter Users List" <[EMAIL PROTECTED]> > > Subject: Re: HI - Http Proxy Server > > > > > > > > Hi Andrew > > > > > > I have started the Jmeter with the H & P option , but if i change > the > > > port in the IE ti any thing other than 8080 the net is not working > and > > > am not able to record any thing in JMeter. > > > > > > say my original proxy ip is 10.12.11.176 & port is 8080 ... > > > 1.i started the JMeter with the same IP 10.12.11.176 & port 8090 as > my > > > port 8080 is used by Jboss for my project , then when i try to > browse > > > anysite and try to recode then it is saying IE cannot find the site > and > > > nothing gets recorded in the JMEter . > > > 2. if i keep the same ip & port as the original proxy ,then am bale > to > > > browse but not getting recorded in the JMeter. > > > > > > could you please help me out ...! > > > > > > cheers & Thanx in Advance > > > ranjith > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > > ___ > > Sign-up for Ads Free at Mail.com > > http://promo.mail.com/adsfreejump.htm > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > Ranjith K Babu > V&V Engineer , > RELQ Software. > 0044-7742933682 > EmailId:[EMAIL PROTECTED] > > __ > RelQ Software (P) Ltd. - For Verification & Validation > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HI - Http Proxy Server
As I understand it, 1) You have to tell JMeter what your regular web proxy server is by starting JMeter with the -H -P attributes (for you: 10.12.11.176 & port is 8080) 2) Then you have to tell IE to use the proxy server that JMeter starts: Set the IE proxy to localhost and port to whatever port you have setup JMeter with (8090?) Ensure that you have turned off "Use Automatic Configuration Script" from that screen in IE. Hope that helps. Cheers, Andrew - Original Message - From: "Ranjith K babu" <[EMAIL PROTECTED]> Date: Tue, 9 Dec 2003 14:39:18 +0530 To: "JMeter Users List" <[EMAIL PROTECTED]> Subject: Re: HI - Http Proxy Server > > Hi Andrew > > I have started the Jmeter with the H & P option , but if i change the > port in the IE ti any thing other than 8080 the net is not working and > am not able to record any thing in JMeter. > > say my original proxy ip is 10.12.11.176 & port is 8080 ... > 1.i started the JMeter with the same IP 10.12.11.176 & port 8090 as my > port 8080 is used by Jboss for my project , then when i try to browse > anysite and try to recode then it is saying IE cannot find the site and > nothing gets recorded in the JMEter . > 2. if i keep the same ip & port as the original proxy ,then am bale to > browse but not getting recorded in the JMeter. > > could you please help me out ...! > > cheers & Thanx in Advance > ranjith > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
My HTTP Authorisation is failing
JMeter is not applying authorisation to my HTTP Request. I don't understand why. I am using JMeter 1.9.1. My Test Plan is in Functional Test Mode. I have a HTTP Authorisation Manager in my Test Plan at a higher level than my Thread Group. My Base URL is "http://2mmm.listenerpoints.com/2mmm/members/buyme/buyprize.pl"; altough I have also tried "2mmm.listenerpoints.com", "2mmm.listenerpoints.com/2mmm" and "2mmm.listenerpoints.com/2mmm/members" with the same result. I have set Thread Group to Loop Count of 1 (or any number with the same result). On the HTTP request, my server is set to "2mmm.listenerpoints.com" and the path is set to "/2mmm/members/buyme/buyprize.pl". I have a simple data writer to capture the response. In the output file I get a 401 Unauthorized error. The URL Request that appears in the output file is "http://2mmm.listenerpoints.com/2mmm/members/buyme/buyprize.pl?prizeid=228&quantity=1&firstname=Andrew"; When I put this directly into my browser, I am prompted to enter my username and password. Therefore I think the HTTP Request is setup correctly. Can anyone see what am I doing wrong with the HTTP Authorisation Manager? Thanks, Andrew -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HI - Http Proxy Server
If you have a proxy server in your environment, did you start JMeter with the -H and -P attributes to specify the proxy server? Cheers, Andrew -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to Terminate JMeter based on results of response assertion?
I am using JMeter to send a request to a web service. The web service will respond negatively for many iterations and then could either respond positively once and then respond with an alternative negative response, or simply respond with an alternate negative response What I'd like to do is to terminate sending requests after either the positive or the alternate negative response has been received. Is this possible? If so, how would it be done? The nature of the web service is such that there will be an unknown number of initial negative iterations. Thanks, Andrew -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]