You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Deepak Goel <de...@gmail.com> on 2016/02/09 06:49:05 UTC

Dynamic Script Recording in Jmeter

Hey

I am trying to record a dynamic script in Jmeter for the URL (www.mednxt.com).
There is a login option and I enter the username and password for it. From
the browser it works fine.

When I create a script in Jmeter and enter the url (
http://www.mednxt.com/Home/Login) and the parameter values (username,
password) and run the test, it gives 100% errors.

Can you please help? How do I debug this issue?

Deepak

   --
Keigu

Deepak
73500 12833
www.simtree.net, deepak@simtree.net
deicool@gmail.com

LinkedIn: www.linkedin.com/in/deicool
Skype: thumsupdeicool
Google talk: deicool
Blog: http://loveandfearless.wordpress.com
Facebook: http://www.facebook.com/deicool

"Contribute to the world, environment and more : http://www.gridrepublic.org
"

RE: Dynamic Script Recording in Jmeter

Posted by Ryabtsev Vladimir <v....@pflb.ru>.
Off-top, but Fiddler doesn't require browser to be on Windows. And it doesn't make any hooks to browser. It easily web-proxy and it can be used with any browser on any operating system after respective setup of proxy configuration.
The only limitation - you must have Windows machine to run Fiddler itself.

--
VR

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Tuesday, February 09, 2016 7:18 PM
To: JMeter Users List
Subject: Re: Dynamic Script Recording in Jmeter

Hi
why does your URL have square brackets ? http://[http://www.mednxt.com]/ ?
if you are extracting this or reading it from somewhere , check it.

Also note you have provided a username/password to this mailing list - probably best to change the password.
Fiddler is a proxy that hooks into your browser so as long as your browser is on windows , it can be used for debug purposes - it doesnt matter what your application(Server) is on. You can use this to compare browser requests with jmeter requests.

regards
deepak

On Mon, Feb 8, 2016 at 10:32 PM, Deepak Goel <de...@gmail.com> wrote:

> Thank You I did
>
> It gives the following result:
>
> Thread Name: Thread Group 1-5
> Sample Start: 2016-02-09 12:01:12 IST
> Load time: 0
> Latency: 0
> Size in bytes: 1219
> Headers size in bytes: 0
> Body size in bytes: 1219
> Sample Count: 1
> Error Count: 1
> Response code: Non HTTP response code: java.net.URISyntaxException 
> Response message: Non HTTP response message: Expected closing bracket 
> for
> IPv6 address at index 13: http://[http://www.mednxt.com
> ]/Home/Login?UserName=ray_rahul@hotmail.com&Password=Mednxt@2001
> &ContentType=application/x-www-form-urlencoded;
> charset=UTF-8&DataEncoding=4
>
> Response headers:
>
>
> HTTPSampleResult fields:
> ContentType:
> DataEncoding: null
>
> Hey
>
> Namaskara~Nalama~Guten Tag~Bonjour
>
>
>    --
> Keigu
>
> Deepak
> 73500 12833
> www.simtree.net, deepak@simtree.net
> deicool@gmail.com
>
> LinkedIn: www.linkedin.com/in/deicool
> Skype: thumsupdeicool
> Google talk: deicool
> Blog: http://loveandfearless.wordpress.com
> Facebook: http://www.facebook.com/deicool
>
> "Contribute to the world, environment and more :
> http://www.gridrepublic.org
> "
>
> On Tue, Feb 9, 2016 at 11:25 AM, paul baboo <pa...@gmail.com> wrote:
>
> > Add a listener "view results tree" available in jmeter to debug what 
> > is
> the
> > error.May be that can fix the issue
> >
> > On Tue, Feb 9, 2016 at 11:19 AM, Deepak Goel <de...@gmail.com> wrote:
> >
> > > Hey
> > >
> > > I am trying to record a dynamic script in Jmeter for the URL ( 
> > > www.mednxt.com).
> > > There is a login option and I enter the username and password for it.
> > From
> > > the browser it works fine.
> > >
> > > When I create a script in Jmeter and enter the url (
> > > http://www.mednxt.com/Home/Login) and the parameter values 
> > > (username,
> > > password) and run the test, it gives 100% errors.
> > >
> > > Can you please help? How do I debug this issue?
> > >
> > > Deepak
> > >
> > >    --
> > > Keigu
> > >
> > > Deepak
> > > 73500 12833
> > > www.simtree.net, deepak@simtree.net deicool@gmail.com
> > >
> > > LinkedIn: www.linkedin.com/in/deicool
> > > Skype: thumsupdeicool
> > > Google talk: deicool
> > > Blog: http://loveandfearless.wordpress.com
> > > Facebook: http://www.facebook.com/deicool
> > >
> > > "Contribute to the world, environment and more :
> > > http://www.gridrepublic.org
> > > "
> > >
> >
>

Re: Dynamic Script Recording in Jmeter

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
why does your URL have square brackets ? http://[http://www.mednxt.com]/ ?
if you are extracting this or reading it from somewhere , check it.

Also note you have provided a username/password to this mailing list -
probably best to change the password.
Fiddler is a proxy that hooks into your browser so as long as your browser
is on windows , it can be used for debug purposes - it doesnt matter what
your application(Server) is on. You can use this to compare browser
requests with jmeter requests.

regards
deepak

On Mon, Feb 8, 2016 at 10:32 PM, Deepak Goel <de...@gmail.com> wrote:

> Thank You I did
>
> It gives the following result:
>
> Thread Name: Thread Group 1-5
> Sample Start: 2016-02-09 12:01:12 IST
> Load time: 0
> Latency: 0
> Size in bytes: 1219
> Headers size in bytes: 0
> Body size in bytes: 1219
> Sample Count: 1
> Error Count: 1
> Response code: Non HTTP response code: java.net.URISyntaxException
> Response message: Non HTTP response message: Expected closing bracket for
> IPv6 address at index 13: http://[http://www.mednxt.com
> ]/Home/Login?UserName=ray_rahul@hotmail.com&Password=Mednxt@2001
> &ContentType=application/x-www-form-urlencoded;
> charset=UTF-8&DataEncoding=4
>
> Response headers:
>
>
> HTTPSampleResult fields:
> ContentType:
> DataEncoding: null
>
> Hey
>
> Namaskara~Nalama~Guten Tag~Bonjour
>
>
>    --
> Keigu
>
> Deepak
> 73500 12833
> www.simtree.net, deepak@simtree.net
> deicool@gmail.com
>
> LinkedIn: www.linkedin.com/in/deicool
> Skype: thumsupdeicool
> Google talk: deicool
> Blog: http://loveandfearless.wordpress.com
> Facebook: http://www.facebook.com/deicool
>
> "Contribute to the world, environment and more :
> http://www.gridrepublic.org
> "
>
> On Tue, Feb 9, 2016 at 11:25 AM, paul baboo <pa...@gmail.com> wrote:
>
> > Add a listener "view results tree" available in jmeter to debug what is
> the
> > error.May be that can fix the issue
> >
> > On Tue, Feb 9, 2016 at 11:19 AM, Deepak Goel <de...@gmail.com> wrote:
> >
> > > Hey
> > >
> > > I am trying to record a dynamic script in Jmeter for the URL (
> > > www.mednxt.com).
> > > There is a login option and I enter the username and password for it.
> > From
> > > the browser it works fine.
> > >
> > > When I create a script in Jmeter and enter the url (
> > > http://www.mednxt.com/Home/Login) and the parameter values (username,
> > > password) and run the test, it gives 100% errors.
> > >
> > > Can you please help? How do I debug this issue?
> > >
> > > Deepak
> > >
> > >    --
> > > Keigu
> > >
> > > Deepak
> > > 73500 12833
> > > www.simtree.net, deepak@simtree.net
> > > deicool@gmail.com
> > >
> > > LinkedIn: www.linkedin.com/in/deicool
> > > Skype: thumsupdeicool
> > > Google talk: deicool
> > > Blog: http://loveandfearless.wordpress.com
> > > Facebook: http://www.facebook.com/deicool
> > >
> > > "Contribute to the world, environment and more :
> > > http://www.gridrepublic.org
> > > "
> > >
> >
>

Re: Dynamic Script Recording in Jmeter

Posted by Deepak Goel <de...@gmail.com>.
Thank You I did

It gives the following result:

Thread Name: Thread Group 1-5
Sample Start: 2016-02-09 12:01:12 IST
Load time: 0
Latency: 0
Size in bytes: 1219
Headers size in bytes: 0
Body size in bytes: 1219
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: java.net.URISyntaxException
Response message: Non HTTP response message: Expected closing bracket for
IPv6 address at index 13: http://[http://www.mednxt.com
]/Home/Login?UserName=ray_rahul@hotmail.com&Password=Mednxt@2001&ContentType=application/x-www-form-urlencoded;
charset=UTF-8&DataEncoding=4

Response headers:


HTTPSampleResult fields:
ContentType:
DataEncoding: null

Hey

Namaskara~Nalama~Guten Tag~Bonjour


   --
Keigu

Deepak
73500 12833
www.simtree.net, deepak@simtree.net
deicool@gmail.com

LinkedIn: www.linkedin.com/in/deicool
Skype: thumsupdeicool
Google talk: deicool
Blog: http://loveandfearless.wordpress.com
Facebook: http://www.facebook.com/deicool

"Contribute to the world, environment and more : http://www.gridrepublic.org
"

On Tue, Feb 9, 2016 at 11:25 AM, paul baboo <pa...@gmail.com> wrote:

> Add a listener "view results tree" available in jmeter to debug what is the
> error.May be that can fix the issue
>
> On Tue, Feb 9, 2016 at 11:19 AM, Deepak Goel <de...@gmail.com> wrote:
>
> > Hey
> >
> > I am trying to record a dynamic script in Jmeter for the URL (
> > www.mednxt.com).
> > There is a login option and I enter the username and password for it.
> From
> > the browser it works fine.
> >
> > When I create a script in Jmeter and enter the url (
> > http://www.mednxt.com/Home/Login) and the parameter values (username,
> > password) and run the test, it gives 100% errors.
> >
> > Can you please help? How do I debug this issue?
> >
> > Deepak
> >
> >    --
> > Keigu
> >
> > Deepak
> > 73500 12833
> > www.simtree.net, deepak@simtree.net
> > deicool@gmail.com
> >
> > LinkedIn: www.linkedin.com/in/deicool
> > Skype: thumsupdeicool
> > Google talk: deicool
> > Blog: http://loveandfearless.wordpress.com
> > Facebook: http://www.facebook.com/deicool
> >
> > "Contribute to the world, environment and more :
> > http://www.gridrepublic.org
> > "
> >
>

Re: Dynamic Script Recording in Jmeter

Posted by paul baboo <pa...@gmail.com>.
Add a listener "view results tree" available in jmeter to debug what is the
error.May be that can fix the issue

On Tue, Feb 9, 2016 at 11:19 AM, Deepak Goel <de...@gmail.com> wrote:

> Hey
>
> I am trying to record a dynamic script in Jmeter for the URL (
> www.mednxt.com).
> There is a login option and I enter the username and password for it. From
> the browser it works fine.
>
> When I create a script in Jmeter and enter the url (
> http://www.mednxt.com/Home/Login) and the parameter values (username,
> password) and run the test, it gives 100% errors.
>
> Can you please help? How do I debug this issue?
>
> Deepak
>
>    --
> Keigu
>
> Deepak
> 73500 12833
> www.simtree.net, deepak@simtree.net
> deicool@gmail.com
>
> LinkedIn: www.linkedin.com/in/deicool
> Skype: thumsupdeicool
> Google talk: deicool
> Blog: http://loveandfearless.wordpress.com
> Facebook: http://www.facebook.com/deicool
>
> "Contribute to the world, environment and more :
> http://www.gridrepublic.org
> "
>

Re: Dynamic Script Recording in Jmeter

Posted by Deepak Goel <de...@gmail.com>.
I checked Fiddler
https://www.telerik.com/download/fiddler

It tells it can be used only for .Net technologies

Hey

Namaskara~Nalama~Guten Tag~Bonjour


   --
Keigu

Deepak
73500 12833
www.simtree.net, deepak@simtree.net
deicool@gmail.com

LinkedIn: www.linkedin.com/in/deicool
Skype: thumsupdeicool
Google talk: deicool
Blog: http://loveandfearless.wordpress.com
Facebook: http://www.facebook.com/deicool

"Contribute to the world, environment and more : http://www.gridrepublic.org
"

On Tue, Feb 9, 2016 at 11:21 AM, Nitin <ni...@gmail.com> wrote:

> You can try using Fiddler to see what is the difference between browser and
> JMeter generated HTTP request.
> On Feb 9, 2016 11:19 AM, "Deepak Goel" <de...@gmail.com> wrote:
>
> > Hey
> >
> > I am trying to record a dynamic script in Jmeter for the URL (
> > www.mednxt.com).
> > There is a login option and I enter the username and password for it.
> From
> > the browser it works fine.
> >
> > When I create a script in Jmeter and enter the url (
> > http://www.mednxt.com/Home/Login) and the parameter values (username,
> > password) and run the test, it gives 100% errors.
> >
> > Can you please help? How do I debug this issue?
> >
> > Deepak
> >
> >    --
> > Keigu
> >
> > Deepak
> > 73500 12833
> > www.simtree.net, deepak@simtree.net
> > deicool@gmail.com
> >
> > LinkedIn: www.linkedin.com/in/deicool
> > Skype: thumsupdeicool
> > Google talk: deicool
> > Blog: http://loveandfearless.wordpress.com
> > Facebook: http://www.facebook.com/deicool
> >
> > "Contribute to the world, environment and more :
> > http://www.gridrepublic.org
> > "
> >
>

Re: Dynamic Script Recording in Jmeter

Posted by Nitin <ni...@gmail.com>.
You can try using Fiddler to see what is the difference between browser and
JMeter generated HTTP request.
On Feb 9, 2016 11:19 AM, "Deepak Goel" <de...@gmail.com> wrote:

> Hey
>
> I am trying to record a dynamic script in Jmeter for the URL (
> www.mednxt.com).
> There is a login option and I enter the username and password for it. From
> the browser it works fine.
>
> When I create a script in Jmeter and enter the url (
> http://www.mednxt.com/Home/Login) and the parameter values (username,
> password) and run the test, it gives 100% errors.
>
> Can you please help? How do I debug this issue?
>
> Deepak
>
>    --
> Keigu
>
> Deepak
> 73500 12833
> www.simtree.net, deepak@simtree.net
> deicool@gmail.com
>
> LinkedIn: www.linkedin.com/in/deicool
> Skype: thumsupdeicool
> Google talk: deicool
> Blog: http://loveandfearless.wordpress.com
> Facebook: http://www.facebook.com/deicool
>
> "Contribute to the world, environment and more :
> http://www.gridrepublic.org
> "
>