RegEx

2014-01-25 Thread Madhu Sekhar
Team,

input type=hidden name=jmetr.focus.ViewState value=asdas72

in the above we need to write regex for *jmetr.focus.ViewState, *Could
anyone please suggest.


*Thanks,*

*Madhu*


Re: How to record Registration page and replay using HTTP Request Sampler and also parameterise some fields in the forms?

2014-01-25 Thread Jayesh Guru
I have found the solution for avoiding the above error by Doing Set
JAVA_HOME and SET PATH in jmeter.bat.
Another issue I am getting is I am able to record the script for http
protocol with test recording but HTTPS is not opening from firefox.
Can anyone suggest me what settings i need to do in HTTP Request Sampler so
that it will work in Firefox?

*Thanks *
*Jayesh Guru*


On Thu, Jan 23, 2014 at 2:54 PM, Jayesh Guru jayeshgur...@gmail.com wrote:

 I have found a good doc to follow for HTTP test recording.

 http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf

 But when i hit on Start button of Test Recorder i get following error.

 2014/01/23 14:10:50 WARN  - jmeter.protocol.http.proxy.ProxyControl: Could
 not open expected file or certificate is not valid
 C:\JMETER\apache-jmeter-2.11\bin\proxyserver.jks
 C:\JMETER\apache-jmeter-2.11\bin\proxyserver.jks (The system cannot find
 the file specified)
 2014/01/23 14:10:50 INFO  - jmeter.protocol.http.proxy.ProxyControl:
 Generating standard keypair in
 C:\JMETER\apache-jmeter-2.11\bin\proxyserver.jks
 2014/01/23 14:10:50 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could
 not initialise key store java.io.IOException: Command :'keytool -genkeypair
 -alias :jmeter: -dname cn=JMeter Proxy (DO NOT TRUST) -keyalg RSA
 -keystore proxyserver.jks -storepass {redacted) -keypass {redacted)
 -validity 7' failed, code: 1
 Illegal option:  -genkeypair

 Can anybody help me in solving this?


 *Thanks *
  *Jayesh Guru*


 On Thu, Jan 23, 2014 at 1:04 PM, Jayesh Guru jayeshgur...@gmail.comwrote:

 I cannot see any of the images in this email chain.
 Can you please resend and also where Test Script Recorder located?

 *Thanks *
 *Jayesh Guru*


 On Wed, Jan 22, 2014 at 12:25 PM, charan sethi 
 charan.set...@gmail.comwrote:

 Well you can record the registeration steps using Jmeter  Test Script
 Recorder(Version 2.10) or jmeter proxy server in earlier versions. Now you
 need to identify in the recorded requests the parameters you need to pass
 for example username and pasword. Add a CSV data config element in your
 thread group and add user,pass in it against variables. Now make a csv file
 and add the username and passwords in it. Put the full path of the csv in
 the csv data config element. Now to use these values you need to identify
 the parameters in your request and put the variables you defined in the CSV
 data config element like this ${user} against username and ${pass} against
 password. Each thread would read one line in your CSV.

 You also would need to add a HTTP cookie manager in your thread group to
 manage cookies for your virtual users. If your having trouble recording,
 the steps are as follows

 Add HTTPS test recorder under workbench and set target controller to
 thread group after inserting a thread group under your test plan.
 Set the proxy in your browser to localhost and port 8080
 Now Press Start button on your Test recorder.
 Perform actions on your browser and you will see the requests getting
 recorded.

 These are the parameters
 [image: Inline image 3]

 The path for the csv file and the variables
 [image: Inline image 2]

 The CSV files
 [image: Inline image 4]

 I hope this helps





 On Wed, Jan 22, 2014 at 6:17 AM, Jayesh Guru jayeshgur...@gmail.comwrote:

 I have to record a Registration Page and parameterise some of the
 fields so
 that it can take unique value each iteration.
 I tried this couple of times with HTTP request recording but could not
 get
 any luck.
 Could anyone please guide me in this as i need to load test this
 registration site(there are 4-5 pages in this)?


 *Thanks *
 *Jayesh Guru*







Re: RegEx

2014-01-25 Thread Peter Peterse
Madhu Sekhar schreef op 25-1-2014 9:56:
 Team,

 input type=hidden name=jmetr.focus.ViewState value=asdas72

 in the above we need to write regex for *jmetr.focus.ViewState, *Could
 anyone please suggest.


 *Thanks,*

 *Madhu*


Try:

name=jmetr.focus.ViewState value=([^]*)


-- 
Met vriendelijke groet,

Peter Peterse

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to record Registration page and replay using HTTP Request Sampler and also parameterise some fields in the forms?

2014-01-25 Thread Robin D. Wilson
You need to import the JMeter certificate file in FireFox, so FireFox will 
accept JMeter as a trusted certificate authority.

--
Robin D. Wilson
VOICE: 512-777-1861



On Jan 25, 2014, at 3:54 AM, Jayesh Guru jayeshgur...@gmail.com wrote:

I have found the solution for avoiding the above error by Doing Set
JAVA_HOME and SET PATH in jmeter.bat.
Another issue I am getting is I am able to record the script for http
protocol with test recording but HTTPS is not opening from firefox.
Can anyone suggest me what settings i need to do in HTTP Request Sampler so
that it will work in Firefox?

*Thanks *
*Jayesh Guru*


 On Thu, Jan 23, 2014 at 2:54 PM, Jayesh Guru jayeshgur...@gmail.com wrote:
 
 I have found a good doc to follow for HTTP test recording.
 
 http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
 
 But when i hit on Start button of Test Recorder i get following error.
 
 2014/01/23 14:10:50 WARN  - jmeter.protocol.http.proxy.ProxyControl: Could
 not open expected file or certificate is not valid
 C:\JMETER\apache-jmeter-2.11\bin\proxyserver.jks
 C:\JMETER\apache-jmeter-2.11\bin\proxyserver.jks (The system cannot find
 the file specified)
 2014/01/23 14:10:50 INFO  - jmeter.protocol.http.proxy.ProxyControl:
 Generating standard keypair in
 C:\JMETER\apache-jmeter-2.11\bin\proxyserver.jks
 2014/01/23 14:10:50 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could
 not initialise key store java.io.IOException: Command :'keytool -genkeypair
 -alias :jmeter: -dname cn=JMeter Proxy (DO NOT TRUST) -keyalg RSA
 -keystore proxyserver.jks -storepass {redacted) -keypass {redacted)
 -validity 7' failed, code: 1
 Illegal option:  -genkeypair
 
 Can anybody help me in solving this?
 
 
 *Thanks *
 *Jayesh Guru*
 
 
 On Thu, Jan 23, 2014 at 1:04 PM, Jayesh Guru jayeshgur...@gmail.comwrote:
 
 I cannot see any of the images in this email chain.
 Can you please resend and also where Test Script Recorder located?
 
 *Thanks *
 *Jayesh Guru*
 
 
 On Wed, Jan 22, 2014 at 12:25 PM, charan sethi 
 charan.set...@gmail.comwrote:
 
 Well you can record the registeration steps using Jmeter  Test Script
 Recorder(Version 2.10) or jmeter proxy server in earlier versions. Now you
 need to identify in the recorded requests the parameters you need to pass
 for example username and pasword. Add a CSV data config element in your
 thread group and add user,pass in it against variables. Now make a csv file
 and add the username and passwords in it. Put the full path of the csv in
 the csv data config element. Now to use these values you need to identify
 the parameters in your request and put the variables you defined in the CSV
 data config element like this ${user} against username and ${pass} against
 password. Each thread would read one line in your CSV.
 
 You also would need to add a HTTP cookie manager in your thread group to
 manage cookies for your virtual users. If your having trouble recording,
 the steps are as follows
 
 Add HTTPS test recorder under workbench and set target controller to
 thread group after inserting a thread group under your test plan.
 Set the proxy in your browser to localhost and port 8080
 Now Press Start button on your Test recorder.
 Perform actions on your browser and you will see the requests getting
 recorded.
 
 These are the parameters
 [image: Inline image 3]
 
 The path for the csv file and the variables
 [image: Inline image 2]
 
 The CSV files
 [image: Inline image 4]
 
 I hope this helps
 
 
 
 
 
 On Wed, Jan 22, 2014 at 6:17 AM, Jayesh Guru jayeshgur...@gmail.comwrote:
 
 I have to record a Registration Page and parameterise some of the
 fields so
 that it can take unique value each iteration.
 I tried this couple of times with HTTP request recording but could not
 get
 any luck.
 Could anyone please guide me in this as i need to load test this
 registration site(there are 4-5 pages in this)?
 
 
 *Thanks *
 *Jayesh Guru*
 
 
 
 
 

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: JMeter and Richfaces FileUpload on Flash mode

2014-01-25 Thread Flavio Cysne
Thanks Deepak,

I'll use that example page to test this scenario too. I have to make an
entry in the enterprise wiki to document this case and how to solve it.

Again, thanks for helping.


2014-01-24 Deepak Shetty shet...@gmail.com

 Hi
 I dont notice anything that wont work though there is a lot of dynamic
 stuff and the Content-Type: multipart/form-data which you sometimes need to
 be careful with (if you have taken care of that) - i'll try and see if I
 can get the demo to work


 On Fri, Jan 24, 2014 at 3:53 AM, Flavio Cysne flaviocy...@gmail.com
 wrote:

  Hi Deepak,
 
  the link you provided uses the frame version of Richfaces fileupload
  and is a newer version.
 
  The page I'm testing is using Richfaces 3.3.3.
 
  This link
  http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf is a
  good example of how it is working, just have to enable checkbox for Flash
  mode.
 
  Thanks for helping
 
 
  2014/1/23 Deepak Shetty shet...@gmail.com
 
   Do you have a demo that is open to the public?
   or is it the same as
  
  
 
 http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload
  
   regards
   deepak
  
  
   On Thu, Jan 23, 2014 at 5:25 AM, Flavio Cysne flaviocy...@gmail.com
   wrote:
  
Dear users,
   
did you have any test case that used a Richfaces FileUpload
  component
with Flash mode enabled (component default behavior) in a form ?
   
I, recently, had a bad experience with this scenario. Doing the
scenario manually, the file is uploaded an 'attached' to the entity
correctly. But when I do it using JMeter the file is uploaded
(Content-Length request's header is present and show the file length
  plus
extras) but at the end is not 'attached' to the entity.
   
I verified that the file upload component is using the Flash
 mode,
   then
I thought that because of it I could not simulate correctly this
   scenario.
Development team can't deploy another version with Flash mode off
  (using
frames instead).
   
At first, I thought that the HTTP POST request parameter
_richfaces_upload_uid had something to do with this issue, but it is
   only a
random number (as seen in FileUpload.js code).
   
Is there any way I could overcome this issue?
   
Thanks in advance.