You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jayesh New Gmail <ja...@gmail.com> on 2014/03/13 15:16:55 UTC

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

Hello

I am trying to make this work from long time but am not able to run Registration site as i am still getting Java Script Disabled in View Results Tree Response HTML. I will really appreciate any help in this regard.

Cheers,
Jayesh

> On Feb 4, 2014, at 11:54 PM, charan sethi <ch...@gmail.com> wrote:
> 
> Well Jmeter interacts with the server and if the server is giving a response 200 OK  than jmeter should treat it fine. 
> 
> You will have to use assertions if you want Jmeter to return error in case same details are being used again for registration.
> 
> You can easily see the difference in the response in view results tree listener for request which has different registration details when compared with the request sending the details that have already been used. 
> 
> Jmeter runs on protocol level so it won't execute your javascript. If your sending the right parameters with the request, You should not worry about javascript as Javascript is client side activity and should be out of scope.
> 
> 
> 
> 
>> On Wed, Feb 5, 2014 at 10:50 AM, Jayesh Guru <ja...@gmail.com> wrote:
>> Hello Guys,
>> 
>> I got the samplers under Recording Controller when i recorded my script through HTTP(S) Test Recorder.
>> But i think its not working out.
>> When i tried to run that samplers it is giving me success for all samplers although it should return error as the flow is for Registration so same account cannot be reused again.
>> Also when i see Response Tab in View Results Tree and look for HTML it shows me JAVA Script not enabled.
>> While recording i checked and in internet options JAVA Script was enabled.
>> Please guide me through this as this is last step for getting solution.
>> Thanks everyone for bringing me till here.
>> 
>> 
>> Thanks
>> Jayesh Guru
>> 
>> 
>>> On Thu, Jan 30, 2014 at 11:45 PM, Jayesh New Gmail <ja...@gmail.com> wrote:
>>> I tried the same to record the script when Test Script Recorder is started.
>>> The option was target controller was set by default as Recording Controller but could not show the samples after the script recorder was stopped.
>>> 
>>> However i got through this by removing patterns to include as .*\.html in HTTPS Test Recorder.
>>>    I was surprised to see all recorded samples after deleting patterns to include.
>>> Thanks much for your response, i will post tomorrow after working thru the recorded samples.
>>> 
>>> Cheers,
>>> Jayesh
>>> 
>>> > On Jan 30, 2014, at 11:18 PM, charan sethi <ch...@gmail.com> wrote:
>>> >
>>> > How do you know that your able to record the script.??
>>> >
>>> > Open your browser and enter any url before starting the HTTPS Test
>>> > Recorder. Make sure to set the proxy settings in the browser. You should
>>> > not be able to access the url in the browser untill you start your Test
>>> > script recorder in jmeter.
>>> >
>>> > Now in the Jmeter HTTP test Script Recorder window there are three options
>>> > under Target controller namely
>>> >
>>> > 1) Recording controller: which will show the recorded samples under
>>> > recording controller added under the thread group
>>> > 2) Workbench-Test Script Recoder: This will show the recorded sample
>>> > directly under the Test Script Recorder under your workbench. A key would
>>> > be shown before the Test script Recorder once jmeter is able to record
>>> > samples. Clicking it would expand and show all the recorded samplers.
>>> > 3) Thread grouop: This option would be visible only if you have added a
>>> > thread group under your thread plan. This option would show the recorded
>>> > samples under the thread group.
>>> >
>>> > Select the option you prefer and start the recorder.
>>> > Try all three options. Cheers
>>> >
>>> >
>>> >> On Fri, Jan 31, 2014 at 3:59 AM, Jayesh Guru <ja...@gmail.com> wrote:
>>> >>
>>> >> Just want to let you know that i have successfully installed certificate in
>>> >> the browser and able to record the script in the browser.
>>> >> But the issue now coming is *I am not able to see the samplers generated
>>> >> under Recording Controller*.
>>> >> I have followed all steps in this doc
>>> >> Please help me to get through this.
>>> >>
>>> >> http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
>>> >>
>>> >>
>>> >> *Thanks *
>>> >> *Jayesh Guru*
>>> >>
>>> >>
>>> >> On Thu, Jan 30, 2014 at 2:37 PM, Jayesh Guru <ja...@gmail.com>
>>> >> wrote:
>>> >>
>>> >>> Hello,
>>> >>>
>>> >>> I tried this earlier but could not get success.
>>> >>> Below cert was not generated when i tried.
>>> >>>
>>> >>> *If necessary, you can force JMeter to regenerate the keystore (and the
>>> >>> exported certificates - ApacheJMeterTemporaryRootCA[.usr|.crt]) by
>>> >> deleting
>>> >>> the keystore file proxyserver.jks from the JMeter directory.*
>>> >>>
>>> >>>
>>> >>> *Thanks *
>>> >>> *Jayesh Guru*
>>> >>>
>>> >>>
>>> >>> On Thu, Jan 30, 2014 at 2:08 PM, UBIK LOAD PACK Support <
>>> >>> support@ubikloadpack.com> wrote:
>>> >>>
>>> >>>> Hello,
>>> >>>> Read:
>>> >>>> -
>>> >>>>
>>> >>>>
>>> >> http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder
>>> >>>>
>>> >>>> Installing the JMeter CA certificate for HTTPS recording
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>>
>>> >>>> Regards
>>> >>>> Ubik Load Pack <http://ubikloadpack.com> Team
>>> >>>> Follow us on Twitter <http://twitter.com/ubikloadpack>
>>> >>>>
>>> >>>>
>>> >>>> Cordialement
>>> >>>> L'équipe Ubik Load Pack <http://ubikloadpack.com>
>>> >>>> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> On Thu, Jan 30, 2014 at 7:50 PM, Jayesh Guru <ja...@gmail.com>
>>> >>>> wrote:
>>> >>>>
>>> >>>>> How to import certificate?
>>> >>>>> I am really not getting through from the Mozilla browser for
>>> >> recording.
>>> >>>>> Appreciate help.
>>> >>>>>
>>> >>>>>
>>> >>>>> Cheers,
>>> >>>>> Jayesh
>>> >>>>>
>>> >>>>>> On Jan 25, 2014, at 7:35 AM, "Robin D. Wilson" <rw...@gmail.com>
>>> >>>>> wrote:
>>> >>>>>>
>>> >>>>>> 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 <ja...@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 <
>>> >> jayeshguru81@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 <
>>> >> jayeshguru81@gmail.com
>>> >>>>>> 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 <
>>> >>>>> charan.sethi1@gmail.com>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 <
>>> >>>> jayeshguru81@gmail.com
>>> >>>>>> 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*
>>> >>>>>>>>>>
>>> >>>>>>>>>
>>> >>>>>>>>>
>>> >>>>>>>>
>>> >>>>>>>
>>> >>>>>>
>>> >>>>>>
>>> >> ---------------------------------------------------------------------
>>> >>>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> >>>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>> >>>>>>
>>> >>>>>
>>> >>>>> ---------------------------------------------------------------------
>>> >>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> >>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>> >>>>>
>>> >>>>>
>>> >>>>
>>> >>>>
>>> >>>> -
>>> >>>>
>>> >>>
>>> >>>
>>> >>
> 

Re: Performance Test of J2EE appication having Swing Client

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
again you can try the standard java setting to route traffic through a
proxy - it might work or it might not
But COTS or otherwise if you want to do this type of white - box testing
you need to understand how the system works - either documents or someone
who knows the app

regards
deepak


On Wed, Mar 19, 2014 at 1:08 PM, Deepak V A <de...@hotmail.com> wrote:

> This is a COTS product, please let me know if we need to make code changes
> or this is a configuration setting that needs to be done.
>
>
>
>
>
> Regards
>
> Deepak
>
>
> > Date: Wed, 19 Mar 2014 09:19:12 -0700
> > Subject: Re: Performance Test of J2EE appication having Swing Client
> > From: shettyd@gmail.com
> > To: user@jmeter.apache.org
> >
> > If its using HTTP (or you are tunneling T3 through HTTP) then you need to
> > setup the proxy for the swing application so that it points to your
> JMeter
> > proxy
> > For a standard java(including swing) application -
> > http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.htmlbut
> > your application may be using a different HTTP library which might have
> its
> > own settings - If for example it uses httpclient then it might not
> > necessarily use the Java VM settings so you need to check your app.
> >
> >
> > On Tue, Mar 18, 2014 at 8:47 PM, Deepak V A <de...@hotmail.com>
> wrote:
> >
> > > Hi,
> > >
> > >
> > >
> > > It works both with HTTP and T3 protocol. I was not able to record the
> > > session as the requests from the Swing client where not passing
> through the
> > > JMETER. Please provide some of the steps for intercepting teh requests.
> > >
> > >
> > >
> > > Regards
> > >
> > > Deepak
> > >
> > >
> > > > Date: Tue, 18 Mar 2014 13:48:52 -0700
> > > > Subject: Re: Performance Test of J2EE appication having Swing Client
> > > > From: shettyd@gmail.com
> > > > To: user@jmeter.apache.org
> > > >
> > > > Hi
> > > > yes - but you'll need to know how the application communicates with
> your
> > > > app (Webservice/ejb/http/rmi/binary etc) and replicate that in
> JMeter.
> > > >
> > > >
> > > > On Tue, Mar 18, 2014 at 1:13 PM, Deepak V A <de...@hotmail.com>
> > > wrote:
> > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > >
> > > > >
> > > > > Please let me know if it is possible to do a performance testing
> of a
> > > J2EE
> > > > > application deployed on a weblogic server having a Java Swing based
> > > client.
> > > > >
> > > > >
> > > > >
> > > > > The intention is not to test the Java Swing client, but the J2EE
> > > > > application. We do not have a browser based client.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Regards
> > > > >
> > > > > Deepak
> > > > >
> > >
> > >
>
>

RE: Performance Test of J2EE appication having Swing Client

Posted by Deepak V A <de...@hotmail.com>.
This is a COTS product, please let me know if we need to make code changes or this is a configuration setting that needs to be done.

 

 

Regards

Deepak
 

> Date: Wed, 19 Mar 2014 09:19:12 -0700
> Subject: Re: Performance Test of J2EE appication having Swing Client
> From: shettyd@gmail.com
> To: user@jmeter.apache.org
> 
> If its using HTTP (or you are tunneling T3 through HTTP) then you need to
> setup the proxy for the swing application so that it points to your JMeter
> proxy
> For a standard java(including swing) application -
> http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html but
> your application may be using a different HTTP library which might have its
> own settings - If for example it uses httpclient then it might not
> necessarily use the Java VM settings so you need to check your app.
> 
> 
> On Tue, Mar 18, 2014 at 8:47 PM, Deepak V A <de...@hotmail.com> wrote:
> 
> > Hi,
> >
> >
> >
> > It works both with HTTP and T3 protocol. I was not able to record the
> > session as the requests from the Swing client where not passing through the
> > JMETER. Please provide some of the steps for intercepting teh requests.
> >
> >
> >
> > Regards
> >
> > Deepak
> >
> >
> > > Date: Tue, 18 Mar 2014 13:48:52 -0700
> > > Subject: Re: Performance Test of J2EE appication having Swing Client
> > > From: shettyd@gmail.com
> > > To: user@jmeter.apache.org
> > >
> > > Hi
> > > yes - but you'll need to know how the application communicates with your
> > > app (Webservice/ejb/http/rmi/binary etc) and replicate that in JMeter.
> > >
> > >
> > > On Tue, Mar 18, 2014 at 1:13 PM, Deepak V A <de...@hotmail.com>
> > wrote:
> > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > >
> > > > Please let me know if it is possible to do a performance testing of a
> > J2EE
> > > > application deployed on a weblogic server having a Java Swing based
> > client.
> > > >
> > > >
> > > >
> > > > The intention is not to test the Java Swing client, but the J2EE
> > > > application. We do not have a browser based client.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Regards
> > > >
> > > > Deepak
> > > >
> >
> >
 		 	   		  

Re: Performance Test of J2EE appication having Swing Client

Posted by Deepak Shetty <sh...@gmail.com>.
If its using HTTP  (or you are tunneling T3 through HTTP) then you need to
setup the proxy for the swing application so that it points to your JMeter
proxy
For a standard java(including swing) application -
http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html but
your application may be using a different HTTP library which might have its
own settings - If for example it uses httpclient then it might not
necessarily use the Java VM settings so you need to check your app.


On Tue, Mar 18, 2014 at 8:47 PM, Deepak V A <de...@hotmail.com> wrote:

> Hi,
>
>
>
> It works both with HTTP and T3 protocol. I was not able to record the
> session as the requests from the Swing client where not passing through the
> JMETER. Please provide some of the steps for intercepting teh requests.
>
>
>
> Regards
>
> Deepak
>
>
> > Date: Tue, 18 Mar 2014 13:48:52 -0700
> > Subject: Re: Performance Test of J2EE appication having Swing Client
> > From: shettyd@gmail.com
> > To: user@jmeter.apache.org
> >
> > Hi
> > yes - but you'll need to know how the application communicates with your
> > app (Webservice/ejb/http/rmi/binary etc) and replicate that in JMeter.
> >
> >
> > On Tue, Mar 18, 2014 at 1:13 PM, Deepak V A <de...@hotmail.com>
> wrote:
> >
> > >
> > > Hi,
> > >
> > >
> > >
> > > Please let me know if it is possible to do a performance testing of a
> J2EE
> > > application deployed on a weblogic server having a Java Swing based
> client.
> > >
> > >
> > >
> > > The intention is not to test the Java Swing client, but the J2EE
> > > application. We do not have a browser based client.
> > >
> > >
> > >
> > >
> > >
> > > Regards
> > >
> > > Deepak
> > >
>
>

RE: Performance Test of J2EE appication having Swing Client

Posted by Deepak V A <de...@hotmail.com>.
Hi,

 

It works both with HTTP and T3 protocol. I was not able to record the session as the requests from the Swing client where not passing through the JMETER. Please provide some of the steps for intercepting teh requests.

 

Regards

Deepak
 

> Date: Tue, 18 Mar 2014 13:48:52 -0700
> Subject: Re: Performance Test of J2EE appication having Swing Client
> From: shettyd@gmail.com
> To: user@jmeter.apache.org
> 
> Hi
> yes - but you'll need to know how the application communicates with your
> app (Webservice/ejb/http/rmi/binary etc) and replicate that in JMeter.
> 
> 
> On Tue, Mar 18, 2014 at 1:13 PM, Deepak V A <de...@hotmail.com> wrote:
> 
> >
> > Hi,
> >
> >
> >
> > Please let me know if it is possible to do a performance testing of a J2EE
> > application deployed on a weblogic server having a Java Swing based client.
> >
> >
> >
> > The intention is not to test the Java Swing client, but the J2EE
> > application. We do not have a browser based client.
> >
> >
> >
> >
> >
> > Regards
> >
> > Deepak
> >
 		 	   		  

Re: Performance Test of J2EE appication having Swing Client

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
yes - but you'll need to know how the application communicates with your
app (Webservice/ejb/http/rmi/binary etc) and replicate that in JMeter.


On Tue, Mar 18, 2014 at 1:13 PM, Deepak V A <de...@hotmail.com> wrote:

>
> Hi,
>
>
>
> Please let me know if it is possible to do a performance testing of a J2EE
> application deployed on a weblogic server having a Java Swing based client.
>
>
>
> The intention is not to test the Java Swing client, but the J2EE
> application. We do not have a browser based client.
>
>
>
>
>
> Regards
>
> Deepak
>

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

Posted by Deepak Shetty <sh...@gmail.com>.
Unless you have a publically visible sample , its difficult to suggest
anything other than generic statements.
The only way the server can know if javascript is enabled on the browser is
make the browser do something in javascript and then send that information
to the server . Common techniques include
a. Set a cookie using javascript and check for that
b. Set a parameter into the URL using javascript or dynamically change some
values
c. Invoke a ajax url/ add a pixel image using javascript and make that set
something into the session that can be used for subsequent urls
How your app does it is specific to your application - but for JMeter it is
all the same - JMeter isnt sending the same thing as your browser. So you
need to compare word for word what your browser sent
(Firebug,livehttpheaders,fiddler etc) v/s Jmeter - every request , every
parameter, every header. You also need to check which parameters are
dynamic (in this case it shouldnt match the browser, it should match your
request/response and be different for you and change correctly per
request/response).
The simpler option is to speak to someone from your development team who
can tell you what you are not sending correctly (Since the app should have
logs) and you can fix your script
regards
deepak


On Thu, Mar 13, 2014 at 7:16 AM, Jayesh New Gmail <ja...@gmail.com>wrote:

> Hello
>
> I am trying to make this work from long time but am not able to run
> Registration site as i am still getting Java Script Disabled in View
> Results Tree Response HTML. I will really appreciate any help in this
> regard.
>
> Cheers,
> Jayesh
>
> > On Feb 4, 2014, at 11:54 PM, charan sethi <ch...@gmail.com>
> wrote:
> >
> > Well Jmeter interacts with the server and if the server is giving a
> response 200 OK  than jmeter should treat it fine.
> >
> > You will have to use assertions if you want Jmeter to return error in
> case same details are being used again for registration.
> >
> > You can easily see the difference in the response in view results tree
> listener for request which has different registration details when compared
> with the request sending the details that have already been used.
> >
> > Jmeter runs on protocol level so it won't execute your javascript. If
> your sending the right parameters with the request, You should not worry
> about javascript as Javascript is client side activity and should be out of
> scope.
> >
> >
> >
> >
> >> On Wed, Feb 5, 2014 at 10:50 AM, Jayesh Guru <ja...@gmail.com>
> wrote:
> >> Hello Guys,
> >>
> >> I got the samplers under Recording Controller when i recorded my script
> through HTTP(S) Test Recorder.
> >> But i think its not working out.
> >> When i tried to run that samplers it is giving me success for all
> samplers although it should return error as the flow is for Registration so
> same account cannot be reused again.
> >> Also when i see Response Tab in View Results Tree and look for HTML it
> shows me JAVA Script not enabled.
> >> While recording i checked and in internet options JAVA Script was
> enabled.
> >> Please guide me through this as this is last step for getting solution.
> >> Thanks everyone for bringing me till here.
> >>
> >>
> >> Thanks
> >> Jayesh Guru
> >>
> >>
> >>> On Thu, Jan 30, 2014 at 11:45 PM, Jayesh New Gmail <
> jayeshguru81@gmail.com> wrote:
> >>> I tried the same to record the script when Test Script Recorder is
> started.
> >>> The option was target controller was set by default as Recording
> Controller but could not show the samples after the script recorder was
> stopped.
> >>>
> >>> However i got through this by removing patterns to include as .*\.html
> in HTTPS Test Recorder.
> >>>    I was surprised to see all recorded samples after deleting patterns
> to include.
> >>> Thanks much for your response, i will post tomorrow after working thru
> the recorded samples.
> >>>
> >>> Cheers,
> >>> Jayesh
> >>>
> >>> > On Jan 30, 2014, at 11:18 PM, charan sethi <ch...@gmail.com>
> wrote:
> >>> >
> >>> > How do you know that your able to record the script.??
> >>> >
> >>> > Open your browser and enter any url before starting the HTTPS Test
> >>> > Recorder. Make sure to set the proxy settings in the browser. You
> should
> >>> > not be able to access the url in the browser untill you start your
> Test
> >>> > script recorder in jmeter.
> >>> >
> >>> > Now in the Jmeter HTTP test Script Recorder window there are three
> options
> >>> > under Target controller namely
> >>> >
> >>> > 1) Recording controller: which will show the recorded samples under
> >>> > recording controller added under the thread group
> >>> > 2) Workbench-Test Script Recoder: This will show the recorded sample
> >>> > directly under the Test Script Recorder under your workbench. A key
> would
> >>> > be shown before the Test script Recorder once jmeter is able to
> record
> >>> > samples. Clicking it would expand and show all the recorded samplers.
> >>> > 3) Thread grouop: This option would be visible only if you have
> added a
> >>> > thread group under your thread plan. This option would show the
> recorded
> >>> > samples under the thread group.
> >>> >
> >>> > Select the option you prefer and start the recorder.
> >>> > Try all three options. Cheers
> >>> >
> >>> >
> >>> >> On Fri, Jan 31, 2014 at 3:59 AM, Jayesh Guru <
> jayeshguru81@gmail.com> wrote:
> >>> >>
> >>> >> Just want to let you know that i have successfully installed
> certificate in
> >>> >> the browser and able to record the script in the browser.
> >>> >> But the issue now coming is *I am not able to see the samplers
> generated
> >>> >> under Recording Controller*.
> >>> >> I have followed all steps in this doc
> >>> >> Please help me to get through this.
> >>> >>
> >>> >> http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
> >>> >>
> >>> >>
> >>> >> *Thanks *
> >>> >> *Jayesh Guru*
> >>> >>
> >>> >>
> >>> >> On Thu, Jan 30, 2014 at 2:37 PM, Jayesh Guru <
> jayeshguru81@gmail.com>
> >>> >> wrote:
> >>> >>
> >>> >>> Hello,
> >>> >>>
> >>> >>> I tried this earlier but could not get success.
> >>> >>> Below cert was not generated when i tried.
> >>> >>>
> >>> >>> *If necessary, you can force JMeter to regenerate the keystore
> (and the
> >>> >>> exported certificates - ApacheJMeterTemporaryRootCA[.usr|.crt]) by
> >>> >> deleting
> >>> >>> the keystore file proxyserver.jks from the JMeter directory.*
> >>> >>>
> >>> >>>
> >>> >>> *Thanks *
> >>> >>> *Jayesh Guru*
> >>> >>>
> >>> >>>
> >>> >>> On Thu, Jan 30, 2014 at 2:08 PM, UBIK LOAD PACK Support <
> >>> >>> support@ubikloadpack.com> wrote:
> >>> >>>
> >>> >>>> Hello,
> >>> >>>> Read:
> >>> >>>> -
> >>> >>>>
> >>> >>>>
> >>> >>
> http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder
> >>> >>>>
> >>> >>>> Installing the JMeter CA certificate for HTTPS recording
> >>> >>>>
> >>> >>>>
> >>> >>>> --
> >>> >>>>
> >>> >>>> Regards
> >>> >>>> Ubik Load Pack <http://ubikloadpack.com> Team
> >>> >>>> Follow us on Twitter <http://twitter.com/ubikloadpack>
> >>> >>>>
> >>> >>>>
> >>> >>>> Cordialement
> >>> >>>> L'équipe Ubik Load Pack <http://ubikloadpack.com>
> >>> >>>> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
> >>> >>>>
> >>> >>>>
> >>> >>>>
> >>> >>>> On Thu, Jan 30, 2014 at 7:50 PM, Jayesh Guru <
> jayeshguru81@gmail.com>
> >>> >>>> wrote:
> >>> >>>>
> >>> >>>>> How to import certificate?
> >>> >>>>> I am really not getting through from the Mozilla browser for
> >>> >> recording.
> >>> >>>>> Appreciate help.
> >>> >>>>>
> >>> >>>>>
> >>> >>>>> Cheers,
> >>> >>>>> Jayesh
> >>> >>>>>
> >>> >>>>>> On Jan 25, 2014, at 7:35 AM, "Robin D. Wilson" <
> rwilson2@gmail.com>
> >>> >>>>> wrote:
> >>> >>>>>>
> >>> >>>>>> 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 <
> jayeshguru81@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 <
> >>> >> jayeshguru81@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 <
> >>> >> jayeshguru81@gmail.com
> >>> >>>>>> 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 <
> >>> >>>>> charan.sethi1@gmail.com>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 <
> >>> >>>> jayeshguru81@gmail.com
> >>> >>>>>> 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*
> >>> >>>>>>>>>>
> >>> >>>>>>>>>
> >>> >>>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>
> >>> >>>>>>
> >>> >>>>>>
> >>> >>
> ---------------------------------------------------------------------
> >>> >>>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> >>> >>>>>> For additional commands, e-mail: user-help@jmeter.apache.org
> >>> >>>>>>
> >>> >>>>>
> >>> >>>>>
> ---------------------------------------------------------------------
> >>> >>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> >>> >>>>> For additional commands, e-mail: user-help@jmeter.apache.org
> >>> >>>>>
> >>> >>>>>
> >>> >>>>
> >>> >>>>
> >>> >>>> -
> >>> >>>>
> >>> >>>
> >>> >>>
> >>> >>
> >
>

Performance Test of J2EE appication having Swing Client

Posted by Deepak V A <de...@hotmail.com>.
Hi,

 

Please let me know if it is possible to do a performance testing of a J2EE application deployed on a weblogic server having a Java Swing based client.

 

The intention is not to test the Java Swing client, but the J2EE application. We do not have a browser based client. 

 

 

Regards

Deepak