You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Krishna Kanth B. N." <Kr...@infosys.com> on 2012/12/05 12:45:20 UTC

RE: while Doing playback JMeter script not updating the database

Hi,

Need your input for executing the recorded script in JMeter.

We  are running JMeter for load testing a Dot Net Application(MVC & SQL server).

We recorded the script for user Login, saved some sample data through the application screen and Logged out. During the recording controller data has been saved in DB.

When we  are  trying to run the recorded script in JMeter, "View Result Tree" shows that each request was successfully executed, but data is not getting saved in DB.

Also in the view results tree the response data is showing only the login page even if we  are selecting some other request also.

Please let us know if anybody has faced similar issue earlier also and any pointer on how we can resolve this issue will be helpful.

Thanks in advance.

Thanks & Regards,
KrishnaKanth B N | Infosys Tools Group<http://sparsh/v1/myUnit/QD/QD_products_tools_group.htm>
Desk - 82202 | Voice IP - 80 391 19286 | Cell -  +91 92412 41972

[Description: Description: Description: Description: Description: Description: Description: Description: Description: Description: Infosys_BTE_Sep_14_Logo_Mail_Petite]<http://www.infosys.com/>

[Description: cid:image002.png@01CDC8B7.13CACA80]<http://sparsh/v1/myUnit/QD/QD_Tools_events.htm>



**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Re: while Doing playback JMeter script not updating the database

Posted by Shaba K <sh...@gmail.com>.
Not sure if you have done this ...

While recording capture header managers too ..

& then look at points mentioned by Sergio & Shmuel

You will need to capture them from a request & post them when you POST data.

Hope this helps

Cheers,
S

On Wed, Dec 5, 2012 at 2:06 PM, Sergio Boso <se...@bosoconsulting.it>wrote:

> Il 05/12/2012 13:44, Shmuel Krakower ha scritto:
>
>  Hi,
>> Sounds like the login step is either failing or you just don't save the
>> session cookie at JMeter side.
>> First verify that the response body of the login shows a successful login
>> and if it does, then try adding a session manager to your test plan.
>>
>> Shmuel Krakower.
>> www.Beatsoo.org - re-use your jmeter scripts for application performance
>> monitoring from worldwide locations for free.
>>
>>  Another possibility comes from a wrong management of .NET browser
> variables.
> These are named like __ViewState, but in some case there are more than one
> (it is implementation dependent).
>
> These variables change at each page, and so it must be extracted and
> reused in the following POST:
> failing to do that returns unpredictable results.
>
> HTH
>
> Sergio
>
>
>
>> On Wed, Dec 5, 2012 at 1:45 PM, Krishna Kanth B. N. <
>> KrishnaKanth_BN@infosys.com> wrote:
>>
>>    Hi,****
>>>
>>> ** **
>>>
>>> Need your input for executing the recorded script in JMeter.****
>>>
>>> ** **
>>>
>>>
>>>
>
> --
>
> Ing. Sergio Boso
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<us...@jmeter.apache.org>
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: while Doing playback JMeter script not updating the database

Posted by Sergio Boso <se...@bosoconsulting.it>.
Il 05/12/2012 13:44, Shmuel Krakower ha scritto:
> Hi,
> Sounds like the login step is either failing or you just don't save the
> session cookie at JMeter side.
> First verify that the response body of the login shows a successful login
> and if it does, then try adding a session manager to your test plan.
>
> Shmuel Krakower.
> www.Beatsoo.org - re-use your jmeter scripts for application performance
> monitoring from worldwide locations for free.
>
Another possibility comes from a wrong management of .NET browser variables.
These are named like __ViewState, but in some case there are more than one (it is implementation dependent).

These variables change at each page, and so it must be extracted and reused in the following POST:
failing to do that returns unpredictable results.

HTH

Sergio

>
> On Wed, Dec 5, 2012 at 1:45 PM, Krishna Kanth B. N. <
> KrishnaKanth_BN@infosys.com> wrote:
>
>>   Hi,****
>>
>> ** **
>>
>> Need your input for executing the recorded script in JMeter.****
>>
>> ** **
>>
>>


-- 

Ing. Sergio Boso




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


Re: while Doing playback JMeter script not updating the database

Posted by Shmuel Krakower <sh...@gmail.com>.
Hi,
Sounds like the login step is either failing or you just don't save the
session cookie at JMeter side.
First verify that the response body of the login shows a successful login
and if it does, then try adding a session manager to your test plan.

Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.



On Wed, Dec 5, 2012 at 1:45 PM, Krishna Kanth B. N. <
KrishnaKanth_BN@infosys.com> wrote:

>  Hi,****
>
> ** **
>
> Need your input for executing the recorded script in JMeter.****
>
> ** **
>
> We  are running JMeter for load testing a Dot Net Application(MVC & SQL
> server). ****
>
> ** **
>
> We recorded the script for user Login, saved some sample data through the
> application screen and Logged out. During the recording controller data has
> been saved in DB.****
>
> ** **
>
> When we  are  trying to run the recorded script in JMeter, “View Result
> Tree” shows that each request was successfully executed, but data is not
> getting saved in DB.****
>
> ** **
>
> Also in the view results tree the response data is showing only the login
> page even if we  are selecting some other request also.****
>
> ** **
>
> Please let us know if anybody has faced similar issue earlier also and any
> pointer on how we can resolve this issue will be helpful.****
>
> ** **
>
> Thanks in advance.****
>
> ** **
>
> Thanks & Regards,****
>
> *KrishnaKanth B N *|* **Infosys Tools Group<http://sparsh/v1/myUnit/QD/QD_products_tools_group.htm>
> ***
>
> Desk – *82202* | Voice IP – *80 391 19286 *| Cell -  +*91 92412 41972*****
>
> ** **
>
> [image: Description: Description: Description: Description: Description:
> Description: Description: Description: Description: Description:
> Infosys_BTE_Sep_14_Logo_Mail_Petite] <http://www.infosys.com/>****
>
> ** **
>
> [image: Description: cid:image002.png@01CDC8B7.13CACA80]<http://sparsh/v1/myUnit/QD/QD_Tools_events.htm>
> ****
>
> ** **
>
> ** **
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient, please
> notify the sender by e-mail and delete the original message. Further, you are not
> to copy, disclose, or distribute this e-mail or its contents to any other person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
> every reasonable precaution to minimize this risk, but is not liable for any damage
> you may sustain as a result of any virus in this e-mail. You should carry out your
> own virus checks before opening the e-mail or attachment. Infosys reserves the
> right to monitor and review the content of all messages sent to or from this e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
>