Assertion problem when used with Transaction Controllers
Hi Guys, I'm putting a response assertion at testplan level to check if any of the sample responses contained the word error. My http request samplers are grouped under transaction controllers that generate a parent sample. The samplers pass the assertion but the transaction controller fails with the message below. Assertion error: false Assertion failure: true Assertion failure message : Response was null Is there a way around this? And is it a bad idea to have an assertion at the testplan level? Thanks! John. Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: leading slash in Http Request Path variable
On 04/10/2007, Richard Hubbell [EMAIL PROTECTED] wrote: --- sebb [EMAIL PROTECTED] wrote: Wow, may well prevent using jmeter. What if we need to specify 100,000 users for the proxy? Is there a better way than to have to specify 100,000 jmeter command lines to test 100,000 users? I guess we could auth for one user but that's not reflective of reality in this case. One normally only uses at most one Proxy. I don't understand what you are trying to do. We want to mimic multiple users and each user has to authenticate with the proxy. I'll use an example again since I don't do a great job explaining all this. If I use wget I specify the proxy_user and proxy_passwd for a request. The proxy authenticates by taking the user+pass and base64 encoding and then doing the Basic auth. So as a workaround, that will enable us to use Jmeter for this, we'd run Jmeter with a proxy/port/user/pass on the command line. That starts the test using our test plan but only authenticates once against the proxy and that does NOT mimic the production reality. Hope I'm making sense, really appreciate the help. That is definitely not possible with standard Java Http, because the proxy is defined using system properties - and that cannot be done independently per thread. It would be possible with the HttpClient implementation, but has not been implemented. As far as I know, this is the first time that this scenario has arisen. We are considering implementing Proxy setup via a GUI item. This would probably solve your problem. But at present it's not possible. Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - 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]
Re: Cookie manager
On 04/10/2007, Richard Hubbell [EMAIL PROTECTED] wrote: Couple of things with the cookie manager. I'm using Jmeter 2.3. The cookie manager defaults to Cookie policy rfc2109, if I change it, it switches back to rfc2109 and there's no way other than editing the jmx by hand to change it, the gui, switches back to rfc2109. A minor problem. Maybe a java issue?? Works fine for me. The other problem is more important. The cookie manager doesn't seem to work. I've changed it's scope but still doesn't work. It works fine for me with the default policy and with rfc2109. I just tried with Google and the second sampler sent the cookie provided by the first response, at least in GUI mode. Try enabling debug for jmeter.protocol.http.control.CookieManager I edit the test plan in the gui and run the test without a gui. Does it work in GUI mode for you? Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. http://autos.yahoo.com/index.html - 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]
Re: Assertion problem when used with Transaction Controllers
In 04/10/2007, John Dempsey [EMAIL PROTECTED] wrote: Hi Guys, I'm putting a response assertion at testplan level to check if any of the sample responses contained the word error. My http request samplers are grouped under transaction controllers that generate a parent sample. The samplers pass the assertion but the transaction controller fails with the message below. Assertion error: false Assertion failure: true Assertion failure message : Response was null That's because a TC does not have any response data. It would not make sense; one cannot aggregate response fields, only the time and bytes. Is there a way around this? Move the Assertion ... And is it a bad idea to have an assertion at the testplan level? Only if there are some samples to which it does not apply. For example, the response time assertion would be OK in this situation. Thanks! John. Send instant messages to your online friends http://uk.messenger.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]
JAVA REQUEST - ${__CSVRead and NEXT VALUE
Hi, i have a JAVA REQUEST class with parameter a | ${__CSVRead(try.csv,0)} whei i run the test, into the java class it always read the first ROW of try.csv file. Into the log i saw jmeter read the next value i don't know how take it to be use. I tried to use a | ${__CSVRead(try.csv,next)} a | ${__CSVRead(try.csv,next())} or into the java class class params.addArgument(a, ${__CSVRead(try.csv.csv,next())}); but Jmeter return null value I can make in way 1) Using a loop Controller 2) Using a ${__counter(,)} My problem is: HOW CAN I PASS THE counter VALUE TO THE JAVA CLASS and use it in CSVRead? Could you help me? FULVIO - - L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
regular expression extractor question
Hi there! Iam using regular expression extractor for extracting string (in this case mine string is 1660 ) to variable like this: Reference name: request_id Regular expression: name=requestID value='([0-9]+)' Template: $1$ match No: 1 Default Value: REG_FAILED from response: input readonly class=input_text readonly width_short_input type=text name=requestID value='1660' / thats ok, then i use it in the next HTTP request and everythings looks fine, ${request_id} will be changed for my number from response. But in the next HTTP request i still want to use the same variable, but the response comes with Default value instead of mine string... scope looks like this: request regular expression extractor request- here is everything ok request- Default value :( request- Default value :( Where is the problem? Am i missing something? Sorry for bad english . -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13037967 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: regular expression extractor question
On 04/10/2007, Sova [EMAIL PROTECTED] wrote: Hi there! Iam using regular expression extractor for extracting string (in this case mine string is 1660 ) to variable like this: Reference name: request_id Regular expression: name=requestID value='([0-9]+)' Template: $1$ match No: 1 Default Value: REG_FAILED from response: input readonly class=input_text readonly width_short_input type=text name=requestID value='1660' / thats ok, then i use it in the next HTTP request and everythings looks fine, ${request_id} will be changed for my number from response. But in the next HTTP request i still want to use the same variable, but the response comes with Default value instead of mine string... scope looks like this: request regular expression extractor request- here is everything ok request- Default value :( request- Default value :( Add the RE as a child of the request to which it applies. Where is the problem? Am i missing something? Sorry for bad english . -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13037967 Sent from the JMeter - User mailing list archive at Nabble.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]
Re: Null HTTP Response Code
On 04/10/2007, David Leston [EMAIL PROTECTED] wrote: Yep, I jumped the gun. I replaced the braces and here's some more results for you. Here's the info out of my jmeter.log. For brevity, I removed the logs of the other 99 threads starting up, and left just one 404... They're all 404s here, but (null) in the log.jtl specified with the -l command line flag, and (null) in the file being wrtten to by my Simple Data Writer. 2007/10/03 16:27:49 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US 2007/10/03 16:27:49 INFO - jmeter.JMeter: Loading user properties from: /home/dleston/jakarta-jmeter-2.3/bin/user.propertie s 2007/10/03 16:27:49 INFO - jmeter.JMeter: Loading system properties from: /home/dleston/jakarta-jmeter-2.3/bin/system.prope rties 2007/10/03 16:27:49 INFO - jmeter.JMeter: Copyright (c) 1998-2007 The Apache Software Foundation 2007/10/03 16:27:49 INFO - jmeter.JMeter: Version 2.3 2007/10/03 16:27:49 INFO - jmeter.JMeter: java.version=1.5.0_12 2007/10/03 16:27:49 INFO - jmeter.JMeter: os.name=Linux 2007/10/03 16:27:49 INFO - jmeter.JMeter: os.arch=i386 2007/10/03 16:27:49 INFO - jmeter.JMeter: os.version=(removed for security) 2007/10/03 16:27:49 INFO - jmeter.JMeter: file.encoding=UTF-8 2007/10/03 16:27:49 INFO - jmeter.JMeter: Default Locale=English (United States) 2007/10/03 16:27:49 INFO - jmeter.JMeter: JMeter Locale=English (United States) 2007/10/03 16:27:49 INFO - jmeter.JMeter: JMeterHome=/home/dleston/jakarta-jmeter-2.3 2007/10/03 16:27:49 INFO - jmeter.JMeter: user.dir =/home/dleston/jakarta-jmeter-2.3/bin 2007/10/03 16:27:49 INFO - jmeter.JMeter: PWD =/home/dleston/jakarta-jmeter-2.3/bin 2007/10/03 16:27:49 INFO - jmeter.JMeter: Loading file: /home/dleston/jmeter.jmx 2007/10/03 16:27:49 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2007/10/03 16:27:49 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 2007/10/03 16:27:49 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 2007/10/03 16:27:49 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2007/10/03 16:27:49 INFO - jmeter.save.SaveService: Using SaveService properties file version 545311 2007/10/03 16:27:49 WARN - jmeter.save.SaveService: Could not set up alias MailerModel java.lang.NoClassDefFoundError: java x/mail/Message 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, us ing default 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.p rotocol.http.parser.RegexpHTMLParser 2007/10/03 16:27:49 INFO - jmeter.protocol.http.sampler.HTTPSampler2: Local host = qa-admin 2007/10/03 16:27:50 INFO - jmeter.protocol.http.sampler.HTTPSampler: Maximum connection retries = 10 2007/10/03 16:27:50 WARN - jmeter.save.SaveService: Could not set up alias JMSSampler java.lang.NoClassDefFoundError: javax /jms/JMSException 2007/10/03 16:27:50 WARN - jmeter.save.SaveService: Could not set up alias SubscriberSampler java.lang.NoClassDefFoundError : javax/jms/MessageListener 2007/10/03 16:27:50 WARN - jmeter.save.SaveService: Could not set up alias MailerVisualizer java.lang.NoClassDefFoundError: javax/mail/MessagingException 2007/10/03 16:27:50 INFO - jmeter.save.SaveService: Using SaveService properties version 1.8 2007/10/03 16:27:50 INFO - jmeter.save.SaveService: All converter versions present and correct 2007/10/03 16:27:50 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 2007/10/03 16:27:50 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.star tlistenerslater=false 2007/10/03 16:27:50 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2007/10/03 16:27:50 WARN - jmeter.reporters.ResultCollector: Unexpected EOF trying to find XML end marker in /home/dleston/log.jtl 2007/10/03 16:27:50 INFO - jmeter.JMeter: Running test (1191454070865) 2007/10/03 16:27:50 INFO - jmeter.engine.StandardJMeterEngine: Starting 100 threads for group Thread Group. Ramp up = 2. That's quite a small ramp-up for 100 threads. 2007/10/03 16:27:50 INFO - jmeter.engine.StandardJMeterEngine: Continue on error 2007/10/03 16:27:50 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 2007/10/03 16:27:50 INFO -
How to FTP Request put with chmod 777 ???
I have the problem that I want JMeter to change the file attributes (chmod 777) after it has put a file on a ftp. Should be something simple, I have tried a lot but still didn't get a solution that works... -- View this message in context: http://www.nabble.com/How-to-FTP-Request-put-with-chmod-777-tf4568474.html#a13038790 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA REQUEST - ${__CSVRead and NEXT VALUE
On 04/10/2007, Fulvio Guglielmelli [EMAIL PROTECTED] wrote: Hi, i have a JAVA REQUEST class with parameter a | ${__CSVRead(try.csv,0)} whei i run the test, into the java class it always read the first ROW of try.csv file. Because you have not used next() The following should work: ${__CSVRead(try.csv,0)}${__CSVRead(try.csv,next)} But the CSV Dataset element is much easier to use. Into the log i saw jmeter read the next value i don't know how take it to be use. I tried to use a | ${__CSVRead(try.csv,next)} a | ${__CSVRead(try.csv,next())} or into the java class class params.addArgument(a, ${__CSVRead(try.csv.csv,next())}); but Jmeter return null value I can make in way 1) Using a loop Controller 2) Using a ${__counter(,)} My problem is: HOW CAN I PASS THE counter VALUE TO THE JAVA CLASS and use it in CSVRead? Could you help me? What are you trying to achieve? I don't understand what the counter has got to do with CSVRead. FULVIO - - L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to FTP Request put with chmod 777 ???
JMeter is not a full FTP client. It allows put and get only at present, as these are the items that most likely need performance testing. Feel free to raise a Bugzilla enhancement request. But if you need this anytime soon, you will need to write your own code to do it. On 04/10/2007, EmporioGA [EMAIL PROTECTED] wrote: I have the problem that I want JMeter to change the file attributes (chmod 777) after it has put a file on a ftp. Should be something simple, I have tried a lot but still didn't get a solution that works... -- View this message in context: http://www.nabble.com/How-to-FTP-Request-put-with-chmod-777-tf4568474.html#a13038790 Sent from the JMeter - User mailing list archive at Nabble.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]
Re: jmeter.bat: Special exit code when test plan run fails?
Yes, but: * ensuring that the exit does not prevent other threads from finishing normally may not be trivial; * it would prevent the code from being used directly from Java. Agreeing the codes is also not easy - what constitutes a test failure? On 03/10/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Actually, returning an error code in Java is pretty straight forward: System.exit(123); // or whatever code you want. All you have to do is agree on the error code(s). -Rico Original-Nachricht Datum: Wed, 3 Oct 2007 22:02:38 +0100 Von: sebb [EMAIL PROTECTED] An: JMeter Users List jmeter-user@jakarta.apache.org Betreff: Re: jmeter.bat: Special exit code when test plan run fails? This is a problem with Java applications. In general it is very difficult to return a meaningful code from Java applications. On 03/10/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is a special exit code for jmeter.[bat|sh] and the like when a test fails. For example if I run this on Windows, the exit code is '0' although some tests failed: c:\jakarta-jmeter-2.3RC4\binjmeter.bat -n -t ..\extras\Test.jmx -l shorttest.log Created the tree successfully Starting the test @ Wed Oct 03 13:10:00 PDT 2007 (1191442200884) Tidying up ...@ Wed Oct 03 13:10:04 PDT 2007 (1191442204589) ... end of run c:\jakarta-jmeter-2.3RC4\binecho %errorlevel% 0 The failure shows up nicely in the HTML report that I can generate with the XSLT stylesheet, but it would be extremely helpful if the command would return a non-zero exit code if a test fails. This allows me to better integrate JMeter in our test automation framework. Thanks in advance, Rico. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger - 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] -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger - 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]
Re: Assertion problem when used with Transaction Controllers
That makes sense. I was hoping there was a property to make response assertions ignore the transaction controllers. Thanks for the info! --- sebb [EMAIL PROTECTED] wrote: In 04/10/2007, John Dempsey [EMAIL PROTECTED] wrote: Hi Guys, I'm putting a response assertion at testplan level to check if any of the sample responses contained the word error. My http request samplers are grouped under transaction controllers that generate a parent sample. The samplers pass the assertion but the transaction controller fails with the message below. Assertion error: false Assertion failure: true Assertion failure message : Response was null That's because a TC does not have any response data. It would not make sense; one cannot aggregate response fields, only the time and bytes. Is there a way around this? Move the Assertion ... And is it a bad idea to have an assertion at the testplan level? Only if there are some samples to which it does not apply. For example, the response time assertion would be OK in this situation. Thanks! John. Send instant messages to your online friends http://uk.messenger.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] Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: regular expression extractor question
Thank you for answer but we missunderstood each other, mine RE was allready a child of the request. Btw problem solved: I replaced Default value with: ${request_id} and its working :) Thank you anyway. sebb-2 wrote: On 04/10/2007, Sova [EMAIL PROTECTED] wrote: Hi there! Iam using regular expression extractor for extracting string (in this case mine string is 1660 ) to variable like this: Reference name: request_id Regular expression: name=requestID value='([0-9]+)' Template: $1$ match No: 1 Default Value: REG_FAILED from response: input readonly class=input_text readonly width_short_input type=text name=requestID value='1660' / thats ok, then i use it in the next HTTP request and everythings looks fine, ${request_id} will be changed for my number from response. But in the next HTTP request i still want to use the same variable, but the response comes with Default value instead of mine string... scope looks like this: request regular expression extractor request- here is everything ok request- Default value :( request- Default value :( Add the RE as a child of the request to which it applies. Where is the problem? Am i missing something? Sorry for bad english . -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13037967 Sent from the JMeter - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13040112 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: regular expression extractor question
On 04/10/2007, Sova [EMAIL PROTECTED] wrote: Thank you for answer but we missunderstood each other, mine RE was allready a child of the request. Btw problem solved: I replaced Default value with: ${request_id} and its working :) That should not be necessary: - if the RE is in the correct place, it will only be processed when there is a request id to extract, and so the request_id variable will not be changed. Alternatively, omit the default value entirely, and the variable will not be changed if the RE does not match. Thank you anyway. sebb-2 wrote: On 04/10/2007, Sova [EMAIL PROTECTED] wrote: Hi there! Iam using regular expression extractor for extracting string (in this case mine string is 1660 ) to variable like this: Reference name: request_id Regular expression: name=requestID value='([0-9]+)' Template: $1$ match No: 1 Default Value: REG_FAILED from response: input readonly class=input_text readonly width_short_input type=text name=requestID value='1660' / thats ok, then i use it in the next HTTP request and everythings looks fine, ${request_id} will be changed for my number from response. But in the next HTTP request i still want to use the same variable, but the response comes with Default value instead of mine string... scope looks like this: request regular expression extractor request- here is everything ok request- Default value :( request- Default value :( Add the RE as a child of the request to which it applies. Where is the problem? Am i missing something? Sorry for bad english . -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13037967 Sent from the JMeter - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13040112 Sent from the JMeter - User mailing list archive at Nabble.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]
RE: HTTP Request Defaults in a while loop
I'm reading the file with a CSV data set. The value might change each time I read a line from the file, but I am making may requests for each line I read in. In the example below there are 4 requests sent each time I read a line. In my real test there are over a hundred. I was wanting to use the defaults so that I didn't have to specify the values on each of those hundred requests. Kathy Mitchell -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 6:41 PM To: JMeter Users List Subject: Re: HTTP Request Defaults in a while loop How are you reading the file? I'm not sure that you need to use defaults if the values change each time... On 03/10/2007, Kathy Mitchell [EMAIL PROTECTED] wrote: I have a JMeter script that loops through a file and sends requests to the hostname/port/protocol read from the file. I tried using HTTP Request Defaults to set defaults for the items read in each time through the loop. When I look at the URL in the output log my first request in each loop appears be going to the previous URL in the file. All requests after the first appear to be going to the correct URL. I set up a simple test case and got the following output. timeStamp,elapsed,label,responseCode,responseMessage,success,failureMess age,URL 1191441552578,3504,|Request 1: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441556092,914,|Request 2: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441557006,903,|Request 3: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441557909,904,|Request 4: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441558813,883,|Request 1: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.apache.org/ 1191441559706,171,|Request 2: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441559887,130,|Request 3: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441560017,131,|Request 4: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441560148,130,|Request 1: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441560288,1898,|Request 2: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441562186,1646,|Request 3: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441563832,874,|Request 4: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441564706,1355,|Request 1: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441566061,954,|Request 2: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441567015,502,|Request 3: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441567517,482,|Request 4: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ If I remove the HTTP Request Default and put the parms read from the file directly into the HTTP request I get what I would expect: timeStamp,elapsed,label,responseCode,responseMessage,success,failureMess age,URL 1191441668443,432,|Request 1: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441668885,140,|Request 2: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441669035,121,|Request 3: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441669156,110,|Request 4: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441669266,181,|Request 1: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669447,130,|Request 2: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669587,121,|Request 3: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669708,140,|Request 4: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669848,462,|Request 1: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670310,161,|Request 2: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670471,170,|Request 3: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670641,181,|Request 4: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670822,291,|Request 1: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441671113,141,|Request 2: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441671264,110,|Request 3: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441671374,111,|Request 4: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ It seems that the defaults are not gettting set until after the first request in each loop is made. Is this the expected behavior? If so, is there any way around
Re: regular expression extractor question
Thank you for great answer it works very good without any default value sebb-2 wrote: On 04/10/2007, Sova [EMAIL PROTECTED] wrote: Thank you for answer but we missunderstood each other, mine RE was allready a child of the request. Btw problem solved: I replaced Default value with: ${request_id} and its working :) That should not be necessary: - if the RE is in the correct place, it will only be processed when there is a request id to extract, and so the request_id variable will not be changed. Alternatively, omit the default value entirely, and the variable will not be changed if the RE does not match. Thank you anyway. sebb-2 wrote: On 04/10/2007, Sova [EMAIL PROTECTED] wrote: Hi there! Iam using regular expression extractor for extracting string (in this case mine string is 1660 ) to variable like this: Reference name: request_id Regular expression: name=requestID value='([0-9]+)' Template: $1$ match No: 1 Default Value: REG_FAILED from response: input readonly class=input_text readonly width_short_input type=text name=requestID value='1660' / thats ok, then i use it in the next HTTP request and everythings looks fine, ${request_id} will be changed for my number from response. But in the next HTTP request i still want to use the same variable, but the response comes with Default value instead of mine string... scope looks like this: request regular expression extractor request- here is everything ok request- Default value :( request- Default value :( Add the RE as a child of the request to which it applies. Where is the problem? Am i missing something? Sorry for bad english . -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13037967 Sent from the JMeter - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13040112 Sent from the JMeter - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/regular-expression-extractor-question-tf4568210.html#a13041687 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP Request Defaults in a while loop
This might be a case where the StringFromFile function is more suitable. CSV DataSet works fine with Samplers, but at present does not always work properly with other Config elements such as JDBC Config. Or perhaps the AccessLog sampler. On 04/10/2007, Kathy Mitchell [EMAIL PROTECTED] wrote: I'm reading the file with a CSV data set. The value might change each time I read a line from the file, but I am making may requests for each line I read in. In the example below there are 4 requests sent each time I read a line. In my real test there are over a hundred. I was wanting to use the defaults so that I didn't have to specify the values on each of those hundred requests. Kathy Mitchell -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 6:41 PM To: JMeter Users List Subject: Re: HTTP Request Defaults in a while loop How are you reading the file? I'm not sure that you need to use defaults if the values change each time... On 03/10/2007, Kathy Mitchell [EMAIL PROTECTED] wrote: I have a JMeter script that loops through a file and sends requests to the hostname/port/protocol read from the file. I tried using HTTP Request Defaults to set defaults for the items read in each time through the loop. When I look at the URL in the output log my first request in each loop appears be going to the previous URL in the file. All requests after the first appear to be going to the correct URL. I set up a simple test case and got the following output. timeStamp,elapsed,label,responseCode,responseMessage,success,failureMess age,URL 1191441552578,3504,|Request 1: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441556092,914,|Request 2: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441557006,903,|Request 3: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441557909,904,|Request 4: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441558813,883,|Request 1: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.apache.org/ 1191441559706,171,|Request 2: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441559887,130,|Request 3: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441560017,131,|Request 4: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441560148,130,|Request 1: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441560288,1898,|Request 2: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441562186,1646,|Request 3: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441563832,874,|Request 4: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441564706,1355,|Request 1: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441566061,954,|Request 2: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441567015,502,|Request 3: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441567517,482,|Request 4: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ If I remove the HTTP Request Default and put the parms read from the file directly into the HTTP request I get what I would expect: timeStamp,elapsed,label,responseCode,responseMessage,success,failureMess age,URL 1191441668443,432,|Request 1: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441668885,140,|Request 2: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441669035,121,|Request 3: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441669156,110,|Request 4: line: 1-www.apache.org-80-http|,200,OK,true,,http://www.apache.org/ 1191441669266,181,|Request 1: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669447,130,|Request 2: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669587,121,|Request 3: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669708,140,|Request 4: line: 2-bigtex.com-80-http|,200,OK,true,,http://www.bigtex.com/ 1191441669848,462,|Request 1: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670310,161,|Request 2: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670471,170,|Request 3: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670641,181,|Request 4: line: 3-ci.southlake.tx.us-80-http|,200,OK,true,,http://ci.southlake.tx.us/ 1191441670822,291,|Request 1: line: 4-jakarta.apache.org-80-http|,200,OK,true,,http://jakarta.apache.org/ 1191441671113,141,|Request 2: line:
small change in Response Assertion between 2.3RC3 and 2.3
I have some response assertions that fail in 2.3 but pass in 2.3RC3 (same .jmx file, and the response assertion also worked in older JMeter builds) The failing expression is HTTP/1.1 200 OK and the problematic character seems to be the forward slash. Escaping it (i.e. \/) does not fix the problem. Has anybody else seen something similar? thanks Ivan -- View this message in context: http://www.nabble.com/small-change-in-Response-Assertion-between-2.3RC3-and-2.3-tf4569726.html#a13043021 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: leading slash in Http Request Path variable
--- sebb [EMAIL PROTECTED] wrote: That is definitely not possible with standard Java Http, because the proxy is defined using system properties - and that cannot be done independently per thread. It would be possible with the HttpClient implementation, but has not been implemented. As far as I know, this is the first time that this scenario has arisen. We are considering implementing Proxy setup via a GUI item. This would probably solve your problem. But at present it's not possible. Darn. At least it's on the radar. I'm seeing proxies more often now for different reasons and different uses. Having the Proxy GUI setup as an option would be a big plus from my perspective. Actually if only that leading slash weren't prepended I think I could make it work. So if the HTTP Request Path variable was used as-is and a / wasn't prepended I think I could go on my merry way. I'll poke around in the source for that. Thank you. Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: small change in Response Assertion between 2.3RC3 and 2.3
Response Assertions now have a separate check-box for Response Headers - have you tried that? Also / is not a special character in regular expressions. However . is a special character - though it would match . anyway. On 04/10/2007, Ivan Rancati [EMAIL PROTECTED] wrote: I have some response assertions that fail in 2.3 but pass in 2.3RC3 (same .jmx file, and the response assertion also worked in older JMeter builds) The failing expression is HTTP/1.1 200 OK and the problematic character seems to be the forward slash. Escaping it (i.e. \/) does not fix the problem. Has anybody else seen something similar? thanks Ivan -- View this message in context: http://www.nabble.com/small-change-in-Response-Assertion-between-2.3RC3-and-2.3-tf4569726.html#a13043021 Sent from the JMeter - User mailing list archive at Nabble.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]
Re: Cookie manager
--- sebb [EMAIL PROTECTED] wrote: Works fine for me. Hate when that happens. I loaded a jmx created in an earlier version of Jmeter and the cookie policy can be changed no problem. Not sure if this a clue to my problem. I will try re-creating the jmx and see if that fixes things. The other problem is more important. The cookie manager doesn't seem to work. I've changed it's scope but still doesn't work. It works fine for me with the default policy and with rfc2109. I just tried with Google and the second sampler sent the cookie provided by the first response, at least in GUI mode. Try enabling debug for jmeter.protocol.http.control.CookieManager I will try this, thanks. I edit the test plan in the gui and run the test without a gui. Does it work in GUI mode for you? I haven't tried running the test in GUI mode since it's a remote box. Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: leading slash in Http Request Path variable
On 04/10/2007, Richard Hubbell [EMAIL PROTECTED] wrote: --- sebb [EMAIL PROTECTED] wrote: That is definitely not possible with standard Java Http, because the proxy is defined using system properties - and that cannot be done independently per thread. It would be possible with the HttpClient implementation, but has not been implemented. As far as I know, this is the first time that this scenario has arisen. We are considering implementing Proxy setup via a GUI item. This would probably solve your problem. But at present it's not possible. Darn. At least it's on the radar. I'm seeing proxies more often now for different reasons and different uses. Having the Proxy GUI setup as an option would be a big plus from my perspective. Actually if only that leading slash weren't prepended I think I could make it work. So if the HTTP Request Path variable was used as-is and a / wasn't prepended I think I could go on my merry way. I'll poke around in the source for that. As far as I know, proxies need different handling from servers, but I suppose it might work for some simple cases. Thank you. Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 - 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]
Re: small change in Response Assertion between 2.3RC3 and 2.3
Glad it's sorted. I guess the changes file could have been more explicit ... On 04/10/2007, Ivan Rancati [EMAIL PROTECTED] wrote: Response Assertions now have a separate check-box for Response Headers - have you tried that? I had not noticed that change from 2.3RC3 to the final 2.3, and that was exactly the problem. Thanks and apologies for the noise. -- View this message in context: http://www.nabble.com/small-change-in-Response-Assertion-between-2.3RC3-and-2.3-tf4569726.html#a13043931 Sent from the JMeter - User mailing list archive at Nabble.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]
Re: small change in Response Assertion between 2.3RC3 and 2.3
Response Assertions now have a separate check-box for Response Headers - have you tried that? I had not noticed that change from 2.3RC3 to the final 2.3, and that was exactly the problem. Thanks and apologies for the noise. -- View this message in context: http://www.nabble.com/small-change-in-Response-Assertion-between-2.3RC3-and-2.3-tf4569726.html#a13043931 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jmeter.bat: Special exit code when test plan run fails?
Ok, I see your point. Here is another idea to tackle this problem: What about adding a Set Exit Code Post-processor? The job of the post-processor would be to determine: a) A test failure b) The exit code to return (defined by user) To determine a failure one could use assertion-results, i.e. I could have an assertion that makes sure my throughput is above a certain limit, if not it sets a failure variable. The post-processor checks for this variable and defines the exit code. The main program loop would have to check and use the global exit code set by the post-processor as the last step before the program terminates. -Rico Original-Nachricht Datum: Thu, 4 Oct 2007 13:25:37 +0100 Von: sebb [EMAIL PROTECTED] An: JMeter Users List jmeter-user@jakarta.apache.org Betreff: Re: jmeter.bat: Special exit code when test plan run fails? Yes, but: * ensuring that the exit does not prevent other threads from finishing normally may not be trivial; * it would prevent the code from being used directly from Java. Agreeing the codes is also not easy - what constitutes a test failure? On 03/10/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Actually, returning an error code in Java is pretty straight forward: System.exit(123); // or whatever code you want. All you have to do is agree on the error code(s). -Rico Original-Nachricht Datum: Wed, 3 Oct 2007 22:02:38 +0100 Von: sebb [EMAIL PROTECTED] An: JMeter Users List jmeter-user@jakarta.apache.org Betreff: Re: jmeter.bat: Special exit code when test plan run fails? This is a problem with Java applications. In general it is very difficult to return a meaningful code from Java applications. On 03/10/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is a special exit code for jmeter.[bat|sh] and the like when a test fails. For example if I run this on Windows, the exit code is '0' although some tests failed: c:\jakarta-jmeter-2.3RC4\binjmeter.bat -n -t ..\extras\Test.jmx -l shorttest.log Created the tree successfully Starting the test @ Wed Oct 03 13:10:00 PDT 2007 (1191442200884) Tidying up ...@ Wed Oct 03 13:10:04 PDT 2007 (1191442204589) ... end of run c:\jakarta-jmeter-2.3RC4\binecho %errorlevel% 0 The failure shows up nicely in the HTML report that I can generate with the XSLT stylesheet, but it would be extremely helpful if the command would return a non-zero exit code if a test fails. This allows me to better integrate JMeter in our test automation framework. Thanks in advance, Rico. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger - 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] -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger - 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] -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Value in View Results in Table
I added a View Results in Table in my test plan. I use JavaRequest and i can set values in SampleResult by java code. 1) I have not understand which SampleResult properties must be use to be set: - Sample Time(ms) - Bytes (what is this???) 2) if i want add columns at the table is possible ? In whitch way? regards FULVIO - Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
Re: User Manual 18.3 Listeners Mailer Visualizer not found in version 2.2
If I may I would like to reply to this thread with a question I have related to the mail.jar and activation.jar. I don't fully understand these items so I guess my questions are: 1. Do I place these files in the JMeter directory (if so, where?) or do they go on the Apache server? 2. Exactly what do these files do? What is their purpose in a WebService(SOAP) request? I read the users guide that came with Jmeter but I'm either on a sugar crash or just plain not understanding what they say about it. Thanks! Steve Raghavendra Kristam wrote: Hi, My Requirement is : Listening to Tomcat server port periodically and send out notification when there is no response on the port. I installed Apache JMeter 2.2 (windows) and to my wonder i don't found the Listeners Mailer Visualizer. I feel that this Listener is suitable for my requirement.But this option is available in version 2.2 From User Manual 18.3 Listeners Mailer Visualizer Please let me know how to handle this scenario. In which version can i use this feature. Thanks, Raghavendra. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/User-Manual-18.3-Listeners-%3E%3E-Mailer-Visualizer--not-found-in-version-2.2-tf2879313.html#a13048586 Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]