Re: While controller with CSV Data Set Config
Make the following changes. In Thread Group -> set Loop Count: Forever In CSV Data Set Config Recycle on EOF : False Stop thread on EOF : True -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/While-controller-with-CSV-Data-Set-Config-tp5723429p5723431.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Socket Exception: Connection reset on ADFS server
Hi, I am getting the following exception while trying to connect through ADFS java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:189) at java.net.SocketInputStream.read(SocketInputStream.java:121) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954) The authentication mechanism used in ADFS is form based. Not sure if the error is occurring because of some missing certificate. Any inputs here? Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Socket-Exception-Connection-reset-on-ADFS-server-tp5723426.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
JMeter response header showing encoded values
Hi, JMeter response header shows encoded values. Is there a way to get decoded values from the response directly as the js functions decodeURIComponent, decodeURI, unescape are not always reliable. Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-response-header-showing-encoded-values-tp5723396.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Issue with kerberos
Sorry here. The previous update was because we had our own custom version of kerberos configured. By setting options on the JVM command line with -D, I was able to run the program with Kerberos. Thanks, Waseem. -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-kerberos-tp5723361p5723375.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Issue with kerberos
Felix, Removing the "debug=true" helped for that issue. Getting a new error now jmeter.protocol.http.control.KerberosManager: Could not log in user Test javax.security.auth.login.LoginException: Pre-authentication information was invalid (24) at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:804) at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-kerberos-tp5723361p5723374.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Issue with kerberos
I dont see that there is another jaas.conf file. These are the properties set in 'systems.properties' file /java.security.krb5.conf=krb5.conf java.security.auth.login.config=jaas.conf/ -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-kerberos-tp5723361p5723367.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Issue with kerberos
Felix, My jaas.conf file looks like this JMeter { com.sun.security.auth.module.Krb5LoginModule required doNotPrompt=false useKeyTab=false storeKey=false; debug=true }; Tried removing the semicolon after 'storeKey=false' but that didnt seems to help here. -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-kerberos-tp5723361p5723365.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Issue with kerberos
Adding the message from the HTTP Request as well Thread Name: Thread Group 1-1 Sample Start: 2015-10-21 12:39:21 IST Load time: 678 Connect Time: 259 Latency: 678 Size in bytes: 141 Headers size in bytes: 141 Body size in bytes: 0 Sample Count: 1 Error Count: 1 Data type ("text"|"bin"|""): Response code: 401 Response message: Unauthorized Response headers: HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 WWW-Authenticate: Negotiate Content-Length: 0 Date: Wed, 21 Oct 2015 07:09:21 GMT HTTPSampleResult fields: ContentType: DataEncoding: null -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-kerberos-tp5723361p5723362.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Issue with kerberos
Hi, Not sure where I am going wrong here. I have a HTTP Authorization Manager with the following details Username : Test Password : Pass Domain : Test Realm : Test.com Mechanism : Kerberos and have configured the krb5.conf and jass.conf file as per the domain requirements. I get the following error while trying to authenticate a user /2015/10/21 12:26:28 WARN - jmeter.protocol.http.control.KerberosManager: Execution of getting subject for Test failed java.util.concurrent.ExecutionException: java.lang.SecurityException: java.io.IOException: Configuration Error: Line 10: expected [controlFlag] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.jmeter.protocol.http.control.KerberosManager.getSubjectForUser(KerberosManager.java:92) at org.apache.jmeter.protocol.http.control.AuthManager.getSubjectForUrl(AuthManager.java:278) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:501) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:330) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1144) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1133) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.SecurityException: java.io.IOException: Configuration Error: Line 10: expected [controlFlag] at sun.security.provider.ConfigFile$Spi.(ConfigFile.java:137) at sun.security.provider.ConfigFile.(ConfigFile.java:102) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at java.lang.Class.newInstance(Class.java:442) at javax.security.auth.login.Configuration$2.run(Configuration.java:255) at javax.security.auth.login.Configuration$2.run(Configuration.java:247) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:246) at javax.security.auth.login.LoginContext$1.run(LoginContext.java:245) at javax.security.auth.login.LoginContext$1.run(LoginContext.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.init(LoginContext.java:243) at javax.security.auth.login.LoginContext.(LoginContext.java:417) at org.apache.jmeter.protocol.http.control.KerberosManager$1.call(KerberosManager.java:71) at org.apache.jmeter.protocol.http.control.KerberosManager$1.call(KerberosManager.java:65) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.jmeter.protocol.http.control.KerberosManager.getSubjectForUser(KerberosManager.java:89) ... 9 more Caused by: java.io.IOException: Configuration Error: Line 10: expected [controlFlag] at sun.security.provider.ConfigFile$Spi.ioException(ConfigFile.java:666) at sun.security.provider.ConfigFile$Spi.match(ConfigFile.java:572) at sun.security.provider.ConfigFile$Spi.parseLoginEntry(ConfigFile.java:454) at sun.security.provider.ConfigFile$Spi.readConfig(ConfigFile.java:427) at sun.security.provider.ConfigFile$Spi.init(ConfigFile.java:329) at sun.security.provider.ConfigFile$Spi.init(ConfigFile.java:271) at sun.security.provider.ConfigFile$Spi.(ConfigFile.java:135) ... 28 more/ Can someone help me out here. Thanks in advance. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Issue-with-kerberos-tp5723361.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: title
In your thread group, just use a Controller -> Once Only Controller and have your beanshell sampler inside it which prints "Starting of the first thread group". This will solve your purpose. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/title-tp5722247p5722249.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Embedded resources getting downloaded sequentially
Thanks for all the reply guys. But the problem is a bit more complicated. The site behaves in such a way that only resources like .css and others get downloaded concurrently but .js is sequential. So I am not sure if there is a straight forward way of doing this part. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Embedded-resources-getting-downloaded-sequentially-tp5722185p5722244.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Embedded resources getting downloaded sequentially
Hi experts, I have an issue with embedded resources. I am trying to hit a URL with embedded resources and seems like all the resources get downloaded sequentially. But as far as the implementation is concerned from a browser, apart from .js script all other resources get downloaded parallel (6 at a time). Any idea how this behavior could be simulated? Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Embedded-resources-getting-downloaded-sequentially-tp5722185.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: HTTP Request Error
The error clearly says that you have entered the URL as http://[http://www.irctc.co.in]/ whereas it should be a simplehttp://www.irctc.co.in/ Regards, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/HTTP-Request-Error-tp5717029p5717059.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to do DB load test 10K threads using jmeter
You have an option of adding a synchronization timer where you can enter the no. of threads to run concurrently. In your case 10k. This will make sure all the 10k request are fired together. Regards, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-do-DB-load-test-10K-threads-using-jmeter-tp5716919p5717058.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: I can not open anymore my test file
Sorry to say but your file has been corrupted and you may need to re create teh entire file once again or restore from a previous version (if you have back up of your files) -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/I-can-not-open-anymore-my-test-file-tp5717001p5717035.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: regex extractor help
use a simple regex like document.getElementById('ACSF').value='([^']*)'//--> This shall solve your problem -- View this message in context: http://jmeter.512774.n5.nabble.com/regex-extractor-help-tp5717015p5717034.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: 100 Virtual user creation to get real treaffic
If you are specifically looking for real world load creation, make sure you distribute the load from few other machines. This may be more realistic than running the entire load from a single machine. -- View this message in context: http://jmeter.512774.n5.nabble.com/100-Virtual-user-creation-to-get-real-treaffic-tp5717018p5717033.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Regular Expression Extractor....not giving proper result....
Did u try it with a debug sampler or a BSF sampler printing the value of VariableName_matchNr? -- View this message in context: http://jmeter.512774.n5.nabble.com/Regular-Expression-Extractor-not-giving-proper-result-tp5716728p5716794.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: rendzevous point in jmeter?
Just add the timer as a post processor of you main sampler/thread group. This shall do it. The no. of threads here will form the concurrency. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/rendzevous-point-in-jmeter-tp5716780p5716793.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: variable output filenames
You cannot have variable names for an output file. You need a hard coded value. -- View this message in context: http://jmeter.512774.n5.nabble.com/variable-output-filenames-tp5716778p5716792.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Load web site with concurrent users using JMeter
Hi, You are supposed to use "Synchronization Timer" to achieve this. Add it as a post processor and you'll see the request being sent concurrently. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Load-web-site-with-concurrent-users-using-JMeter-tp5716788p5716791.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Can any one suggest How to increment a variable...in jmeter
Just add a BSF sampler and declare the value. Keep incrementing the value by 1 everytime and use vars.put("VariableName",value) in it so that it can be used across the thread group -- View this message in context: http://jmeter.512774.n5.nabble.com/Can-any-one-suggest-How-to-increment-a-variable-in-jmeter-tp5716766p5716773.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Recording not happening in jmeter using our private network of company
Mukesh you need to set up a proxy for the recording to work. There is no other option. You can do this in IE by following these steps. Click Settings -> Internet Options -> Connections -> LAN settings -> Check the box use a proxy server for your LAN. Hope this solves your problem. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Recording-not-happening-in-jmeter-using-our-private-network-of-company-tp5716721p5716756.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: JDBC Sampler - Running out of memory
I am assuming your client has limited RAM because of which you are not able to increase the heap size of JMeter. In such case why dont you try distributing the load into different machines which will take care of the memory problem. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/JDBC-Sampler-Running-out-of-memory-tp5716731p5716755.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: JDBC request > empty set, how to not show as success in "View Results Tree"
you can just use this in a post processor for the sampler. "prev.setSuccessful(false);" -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/JDBC-request-empty-set-how-to-not-show-as-success-in-View-Results-Tree-tp5716610p5716754.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Need help to read xls file form JMETER
JMeter does not support xls file as of now. -- View this message in context: http://jmeter.512774.n5.nabble.com/Need-help-to-read-xls-file-form-JMETER-tp5716548p5716551.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
RE: NTLM Authentification
I think your server runs only on Kerberos authentication and I am assuming its a Sharepoint site(the newer version runs on kerberos). Right now JMeter does not support kerberos authentication. -- View this message in context: http://jmeter.512774.n5.nabble.com/NTLM-Authentification-tp5716386p5716457.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: NTLM Authentification
Have you tried setting the Implementation to "HttpClient4" in the HTTP Request sampler? -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/NTLM-Authentification-tp5716386p5716424.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Jdbc connectivity issues
You have to make sure to put the appropriate jdbc drivers in the lib folder. You can use the jtds.jdbc driver available online. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Jdbc-connectivity-issues-tp5716392p5716396.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to handle dynamically generated values during run time via Jmeter
So once you extract the value of your id which can be the regex you have given or you can use this ci: ([^"]*)" This will save your value into the variable you have defined "cid" The place where you have to pass your dynamic value just use the following {"assessmentId":13435,"candidateInstanceId":${cid},"clientID -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-handle-dynamically-generated-values-during-run-time-via-Jmeter-tp5716340p5716394.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to handle dynamically generated values during run time via Jmeter
As far as i understand the problem, your server generates the uniqueid every time a user registers. So the response that generates this id, use a post processor (either a regex extractor or a xpath extractor) and extract that value into a variable. You can then use the value in your subsequent request just like how you are passing your email and name. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-handle-dynamically-generated-values-during-run-time-via-Jmeter-tp5716340p5716362.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Extracting Data from "Sampler Result" tab
There is a simple way of doing this. Just add a regex post processor to the HTTP Sampler that generates this response and give a regex which will look like MYSAPSSO2=([^\;]*)\; and select the "Response Field to check" as "Headers". This will give you your value. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Extracting-Data-from-Sampler-Result-tab-tp5716278p5716361.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Cannot get all stats when reading an aggregate report csv file
why don't you save the entire result into a .jtl file so that you can process the jtl file anytime in the future for your requirement. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Cannot-get-all-stats-when-reading-an-aggregate-report-csv-file-tp5716300p5716360.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Persist JSESSIONID throughout a TestPlan
There is no simple way to pass values through out thread groups in JMeter as far as I know. You can do the following to achieve your problem. Extract the value you want using Regex extractor into a variable say "variablevalue" and set the same into property ${__setProperty(variablename, ${variablevalue})}; In the consequent thread group where you want to use the value just call it by ${__property(variablename)} This should solve your problem -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Persist-JSESSIONID-throughout-a-TestPlan-tp5716314p5716359.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Users not able to finish the test
Can you give us more information on the elements you are using in your test. If you are using different listeners, why don't you try keeping the Aggregate report and disabling all others or just select view results in error. Are you sure your server is able to handle these requests, it so happens that at times the server may not be able to handle concurrent request. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Users-not-able-to-finish-the-test-tp5716331p5716358.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: IO Exception during playback
Hi, Have you made sure that the user you will be using to access the application is present in the respected .xml file? Since it is a 401 "Unauthorized" error, it is because the users has to be authenticated against the server. Do this by adding "HTTP Authorization Manager" . Please note that the authentication mechanism has to either be NTLM or Basic as JMeter doesn't support kerberos as of now. Thanks, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/IO-Exception-during-playback-tp5716222p5716223.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Generating grouped jtl report
Hi, You can achieve this by doing the following BSF Sampler Start Loop controller BSF Sampler Read User Credentilas using csv dataset config Login process using user credentials Test functionality Logout process BSF Sampler End Loop controller In the first sampler define a variable say Variable_name with value "1" read the value of the variable in the bsf sampler inside the loop and add a bsf post processor to each and every sampler. In the sampler, you can just use this statement which will change the label of each and every result in every iteration done. 'prev.setSampleLabel("Login Process " + vars.get("Variable_name"));' In the last BSF Sampler, keep incrementing the value of the variable. This should ideally solve your problem. Regards, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Generating-grouped-jtl-report-tp5716181p5716184.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Should I include .jpg, .png, .css, .js recording into the script?
Well usually we don't include resources like .jpg,.png,.css etc. We can get this by just checking the "Include Embedded Resources" in the HTTP Sampler. And do not include the timings of these elements as when you are requesting the main page, it automatically comes as part of that request. Not sure which all things you have to include in your webpage while recording, but the general thing to include while recording is .html,.htm,.action -- View this message in context: http://jmeter.512774.n5.nabble.com/Should-I-include-jpg-png-css-js-recording-into-the-script-tp5716128p5716156.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Using regular expression extractor to extract one value from a string
Hi, You can achieve this by having a regex like value=(.*) and having the "Match No." set to "-1". This will get you all the values. You can refer the values by simply calling "VariableName_1" for the first value, "VariableName_2",.,"VariableName_n" for the 2nd valuefor the nth value. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Using-regular-expression-extractor-to-extract-one-value-from-a-string-tp5716143p5716153.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Should I include .jpg, .png, .css, .js recording into the script?
Hi, You dont need to include .css,.js and other pages explicitly if you have checked on "download all embedded resources" as these things comes as part of the main webpage it self. But if you want to uncheck the option and call each of the embedded resource separately you can do it so by having different samplers for them and recording each of their timings separately. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Should-I-include-jpg-png-css-js-recording-into-the-script-tp5716128p5716152.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Procedure to get Authorization: Basic Y2FybWVuLm1vbGF0Y2g6OW12NlY1d3dlTkg= to work
Are you sure that your application is running on the basic authentication method and not Kerberos/NTLM. Please verify it once in your "build.properties" file. If everything is fine then make sure that in the "HTTP Authorization Manager", you even enter the domain. Thanks, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Procedure-to-get-Authorization-Basic-Y2FybWVuLm1vbGF0Y2g6OW12NlY1d3dlTkg-to-work-tp5715956p5716106.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Google Search Test with JMeter
http://jmeter.512774.n5.nabble.com/file/n5713581/Google.jmx Google.jmx You can try this file. Google search works -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Google-Search-Test-with-JMeter-tp5713547p5713581.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Session Problem in jmeter
Have you tried checking the "Clear cookie at each iteration" option. This might possibly help you. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Session-Problem-in-jmeter-tp5713579p5713580.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Error observed with BSF Sampler in JMeter 2.6
Hi While trying to execute a script i got teh following error with JMeter 2.6 Response message: org.apache.bsf.BSFException: JavaScript Error: Internal Error: org.mozilla.javascript.EcmaError: ReferenceError: "dornbush" is not defined. Thanks, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Error-observed-with-BSF-Sampler-in-JMeter-2-6-tp5567215p5567215.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to select particular values from data file
I have added the csv data set config element in the test plan. The problem is not with it but selecting of specific elements from a file. I guess the pre processor approach is the best approach to tackle this problem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-select-particular-values-from-data-file-tp5486054p5491626.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to select particular values from data file
How do i iterate to the next element in the data file. Whats the syntax of the command. -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-select-particular-values-from-data-file-tp5486054p5488640.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
How to select particular values from data file
Hi, I have a requirement where in i want few specific values to be picked from a csv data file and the tests to execute. The test goes like this The data file has values true,1,2,3 false,2,3,4 true,4,5,6 I want the script to select only the values that start with true and pass as parameters. Is there a way to achieve this? Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-select-particular-values-from-data-file-tp5486054p5486054.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
JMeter 2.6 problems with BSF Sampler
Hi, We were trying out few scripts on JMeter 2.6 and found out that, When a csv data set config is used to load a file and a BSF sampler is then used to print some value on the screen, the sampler fails and gives the following error Response code: 500 Response message: org.apache.bsf.BSFException: JavaScript Error: missing ; before statement Any suggestions on this. Thanks, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-2-6-problems-with-BSF-Sampler-tp5486041p5486041.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: running jmeter in non-gui mode
Just use the following command jmeter -n -t <.jmx_file_name> -l where "-n" denotes to run JMeter in non-gui mode for more details pls. refer http://jmeter.apache.org/usermanual/get-started.html -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/running-jmeter-in-non-gui-mode-tp5153949p5153983.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Sebb, My thread group had the first sampler as BSF sampler where i initialize the variable and then have two HTTP Request sampler followed by a Result sampler. I use the filename as "${test}.jtl" but it creates a jtl file as ${test}.jtl Not sure where the problem is. This is how my BSF sampler code looks like ${__setProperty(test,"C:\test\Result")}; OUT.println("Value is " + ${__property(test)}); vars.put("test",${__property(test)}); -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5134008.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Oh Sorry for the confusion.. I am referring to JMeter's native listeners. The problem seems to be that in the filename text box of the listener it doesn't appear to accept a variable name. Just wanted to know if there is a way to achieving it. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5133760.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: JDBC connection Error
Hi, Please refer the following thread http://jmeter.512774.n5.nabble.com/jdbc-connection-td5071152.html you can follow the steps mentioned there and this will solve ur problem. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/JDBC-connection-Error-tp4692331p5133701.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Is there a way we can specify a filename using a variable or a user defined property? -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5133696.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to capture a value in one of the thread and passing it to the other thread in the same test plan
HI, Basically there is no way of doing this in JMeter. the one thing i can think of is use the appropriate method to get the data and store it in a user defined property like ${__setProperty(input, ${input})}; and in the next thread group access the input variable just like any other property variable ${__property(input)} Hope this works. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-capture-a-value-in-one-of-the-thread-and-passing-it-to-the-other-thread-in-the-same-test-plan-tp5124673p5131347.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Dynamic sampler request to be created
Hi, I have a requirement where in based on the number of arguments specified in the Input file, the get/post parameters should be dynamically created to be put in the post request.link[0] = 23link[0] = 23 Ex: csv File value 23,24,25 The sampler should create three HTTP post parameters like link[0] = 23 link[1] = 24 link[2] = 25 Can this be achieved through Jmeter Thanks for the help in advance. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Dynamic-sampler-request-to-be-created-tp5127791p5127791.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Sebb, Thats one way of approaching the problem and its really a great way of doing it.. But when the number of samplers increase this means the overhead increases. So having a global listener and ignoring few of the samplers should be a better way. Just not sure if this could be achieved. -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5122509.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Based on the methods given in http://jmeter.apache.org/api/org/apache/jmeter/samplers/SampleResult.html Is there a way where we can ignore to log the output of a particular sampler and log for only those samplers that we actually want -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5122428.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: With less time in "Rump-up period" i get session faild
Try including "Test Action" sampler as this might keep the session active for the number of milliseconds you want it to be alive. Thanks, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/With-less-time-in-Rump-up-period-i-get-session-faild-tp5103928p5121951.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Unable to record a test with JMeter
HI, I think there might be few network restrictions which is not letting you listen to a proxy. Thought this is not from JMeter forum, but for quick relief i would suggest you to use BadBoy software for now and try to get the network issue resolved. Please note that any questions related to badboy cannot be posted in JMeter forum. Thanks, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Unable-to-record-a-test-with-JMeter-tp5116776p5121945.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Thanks a lot for all your replies guys!! really appreciated Just wanted to know one more thing. Is there a way where we can add our own data into the Sample data writer by creating a new configuration element? -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5121942.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Just wanted to know is there a way to run JMeter (Non-GUI) mode and control the results we log in .jtl files? -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5101469.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Test through a config file
Hi, I want to create a test plan with multiple thread groups running in it sequentially. Can i have multiple thread groups and specify from a config file which thread group to run and which ones to ignore. Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Test-through-a-config-file-tp5096775p5096775.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: jdbc connection
Just found out that jtds drivers are the best to connect to mssql db. tried that with the appropriate jars and with the following db URL and driver class. It workd perfectly fine URL: jdbc:jtds:sqlserver:/// JDBC Driver Class : net.sourceforge.jtds.jdbc.Driver username : test password : test -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/jdbc-connection-tp5071152p5074550.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: jdbc connection
overcame that error. Just had to add the db name at the end facing a new error now Response message: com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the host TEST_MACHINE, named instance SQLEXPRESS/Testdb has failed. Error: "java.net.SocketTimeoutException: Receive timed out". Verify the server and instance names, check that no firewall is blocking UDP traffic to port 1434, and for SQL Server 2005 or later verify that the SQL Server Browser Service is running on the host. there are no firewall that are blocking any of the content my exact config details db URL : jdbc:sqlserver://TEST_MACHINE\\SQLEXPRESS/Testdb jdbc Driver Calss : com.microsoft.sqlserver.jdbc.SQLServerDriver -- View this message in context: http://jmeter.512774.n5.nabble.com/jdbc-connection-tp5071152p5071299.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: jdbc connection
overcame that error. Just had to add the db name at the end facing a new error now Response message: com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the host TEST_MACHINE, named instance \SQLEXPRESS/Testdb has failed. Error: "java.net.SocketTimeoutException: Receive timed out". Verify the server and instance names, check that no firewall is blocking UDP traffic to port 1434, and for SQL Server 2005 or later verify that the SQL Server Browser Service is running on the host. there are no firewall that are blocking any of the content my exact config details db URL : jdbc:sqlserver://TEST_MACHINE\\SQLEXPRESS/Testdb jdbc Driver Calss : com.microsoft.sqlserver.jdbc.SQLServerDriver -- View this message in context: http://jmeter.512774.n5.nabble.com/jdbc-connection-tp5071152p5071295.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: jdbc connection
Already tried that as well. but didn't work. -- View this message in context: http://jmeter.512774.n5.nabble.com/jdbc-connection-tp5071152p5071242.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Create custom log files
Thanks for the reply sebb. But that wasn't my requirement. But any how figured that we can add custom response message to our request so that pretty much solves my problem. Creation of jtl files with user response messages will give a clear understanding of the data used. -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5071157.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
jdbc connection
HI, I have created a test plan to connect to a database (created locally on a test system for testing) which uses my windows login ID as teh user name and password. I added a HTTP authorization manager witht eh appropriate URL but it fails. My db URL is : jdbc:sqlserver://TEST_MACHINE\SQLEXPRESS JDBC Driver Class Name : com.microsoft.sqlserver.jdbc.SQLServerDriver it gives an error that com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''. Can someone help. Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/jdbc-connection-tp5071152p5071152.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Create custom log files
Hi, I have a scenario where i want to log a custom log details at each sampler level. Is there a ready way to do this task. I even want to create new folders on the run when the tests are executed every time. Can this be achieved. Thanks in advance, Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/Create-custom-log-files-tp5067691p5067691.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to query the database and save the results to a csv files
But my requriments are in such a way tht i cant do. Can my problem be achieved using a sampler? -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-query-the-database-and-save-the-results-to-a-csv-files-tp4997493p5003276.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
How to query the database and save the results to a csv files
Hi, I have a scenario where i have to query a db and save the results into a .csv file and use the same file as teh data file. How do i do this using JMeter Thanks for the help in advance -Waseem -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-query-the-database-and-save-the-results-to-a-csv-files-tp4997493p4997493.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org