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 <[email protected]> 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 <[email protected]>wrote:
>
>> 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 
>> <[email protected]>wrote:
>>
>>> 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 <[email protected]>wrote:
>>>
>>>> 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*
>>>>
>>>
>>>
>>
>

Reply via email to