Script fails in second iteration

995 views
Skip to first unread message

Rekha S

unread,
Feb 14, 2012, 2:26:36 AM2/14/12
to LoadRunner
Hi,

I am working on webtop application - Search criteria. Our Business
transaction should be recorded in the following way. 1 time login,
perform the action for many iterations and logout.

Vuser init - Launch and Login
Action - Search
Vuser end - Logout

first iteration is working fine. It started throwing error message
when second iteration is started.
Script is working is when I keep all the transactions in the Action
with n number of iterations.

Error in web_reg_find(.... ) from second iteration.

Note: Session id is correlated but it was nt used in the script.

What I tried : unchecked simulate a new user on each iteration.

Can you please help me???

Regards
Rekha S

Harish Raj

unread,
Feb 14, 2012, 7:03:27 AM2/14/12
to lr-loa...@googlegroups.com

Hi Rekha,
Did you try with multiple data?Try to login with different user ids ....also check if the session still persists even after logout....

Cheers,
Harish Raj

Sent via Galaxy S2

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Gaurav Mishra

unread,
Feb 14, 2012, 7:49:58 AM2/14/12
to lr-loa...@googlegroups.com
i think data used in your script is not reusable check again .

or may be previous session is not logout properly so this session is not doing.

i can give many speculation at this point with provided information.

but i suggest you should analyse it, check page of the request which is failing, check pages before this request. if you find something then look for possible reason behind it.

let us know ur findings

pavan kumar

unread,
Feb 14, 2012, 8:55:22 AM2/14/12
to lr-loa...@googlegroups.com
Hi Rekha,
 
just give a try with this:1) check the "Simulate a new user on each iteration" also check the "Clear Cache on each iteration".
 
Hope it works.
 
Thanks,
Pavan

Raj

unread,
Feb 14, 2012, 5:15:59 PM2/14/12
to LoadRunner
Correlate the "page_index_value_0=0" part.... Both, first and second
occurring 0 (zeros) should be correlated.

** If you observe carefully with the client's request in the first and
second iteration, you will find this out.

akshay mihir

unread,
Feb 15, 2012, 2:09:22 AM2/15/12
to LoadRunner
Hi:

Try different combinations in browser emulation settings and see
whether clearing or not clearing cache helps! Still find it strange
that session id is not used!!!!!

All the best

Akshay

pramod phophalia

unread,
Feb 15, 2012, 11:47:25 PM2/15/12
to lr-loa...@googlegroups.com
HI,

Could it possible to share the Script??

Thanks
Pramod

Manmohan sharma

unread,
Feb 16, 2012, 2:25:36 PM2/16/12
to LoadRunner
HI Rekha,

as you stated:Script is working is when I keep all the transactions in
the Action
with n number of iterations.
So i suspect that a value that is correlated in init section is used
in action part.

If you share what exact error msg you are getting by changing settings
to extended log it would be realy helpfull to suggest further.

Try checking any warning or errors in replay logs after running the
script, maybe it gives you an idea of some missing block.

On Feb 14, 12:26 pm, Rekha S <shim.ja...@gmail.com> wrote:

Gugulothu Bheem

unread,
Feb 16, 2012, 4:40:00 PM2/16/12
to lr-loa...@googlegroups.com, shim....@gmail.com

Open the Parameter type file in which you are iterating the User data please make the below changes

 
. Select next row-Unique
. Update value on-once
 
Play back the script and check now it may  work
 
Thanks,
Bhimudu

Gugulothu Bheem

unread,
Feb 16, 2012, 4:48:16 PM2/16/12
to lr-loa...@googlegroups.com, shim....@gmail.com
or  make changes in the web_reg_find function
 
web_reg_find("Text=Hellow", "Search=Body", LAST);
 
instead of Search=Body give Search=ALL /search=Header

Rekha S

unread,
Feb 17, 2012, 1:36:08 AM2/17/12
to LoadRunner
Hi All,

Thanks for the valuable suggestion.

I used random for Select next row.

Web_reg_find is not able to search the word in the page as it
displayed history released page which is not the requested page.

Regards
Rekha S

Prajeesh Nair

unread,
Feb 25, 2012, 9:05:45 AM2/25/12
to LR-Loa...@googlegroups.com
Hi,

I'm just trying to understand. What do you mean by history released page.
Are you referring to cache?

Reply all
Reply to author
Forward
0 new messages