Not able to login through JMeter script

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Not able to login through JMeter script

Pravesh Shrivastava
Hi All,

I am using JMeter for Load Testing of my application. I have done all the
correlations but still login is failing. While after following the same
steps NeoLoad and LoadRuner are logging in.

I have added cookie manager but not added cache manager.

Kindly let me know if cache manager is required and what is the
significance of using cache?

--
Regards
Pravesh Shrivastava
+91-7755918521
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

Muhammad Nasir
check that the correct values are passing in your request.

On Sat, Jan 13, 2018 at 12:14 PM, Pravesh Shrivastava <
[hidden email]> wrote:

> Hi All,
>
> I am using JMeter for Load Testing of my application. I have done all the
> correlations but still login is failing. While after following the same
> steps NeoLoad and LoadRuner are logging in.
>
> I have added cookie manager but not added cache manager.
>
> Kindly let me know if cache manager is required and what is the
> significance of using cache?
>
> --
> Regards
> Pravesh Shrivastava
> +91-7755918521
>



--
*Muhammad Nasir*
Team Lead - Software Quality Assurance
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

shettyd
In reply to this post by Pravesh Shrivastava
Hi
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cache_Manager
Shouldnt be related to your problem

You need to check every request/response and see whats different

On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
[hidden email]> wrote:

> Hi All,
>
> I am using JMeter for Load Testing of my application. I have done all the
> correlations but still login is failing. While after following the same
> steps NeoLoad and LoadRuner are logging in.
>
> I have added cookie manager but not added cache manager.
>
> Kindly let me know if cache manager is required and what is the
> significance of using cache?
>
> --
> Regards
> Pravesh Shrivastava
> +91-7755918521
>
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

Pravesh Shrivastava
Thanks Muhammad and Deepak for your response.

I got the problem. JMeter is not capturing 2 values in header of requests.
And even after adding values to header manually it is not accepting. Could
you guys please help me in adding values in header manager for each
requests?

Thanks,
Pravesh Shrivastava

On Jan 17, 2018 02:41, "Deepak Shetty" <[hidden email]> wrote:

> Hi
> http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cache_
> Manager
> Shouldnt be related to your problem
>
> You need to check every request/response and see whats different
>
> On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
> [hidden email]> wrote:
>
> > Hi All,
> >
> > I am using JMeter for Load Testing of my application. I have done all the
> > correlations but still login is failing. While after following the same
> > steps NeoLoad and LoadRuner are logging in.
> >
> > I have added cookie manager but not added cache manager.
> >
> > Kindly let me know if cache manager is required and what is the
> > significance of using cache?
> >
> > --
> > Regards
> > Pravesh Shrivastava
> > +91-7755918521
> >
>
Das
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

Das
Hi Pravesh,

The header values are changing in each iteration? Look into the ViewResults
tree requests header during the recording. Compare the same with your
original request which you sending during the run.  If they are changing,
then you have to correlate them.

I don't see why JMeter won't capture the header values. As it is working in
Neoload, it should work in JMeter as well. JMeter is quite similar to
Neoload.

On Wed, Jan 17, 2018 at 10:48 AM, Pravesh Shrivastava <
[hidden email]> wrote:

> Thanks Muhammad and Deepak for your response.
>
> I got the problem. JMeter is not capturing 2 values in header of requests.
> And even after adding values to header manually it is not accepting. Could
> you guys please help me in adding values in header manager for each
> requests?
>
> Thanks,
> Pravesh Shrivastava
>
> On Jan 17, 2018 02:41, "Deepak Shetty" <[hidden email]> wrote:
>
> > Hi
> > http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cache_
> > Manager
> > Shouldnt be related to your problem
> >
> > You need to check every request/response and see whats different
> >
> > On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
> > [hidden email]> wrote:
> >
> > > Hi All,
> > >
> > > I am using JMeter for Load Testing of my application. I have done all
> the
> > > correlations but still login is failing. While after following the same
> > > steps NeoLoad and LoadRuner are logging in.
> > >
> > > I have added cookie manager but not added cache manager.
> > >
> > > Kindly let me know if cache manager is required and what is the
> > > significance of using cache?
> > >
> > > --
> > > Regards
> > > Pravesh Shrivastava
> > > +91-7755918521
> > >
> >
>



--
Thanks & Regards,
Bhabani Sankar Das
Contact No : +358 - 469334437
Helsinki
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

Pravesh Shrivastava
I checked, it is changing. I have correlated them. But even after passing
the name and value in header manager, it is not being passed to request
during execution.

On Jan 17, 2018 14:26, "Bhabani Sankar Das" <[hidden email]>
wrote:

> Hi Pravesh,
>
> The header values are changing in each iteration? Look into the ViewResults
> tree requests header during the recording. Compare the same with your
> original request which you sending during the run.  If they are changing,
> then you have to correlate them.
>
> I don't see why JMeter won't capture the header values. As it is working in
> Neoload, it should work in JMeter as well. JMeter is quite similar to
> Neoload.
>
> On Wed, Jan 17, 2018 at 10:48 AM, Pravesh Shrivastava <
> [hidden email]> wrote:
>
> > Thanks Muhammad and Deepak for your response.
> >
> > I got the problem. JMeter is not capturing 2 values in header of
> requests.
> > And even after adding values to header manually it is not accepting.
> Could
> > you guys please help me in adding values in header manager for each
> > requests?
> >
> > Thanks,
> > Pravesh Shrivastava
> >
> > On Jan 17, 2018 02:41, "Deepak Shetty" <[hidden email]> wrote:
> >
> > > Hi
> > > http://jmeter.apache.org/usermanual/component_
> reference.html#HTTP_Cache_
> > > Manager
> > > Shouldnt be related to your problem
> > >
> > > You need to check every request/response and see whats different
> > >
> > > On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
> > > [hidden email]> wrote:
> > >
> > > > Hi All,
> > > >
> > > > I am using JMeter for Load Testing of my application. I have done all
> > the
> > > > correlations but still login is failing. While after following the
> same
> > > > steps NeoLoad and LoadRuner are logging in.
> > > >
> > > > I have added cookie manager but not added cache manager.
> > > >
> > > > Kindly let me know if cache manager is required and what is the
> > > > significance of using cache?
> > > >
> > > > --
> > > > Regards
> > > > Pravesh Shrivastava
> > > > +91-7755918521
> > > >
> > >
> >
>
>
>
> --
> Thanks & Regards,
> Bhabani Sankar Das
> Contact No : +358 - 469334437
> Helsinki
>
Das
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

Das
Strange. Not being passed at all or passing wrong value?

Just for curiosity, Are you passing the header manager with each request or
globally?

On Wed, Jan 17, 2018 at 10:59 AM, Pravesh Shrivastava <
[hidden email]> wrote:

> I checked, it is changing. I have correlated them. But even after passing
> the name and value in header manager, it is not being passed to request
> during execution.
>
> On Jan 17, 2018 14:26, "Bhabani Sankar Das" <[hidden email]>
> wrote:
>
> > Hi Pravesh,
> >
> > The header values are changing in each iteration? Look into the
> ViewResults
> > tree requests header during the recording. Compare the same with your
> > original request which you sending during the run.  If they are changing,
> > then you have to correlate them.
> >
> > I don't see why JMeter won't capture the header values. As it is working
> in
> > Neoload, it should work in JMeter as well. JMeter is quite similar to
> > Neoload.
> >
> > On Wed, Jan 17, 2018 at 10:48 AM, Pravesh Shrivastava <
> > [hidden email]> wrote:
> >
> > > Thanks Muhammad and Deepak for your response.
> > >
> > > I got the problem. JMeter is not capturing 2 values in header of
> > requests.
> > > And even after adding values to header manually it is not accepting.
> > Could
> > > you guys please help me in adding values in header manager for each
> > > requests?
> > >
> > > Thanks,
> > > Pravesh Shrivastava
> > >
> > > On Jan 17, 2018 02:41, "Deepak Shetty" <[hidden email]> wrote:
> > >
> > > > Hi
> > > > http://jmeter.apache.org/usermanual/component_
> > reference.html#HTTP_Cache_
> > > > Manager
> > > > Shouldnt be related to your problem
> > > >
> > > > You need to check every request/response and see whats different
> > > >
> > > > On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
> > > > [hidden email]> wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > > I am using JMeter for Load Testing of my application. I have done
> all
> > > the
> > > > > correlations but still login is failing. While after following the
> > same
> > > > > steps NeoLoad and LoadRuner are logging in.
> > > > >
> > > > > I have added cookie manager but not added cache manager.
> > > > >
> > > > > Kindly let me know if cache manager is required and what is the
> > > > > significance of using cache?
> > > > >
> > > > > --
> > > > > Regards
> > > > > Pravesh Shrivastava
> > > > > +91-7755918521
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > Thanks & Regards,
> > Bhabani Sankar Das
> > Contact No : +358 - 469334437
> > Helsinki
> >
>



--
Thanks & Regards,
Bhabani Sankar Das
Contact No : +358 - 469334437
Helsinki
Reply | Threaded
Open this post in threaded view
|

Re: Not able to login through JMeter script

Pravesh Shrivastava
Hi Bhabani,

I got one solution but need to add Pre processor to add something in
cookie. I am new to beanshell and Groovy. If you have any idea or code
please share with me.

On Jan 17, 2018 14:42, "Bhabani Sankar Das" <[hidden email]>
wrote:

> Strange. Not being passed at all or passing wrong value?
>
> Just for curiosity, Are you passing the header manager with each request or
> globally?
>
> On Wed, Jan 17, 2018 at 10:59 AM, Pravesh Shrivastava <
> [hidden email]> wrote:
>
> > I checked, it is changing. I have correlated them. But even after passing
> > the name and value in header manager, it is not being passed to request
> > during execution.
> >
> > On Jan 17, 2018 14:26, "Bhabani Sankar Das" <[hidden email]>
> > wrote:
> >
> > > Hi Pravesh,
> > >
> > > The header values are changing in each iteration? Look into the
> > ViewResults
> > > tree requests header during the recording. Compare the same with your
> > > original request which you sending during the run.  If they are
> changing,
> > > then you have to correlate them.
> > >
> > > I don't see why JMeter won't capture the header values. As it is
> working
> > in
> > > Neoload, it should work in JMeter as well. JMeter is quite similar to
> > > Neoload.
> > >
> > > On Wed, Jan 17, 2018 at 10:48 AM, Pravesh Shrivastava <
> > > [hidden email]> wrote:
> > >
> > > > Thanks Muhammad and Deepak for your response.
> > > >
> > > > I got the problem. JMeter is not capturing 2 values in header of
> > > requests.
> > > > And even after adding values to header manually it is not accepting.
> > > Could
> > > > you guys please help me in adding values in header manager for each
> > > > requests?
> > > >
> > > > Thanks,
> > > > Pravesh Shrivastava
> > > >
> > > > On Jan 17, 2018 02:41, "Deepak Shetty" <[hidden email]> wrote:
> > > >
> > > > > Hi
> > > > > http://jmeter.apache.org/usermanual/component_
> > > reference.html#HTTP_Cache_
> > > > > Manager
> > > > > Shouldnt be related to your problem
> > > > >
> > > > > You need to check every request/response and see whats different
> > > > >
> > > > > On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
> > > > > [hidden email]> wrote:
> > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am using JMeter for Load Testing of my application. I have done
> > all
> > > > the
> > > > > > correlations but still login is failing. While after following
> the
> > > same
> > > > > > steps NeoLoad and LoadRuner are logging in.
> > > > > >
> > > > > > I have added cookie manager but not added cache manager.
> > > > > >
> > > > > > Kindly let me know if cache manager is required and what is the
> > > > > > significance of using cache?
> > > > > >
> > > > > > --
> > > > > > Regards
> > > > > > Pravesh Shrivastava
> > > > > > +91-7755918521
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Thanks & Regards,
> > > Bhabani Sankar Das
> > > Contact No : +358 - 469334437
> > > Helsinki
> > >
> >
>
>
>
> --
> Thanks & Regards,
> Bhabani Sankar Das
> Contact No : +358 - 469334437
> Helsinki
>