Reg: Requests in Scheduler and Loop Counts
Hello Friends, Currently I am executing the JMeter Scripts in two different modes... Suppose in my Test Plan there are 3 Thread Groups. 1. No. Of Threads/user= 1 (choosing the different login credentials from the provided CSV file) with Loop count is of 10. 2. No. Of Threads/user= 1 (randomly choosing the different login credentials from the provided CSV file) with scheduler configured for 12 hours. Please correct me in following... When we execute our scripts with loop count; with no time barrier, JMeter will send each and every thread request present in all Thread Groups and wait for the Reply/response for pass or fail results from the server and move ahead with following loops till the count reaches. But when we go with scheduler; does JMeter sends each and every requests in equal manner.. I mean to say... TG1 +1 request +2 request TG2 +3 request +4 request ... Suppose scheduler configured for 10 mins. Then does JMeter send equal number of all above 4 requests in 10 mins. Because what I observed is JMeter shows all different numbers for each and every thread request present under that Thread Group. Please advice and correct me on above. Thanks and Regards, Shirish G.
Strategy to isolate HTML with Xpath and the use regexes
Hi, I was wondering if it is a good strategy to isolate some container (div) section of an HTML page and then extract values from some links there using regexes ? Hans - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: void functions show up as failures unless failed for real
On 11 August 2011 15:42, moondance oziet...@yahoo.com wrote: Hi, I have a function that looks like this : void logout(token) when I call it via jmeter it marks it as failed(in result tree, Aggregate results) it only comes back as success if something is returned(failure) is there anyway to mark as success if no response came back ? What version of JMeter are you using? What sampler are you using? Thanks Oren -- View this message in context: http://jmeter.512774.n5.nabble.com/void-functions-show-up-as-failures-unless-failed-for-real-tp4689734p4689734.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: Reg: HTTP Request and HTTP Header Manager to execute these scripts on different Application servers
Lets see if I can include jmx files here. If not I can post these in my github repository. Please find enclosed two JMX tests (Assuming something doesn't eat them between here and there.) samplevars.jmx contains two user defined variable elements, one of which is disabled. You can switch which one is disabled to get a different environment. testSampleVars.jmx contains a simple demonstration with the jmeter 2.4 include controller. Note that if you use earlier versions of jmeter your mileage may vary. I'm not sure where the include controller looks for its files by default, but it'll probably tell you when you try to run this test. When you change something in samplevars.jmx, you need to save BOTH samplevar.jmx and testSampleVars.jmx, so that the include controller refreshes its tree correctly. If your mail system or the forum software ate the tests let me know and I'll post them on github. I included a bit of bonus code -- a groovy sampler that reads a properties file in from a file. I use this in Hudson integration -- Hudson puts parameters in the environment, which jmeter doesn't seem to be particularly good at reading. So before I launch Hudson jobs (With ant,) I echo the environment into a file with env environment.props (Or something like that, forget the filename I used but it's in the code.) Then I read it in with this sampler. For some config elements this doesn't work so well, because you're defining the variables at test run time, but the config elements need to have access to the variables earlier. For those variables, I send them to jmeter as properties. I'm not sure where the include controller looks for its files by default, but it'll probably tell you when you try to run this test. When you change something in samplevars.jmx, you need to save BOTH samplevar.jmx and testSampleVars.jmx, so that the include controller refreshes its tree correctly. -- Bruce Ide flyingrhenqu...@gmail.com - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Strategy to isolate HTML with Xpath and the use regexes
Hi sure. If using 2.4 use JMeter Variable in the second extractor , if using versions earlier than that use the __regex function for the second pass regards deepak On Fri, Aug 12, 2011 at 6:06 AM, Hans C. Poo h...@welinux.cl wrote: Hi, I was wondering if it is a good strategy to isolate some container (div) section of an HTML page and then extract values from some links there using regexes ? Hans - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Intermediate after tidy cleanup html file
Hi, After some investigation (and help of Deepak), i'v realized that i need to access the intermediate HTML (xhtml) file generated after tidy is applied internally by jmeter. To my understanding is to this file which is in some cases different from the original (tidy may have removed some markup in order to have a valid document), that i should test my XPath expressions. Thanks Hans - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
How can i extract from the same link matched two variables
Hi, I'm matching with a Regex Post Processor an URL. In this URL there is an ID and a NAME, i need to extract both values from the same URL matched. If i use two consecutive regexes post processors to do the capture, each one capture on a different url from the matched set, making the ID and name to be inconsistent. How can i extract from the same link matched two variables ? Thanks Hans - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How can i extract from the same link matched two variables
I'm matching with a Regex Post Processor an URL. In this URL there is an ID and a NAME, i need to extract both values from the same URL matched. Possible using regex groups say your regex is like id=(someconditionthatmatchesid) name=(someconditionthatmatchesname) = The round brackets are important here In template say you have $1$~$2$ then the matching value will look like id~name when you say ${variableName_index} If you want just the ID you use ${variableName_INDEX_g1} and for name you use ${variableName_INDEX_g2} where Index is the match number(Assuming you have multiple results). if you just have a single result the ${variableName_g1} and ${variableName_g2}. g1 corresponds to the first matching group which in the example above is the id. regards deepak On Fri, Aug 12, 2011 at 2:03 PM, Hans C. Poo h...@welinux.cl wrote: Hi, I'm matching with a Regex Post Processor an URL. In this URL there is an ID and a NAME, i need to extract both values from the same URL matched. If i use two consecutive regexes post processors to do the capture, each one capture on a different url from the matched set, making the ID and name to be inconsistent. How can i extract from the same link matched two variables ? Thanks Hans - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org