Re: Saving the reply in Jmeter
Try this its works fine for me :) Reference Name: keyname Regexp: a:Key(.+?)/a:Key Template: $1$ Match No: -1 Default Value: I am the default value Reference Name: keyvalue Regexp: a:Value(.+?)/a:Value Template: $1$ Match No: -1 Default Value: I am the default value On Thu, Aug 11, 2011 at 2:49 AM, Oliver Lloyd oliver_ll...@hotmail.comwrote: Use a http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor regular expression extractor For the email: Reference Name: foobar Regexp: a:KeyValueOfstringguida:Key(.+?) Template: $1$ Match No: -1 Default Value: I am the default value This gives you: ${foobar_matchNr} = the count of matches ${foobar_1} = the first match ${foobar_5) = the fifth match, etc. ${foobar} = I am the default value Use these at your leisure. For the Value string: Go figure. -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4687414.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 -- Regards *RAJIV http://testeverythingrajiv.com/ KUMARhttp://rajivkumarnandvani.wordpress.com/ NANDVANI http://testeverythingqtp.blogspot.com* http://rajivkumarnandvani.wordpress.com http://testeverythingqtp.blogspot.com/
Re: Saving the reply in Jmeter
Thanks Raj, where would we be without you. -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689158.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Re: Saving the reply in Jmeter
:) lolz i alws be here in mail :) On , Oliver Lloyd oliver_ll...@hotmail.com wrote: Thanks Raj, where would we be without you. -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689158.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Re: Saving the reply in Jmeter
Why are you all using Match No.: -1 ? On Thu, Aug 11, 2011 at 2:48 PM, rajivkumarnandv...@gmail.com wrote: :) lolz i alws be here in mail :) On , Oliver Lloyd oliver_ll...@hotmail.com wrote: Thanks Raj, where would we be without you. -- View this message in context: http://jmeter.512774.n5.** nabble.com/Saving-the-reply-**in-Jmeter-tp4687066p4689158.**htmlhttp://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689158.html Sent from the JMeter - User mailing list archive at Nabble.com. --**--**- To unsubscribe, e-mail: jmeter-user-unsubscribe@**jakarta.apache.orgjmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.**apache.orgjmeter-user-h...@jakarta.apache.org
RE: Re: Saving the reply in Jmeter
Match No = -1 will match ALL occurrences Example: say your regex is code(.+?)/code and Match no is -1. If there are more than one occurrences of code this will match all of them, like ${EXTRACTED_CODE_1}, ${EXTRACTED_CODE_2}, ${EXTRACTED_CODE_3} etc. If there are 3 matches, than you will also get a variable like ${EXTRACTED_CODE_matchnr} with the value of 3, which is useful if you want to Loop through all of them. In the same example, if you would use Match no. = 2, this would match only the 2nd occurrence. Match no = 0 would match a random item. Hope this helps, Nermin -Original Message- From: Adrian Speteanu [mailto:asp.ad...@gmail.com] Sent: 11. kolovoz 2011 14:29 To: JMeter Users List Subject: Re: Re: Saving the reply in Jmeter Why are you all using Match No.: -1 ? On Thu, Aug 11, 2011 at 2:48 PM, rajivkumarnandv...@gmail.com wrote: :) lolz i alws be here in mail :) On , Oliver Lloyd oliver_ll...@hotmail.com wrote: Thanks Raj, where would we be without you. -- View this message in context: http://jmeter.512774.n5.** nabble.com/Saving-the-reply-**in-Jmeter-tp4687066p4689158.**htmlhttp://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689158.html Sent from the JMeter - User mailing list archive at Nabble.com. --**--**- To unsubscribe, e-mail: jmeter-user-unsubscribe@**jakarta.apache.orgjmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.**apache.orgjmeter-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: Saving the reply in Jmeter
So I did as you said for the value: Reference name : keyvalue regular expresion : a:Value(.+?)/a:Value Template: $1$ match No. : -1 Default value :5000 The I added a Preprocessor beanShell : StringBuilder sb = new StringBuilder(); Random generator = new Random(); int count = 5; for (int i = 1; i count; i = i + 1) { String variableName = keyvalue_+ i; sb.append(\t\tarr:guid); sb.append(vars.get(variableName)); sb.append(/arr:guid\n); } System.out.println(sb.toString()); vars.put(Accounts,sb.toString()); then in the WebService(SOAP) request Id this : ${Accounts} but when I look at the soap request it has this : arr:guidnull/arr:guid arr:guidnull/arr:guid arr:guidnull/arr:guid arr:guidnull/arr:guid any ideas what I am doing wrong ? Thanks Oren -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689452.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
Reg: HTTP Request and HTTP Header Manager to execute these scripts on different Application servers
Hello Friends, As of now I am currently working with a Product Development team which works in 5 different continents and has separate Application Servers let’s say A, B, C, D and E (all these servers are synchronized means shares the same BUILDS/SOFTWARE'S and all . While working with Performance Testing, I have created a Test Plan/JMX script by recording it on the A server. I used various features of the JMeter like CSV, Reg Ex and Listeners. Now our requirement is to run these scripts on remaining different servers to reproduce the issues which I encountered and reported with the Application server “A”. I found one solution as to remove the *HTTP Header Manager* present under the Http Requests, after updating the “HTTP Request Defaults -- Server name /IP” variable value to the desired Server Address; I found that some thread requests are getting executed successfully and some or not. Please advise if there is any other way out to do the required. Thanks and regards, Shirish Ganjewar
Re: Saving the reply in Jmeter
When I was working with beanShell listener I had an issue when it was alone in the If controller. I don't remember what was exactly the problem if I remeber correctly there was something with nulls too. So I have to add debug sampler into If controller then BeanShell would work correct. No idea why. But maybe you have something of this sort. sb.append(vars.get(variableName)); are you sure this variable is known to your shell? why it generates nulls On Thu, Aug 11, 2011 at 4:04 PM, moondance oziet...@yahoo.com wrote: So I did as you said for the value: Reference name : keyvalue regular expresion : a:Value(.+?)/a:Value Template: $1$ match No. : -1 Default value :5000 The I added a Preprocessor beanShell : StringBuilder sb = new StringBuilder(); Random generator = new Random(); int count = 5; for (int i = 1; i count; i = i + 1) { String variableName = keyvalue_+ i; sb.append(\t\tarr:guid); sb.append(vars.get(variableName)); sb.append(/arr:guid\n); } System.out.println(sb.toString()); vars.put(Accounts,sb.toString()); then in the WebService(SOAP) request Id this : ${Accounts} but when I look at the soap request it has this : arr:guidnull/arr:guid arr:guidnull/arr:guid arr:guidnull/arr:guid arr:guidnull/arr:guid any ideas what I am doing wrong ? Thanks Oren -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689452.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Saving the reply in Jmeter
Well I thought that was the whole point of the regular expression to create those variables do I need to create the keyvalue variable in the User Defined Variables section ? Konstantin S. wrote: When I was working with beanShell listener I had an issue when it was alone in the If controller. I don't remember what was exactly the problem if I remeber correctly there was something with nulls too. So I have to add debug sampler into If controller then BeanShell would work correct. No idea why. But maybe you have something of this sort. sb.append(vars.get(variableName)); are you sure this variable is known to your shell? why it generates nulls -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689521.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
RE: HTTP Request and HTTP Header Manager to execute these scripts on different Application servers
Shirish, Maybe you can put your test logic under For Each controller and specify different environments in User Defined Variables, in some cases this works and it's very handy. See http://jakarta.apache.org/jmeter/usermanual/component_reference.html#ForEach _Controller Regards, Nermin -Original Message- From: Shirish [mailto:shirish.ganje...@gmail.com] Sent: 11. kolovoz 2011 15:15 To: JMeter Users List Subject: Reg: HTTP Request and HTTP Header Manager to execute these scripts on different Application servers Hello Friends, As of now I am currently working with a Product Development team which works in 5 different continents and has separate Application Servers let's say A, B, C, D and E (all these servers are synchronized means shares the same BUILDS/SOFTWARE'S and all . While working with Performance Testing, I have created a Test Plan/JMX script by recording it on the A server. I used various features of the JMeter like CSV, Reg Ex and Listeners. Now our requirement is to run these scripts on remaining different servers to reproduce the issues which I encountered and reported with the Application server A. I found one solution as to remove the *HTTP Header Manager* present under the Http Requests, after updating the HTTP Request Defaults -- Server name /IP variable value to the desired Server Address; I found that some thread requests are getting executed successfully and some or not. Please advise if there is any other way out to do the required. Thanks and regards, Shirish Ganjewar - 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
I run into this sort of thing a lot at work. What I ended up doing was making a variables.jmx file with all those variables for the different environments defined in 4 different user defined variables config elements. Then I just enable only the config element I want to use for a specific environment. I include this in my test with an include controller. You could do something like this and distribute your file around to the various other locations that need to run your test and that would let them customize servers and database connections and things like that to their specific environment. You could probably set it up to pull its data from java properties files too. -- Bruce Ide flyingrhenqu...@gmail.com
Re: Saving the reply in Jmeter
If you just want a random match there is a substantially easier way to do this. It's right there in the original regular expression extractor (even written on the form itself) just select 0 for the Match No and you will automatically get a random Value as the result. If you also want the count, well, you could just have two regexp extractors, that'd be pretty simple. But it seems to me you actually only want to pick a random value from the list and use it later in your script, right? -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689565.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Saving the reply in Jmeter
I'd drop in a debug sampler before your beanshell sampler and just make sure your regex has extracted properly. You don't need to create the keyvals if the regex has done its job correctly, but I'd guess it didn't actually extract anything. IIRC the regex processor will not create an array if you specify a default value like that and it assigns the default. It'll put 5000 in keyval, not keyval_1. -- Bruce Ide flyingrhenqu...@gmail.com
Re: Re: Saving the reply in Jmeter
On Thu, Aug 11, 2011 at 3:43 PM, Nermin Caluk ner...@atlantbh.com wrote: Match No = -1 will match ALL occurrences Example: say your regex is code(.+?)/code and Match no is -1. If there are more than one occurrences of code this will match all of them, like ${EXTRACTED_CODE_1}, ${EXTRACTED_CODE_2}, ${EXTRACTED_CODE_3} etc. If there are 3 matches, than you will also get a variable like ${EXTRACTED_CODE_matchnr} with the value of 3, which is useful if you want to Loop through all of them. In the same example, if you would use Match no. = 2, this would match only the 2nd occurrence. Match no = 0 would match a random item. Has its advantages, like the regExVariable_matchNr, but it complicates things in the sense that you have to know what group to reference after - I think its still best practice to avoid getting all occurrences in most situations (because of memory, CPU), but its useful to know this is possible. Thanks all for solving this issue, last time I needed something like the OP needed, I had to use the XPath extractor instead. Hope this helps, Nermin -Original Message- From: Adrian Speteanu [mailto:asp.ad...@gmail.com] Sent: 11. kolovoz 2011 14:29 To: JMeter Users List Subject: Re: Re: Saving the reply in Jmeter Why are you all using Match No.: -1 ? On Thu, Aug 11, 2011 at 2:48 PM, rajivkumarnandv...@gmail.com wrote: :) lolz i alws be here in mail :) On , Oliver Lloyd oliver_ll...@hotmail.com wrote: Thanks Raj, where would we be without you. -- View this message in context: http://jmeter.512774.n5.** nabble.com/Saving-the-reply-**in-Jmeter-tp4687066p4689158.**html http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689158.html Sent from the JMeter - User mailing list archive at Nabble.com. --**--**- To unsubscribe, e-mail: jmeter-user-unsubscribe@**jakarta.apache.org jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.**apache.org 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: Saving the reply in Jmeter
so here is the result : Arguments.arguments=[, UserToken=, UserName=rvuser, Password=a123456, UserNameCreate=, LookupResponse1=, ExternalToken=, UserId=, ActivationToken=, LoginId1=, LoginId2=, LoginId3=, LoginId4=, LoginId5=, LoginId6=, LoginId7=, LoginId8=, LoginId9=, LoginId10=, LoginToken1=, LoginToken2=, LoginToken3=, LoginToken4=, LoginToken5=, LoginToken6=, LoginToken7=, LoginToken8=, LoginToken9=, LoginToken10=, AdminToken=] So it looks like it didn't extract the data any ideas ? -- View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689718.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
void functions show up as failures unless failed for real
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 ? 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
HTTP Cache Manager
Hi, I have a question about the HTTP Cache Manager. In a loop I have an HTTP sampler that executes this: GET https://x.y.z/css/main.css After the first request, I get: Response code: 304 Response message: Not Modified Though, in my browser the HTTP request is never sent and I presume it reads it straight from disk. Is there a way to emulate this in JMeter? I tried the options Use Cache-Control/Expires header when processing GET request in the HTTP Cache Manager but it does not seem to make a difference. I am using JMeter 2.4.2. Thank you, Andrej - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Saving the reply in Jmeter
Using regexps seems to always boil down to debugging a regexp expression to have it give you what you want. First of all, check the response of whatever the regexp is attached to, in order to verify that it is, in fact, returning what you think you're looking for. If it is, then I usually find it helpful to start paring stuff off my regular expression until it works. You never know what the regexp isn't going to like. Set it up to match promiscuously, perhaps just (.*) to start and then start adding things until it breaks. Then look at why it's breaking on what it is. I always prefer the xpath extractor over the regexp extractor when I can use it, as it takes much less fiddling to make it work. Usually with the xpath extractor I just need to remember to click use tidy and I'm good. -- Bruce Ide flyingrhenqu...@gmail.com
Re: Saving the reply in Jmeter
On 11 August 2011 16:26, Bruce Ide flyingrhenqu...@gmail.com wrote: Using regexps seems to always boil down to debugging a regexp expression to have it give you what you want. First of all, check the response of whatever the regexp is attached to, in order to verify that it is, in fact, returning what you think you're looking for. If it is, then I usually find it helpful to start paring stuff off my regular expression until it works. You never know what the regexp isn't going to like. Set it up to match promiscuously, perhaps just (.*) to start and then start adding things until it breaks. Then look at why it's breaking on what it is. I always prefer the xpath extractor over the regexp extractor when I can use it, as it takes much less fiddling to make it work. Usually with the xpath extractor I just need to remember to click use tidy and I'm good. JMeter 2.4 has a regex tester built into the Tree View Listener. -- 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: Reg: HTTP Request and HTTP Header Manager to execute these scripts on different Application servers
hi usually what you need to vary the IP address and port , potentially also the url. You have to paremeterise all those variables so that you can switch between them easily http://theworkaholic.blogspot.com/2009/06/testing-multiple-environments-with.html. regards deepak On Thu, Aug 11, 2011 at 6:14 AM, Shirish shirish.ganje...@gmail.com wrote: Hello Friends, As of now I am currently working with a Product Development team which works in 5 different continents and has separate Application Servers let’s say A, B, C, D and E (all these servers are synchronized means shares the same BUILDS/SOFTWARE'S and all . While working with Performance Testing, I have created a Test Plan/JMX script by recording it on the A server. I used various features of the JMeter like CSV, Reg Ex and Listeners. Now our requirement is to run these scripts on remaining different servers to reproduce the issues which I encountered and reported with the Application server “A”. I found one solution as to remove the *HTTP Header Manager* present under the Http Requests, after updating the “HTTP Request Defaults -- Server name /IP” variable value to the desired Server Address; I found that some thread requests are getting executed successfully and some or not. Please advise if there is any other way out to do the required. Thanks and regards, Shirish Ganjewar
RE: Script execution to Uplaod a documnet through Jmeter.
Thanks Nermin, for the info. Finally i am able resolve that issue. The issue was with the file path. -- View this message in context: http://jmeter.512774.n5.nabble.com/Script-execution-to-Uplaod-a-documnet-through-Jmeter-tp4635154p4690307.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
Jmeter script is executing successfully, but the transaction is not happening.
Hey I have recorded 2 scripts through Badboy tool, while executing the script through Jmeter, the scripts runs successfully and shows all in green, but actually the traction is not happening. Detailed Scenario: Scenario 1: The script is to do the registration in a web application to get a user ID and Password, to do the log in to the application. The application is a net Application. Problem: The script has some dynamic parameters (Viewstate, previous page, Event Validation), so I have done Correlation, by using regular expression extractor. I have extracted the viewstate of the current page from the response and passed the viewstate info as a parameter for the next page. Done the same for all 3 dynamic parameters. While executing, in the response, it displayed as the viewstate info, is invalid or corrupted. or in some places it displayed as: 500:Internal server error, Viewstate is not validated by Mac. Help: Might be while doing the parameterization, i am wrong, Please guide me to resolve the issue. Scenario 2: To raise a payment request, by providing the details (request name, docs, etc.). Problem: I have done the parameterization of all the dynamic variables for correlation,and nowhere the errors like, viewstate validation failed or invalid state info are coming and the the script is executing with showing all in green color. But after the execution, when verified whether the request has raised in the application, found that the transaction didn't happen and the request is not present in the application. Help: Could you please anybody help me, how to resolve this issue. Please let me know is there any other dynamic variable i need to do the correlation. Info: one parameter named: rmsbh is passing for every transaction, but not sure how to handle that parameter. Its urgent, any help is appreciated. -- View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-script-is-executing-successfully-but-the-transaction-is-not-happening-tp4690404p4690404.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690417p4690417.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690425p4690425.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690426p4690426.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690422p4690422.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690424p4690424.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690423p4690423.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690427p4690427.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
Meaning of the colors in the recorded scripts through Badboy.
Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690429p4690429.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Meaning of the colors in the recorded scripts through Badboy.
Questions on Badboy should be addressed to the appropriate Badboy forum. On 11 August 2011 19:12, Hruda hrud...@gmail.com wrote: Hey while recording the scripts through Badboy tool, for Jmeter, some are shown in Blue color and some are displayed in gray color. Is there any specific meaning of those colors? -- View this message in context: http://jmeter.512774.n5.nabble.com/Meaning-of-the-colors-in-the-recorded-scripts-through-Badboy-tp4690429p4690429.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
XPath assertion and extraction don't work as expected
Hi, I'm new to Jmeter, i need to extract information from an URL inside a div, i tried using regular expressions but it's not feasible because there are many similar URLs like the one i need, the only distinghisin but the ones i want to extract are located in a specific place in the page, to my knowledge Xpath could help me in order to point directly in the HTML nodes hiearachy, but the expressions in the examples doesn't work. I try to match: div id=menuVerticalInterior with //div[id=menuVerticalInterior] But the assertion fails, is there something wrong with it ? or may be other better ways to do the job ? Are there some requirements with respecto to HTML validation or well formedness ? I'm using jakarta-jmeter-2.4. Thanks Hans Poo - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: XPath assertion and extraction don't work as expected
//div[@id=menuVerticalInterior]/text() Also make sure Use tidy is checked. add a debug sampler and a view results tree listener to check your variable regards deepak On Thu, Aug 11, 2011 at 1:49 PM, Hans C. Poo h...@welinux.cl wrote: Hi, I'm new to Jmeter, i need to extract information from an URL inside a div, i tried using regular expressions but it's not feasible because there are many similar URLs like the one i need, the only distinghisin but the ones i want to extract are located in a specific place in the page, to my knowledge Xpath could help me in order to point directly in the HTML nodes hiearachy, but the expressions in the examples doesn't work. I try to match: div id=menuVerticalInterior with //div[id=menuVerticalInterior] But the assertion fails, is there something wrong with it ? or may be other better ways to do the job ? Are there some requirements with respecto to HTML validation or well formedness ? I'm using jakarta-jmeter-2.4. Thanks Hans Poo - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: XPath assertion and extraction don't work as expected
Deepak, Hi, i've used the XPath expression in you email, but the XPath assertion still doesn't match, the results in the report tree shows tidy errors in the assertion, ¿ it may be the cause it doesn't work ? Thanks Hans Hans Poo, Welinux S.A. Bombero Ossa #1010, oficina 800, +56-2-3729770, Movil: +56-9-3199305 Santiago, Chile - Mensaje original - De: Deepak Shetty shet...@gmail.com Para: JMeter Users List jmeter-user@jakarta.apache.org Enviados: Jueves, 11 de Agosto 2011 17:00:40 Asunto: Re: XPath assertion and extraction don't work as expected //div[@id=menuVerticalInterior]/text() Also make sure Use tidy is checked. add a debug sampler and a view results tree listener to check your variable regards deepak On Thu, Aug 11, 2011 at 1:49 PM, Hans C. Poo h...@welinux.cl wrote: Hi, I'm new to Jmeter, i need to extract information from an URL inside a div, i tried using regular expressions but it's not feasible because there are many similar URLs like the one i need, the only distinghisin but the ones i want to extract are located in a specific place in the page, to my knowledge Xpath could help me in order to point directly in the HTML nodes hiearachy, but the expressions in the examples doesn't work. I try to match: div id=menuVerticalInterior with //div[id=menuVerticalInterior] But the assertion fails, is there something wrong with it ? or may be other better ways to do the job ? Are there some requirements with respecto to HTML validation or well formedness ? I'm using jakarta-jmeter-2.4. Thanks Hans Poo - 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: XPath assertion and extraction don't work as expected
can you upload the HTML and send us the link? On Thu, Aug 11, 2011 at 2:44 PM, Hans C. Poo h...@welinux.cl wrote: Deepak, Hi, i've used the XPath expression in you email, but the XPath assertion still doesn't match, the results in the report tree shows tidy errors in the assertion, ¿ it may be the cause it doesn't work ? Thanks Hans Hans Poo, Welinux S.A. Bombero Ossa #1010, oficina 800, +56-2-3729770, Movil: +56-9-3199305 Santiago, Chile - Mensaje original - De: Deepak Shetty shet...@gmail.com Para: JMeter Users List jmeter-user@jakarta.apache.org Enviados: Jueves, 11 de Agosto 2011 17:00:40 Asunto: Re: XPath assertion and extraction don't work as expected //div[@id=menuVerticalInterior]/text() Also make sure Use tidy is checked. add a debug sampler and a view results tree listener to check your variable regards deepak On Thu, Aug 11, 2011 at 1:49 PM, Hans C. Poo h...@welinux.cl wrote: Hi, I'm new to Jmeter, i need to extract information from an URL inside a div, i tried using regular expressions but it's not feasible because there are many similar URLs like the one i need, the only distinghisin but the ones i want to extract are located in a specific place in the page, to my knowledge Xpath could help me in order to point directly in the HTML nodes hiearachy, but the expressions in the examples doesn't work. I try to match: div id=menuVerticalInterior with //div[id=menuVerticalInterior] But the assertion fails, is there something wrong with it ? or may be other better ways to do the job ? Are there some requirements with respecto to HTML validation or well formedness ? I'm using jakarta-jmeter-2.4. Thanks Hans Poo - 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: XPath assertion and extraction don't work as expected
I've always wondered why use tidy isn't on by default. My Xpath usually looks good to me, but it doesn't ever actually work unless I actually select that option. It's like having an option, Make this component actually work that is disabled by default. -- Bruce Ide flyingrhenqu...@gmail.com