Ajax Click And SCRIPT Help

22 views
Skip to first unread message

bincy

unread,
May 18, 2010, 1:54:27 AM5/18/10
to LoadRunner
Hi guys,

i have recorded a script in web(http/html). but there are ajax calls
in it which is getting recorded as web-custom_request. the custom
request has view state which has to be correlated . I'm not able to
capture the value with web_reg_save_param[error: no such parameter
exists.check boundary values]
.For Replay the tree view shows no body in server response,but the
advanced trace shows the view state values.also the response in replay
log is in encoded format.
something lik \x00\x02 etc.,

1. i have set web_set_max_html_len to 999999

2.tried using web_convert_param to capture value and convert then
replace. but value is not being captured in 1st place.

3. i have tried changing the maxlen in configuration.xml file to
104000

4.tried using ajax click and script but some of the modal pop up
windows used are not working during replay, even after setting the
"EvalJavaScript "

5.I have tried recording in url mode also and i get the same custom
req with viewsatate tat i'm nt able 2 correlate...

can anybody tel me what mite be a workaround for this?

--
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

chaitanya bhatt

unread,
May 19, 2010, 4:49:02 AM5/19/10
to lr-loa...@googlegroups.com
-Check if the viewstate request has redirections(http response code 300-303,307), if yes set ignoreredirections=yes, this way a GET request will be sent to the redirected location instead of the first land page.

-I would also recommend you to request the developers to cut down on the traffic which the viewstate brings into the scenario, because a Viewstate is not just sent out to the client but also sent back to the server with each request. I'm saying this assuming that you are observing huge chunks of data in the viewstate. At times Viewstates are inadvertently implemented for controls which are never really used. Ideally, a viewstate of size anything beyond 100kb should be investigate/scrutinized and optimized to reduce the viewstate footprint.
 
-If the response is in html format then I suggest you use convert=HTML_TO_URL attribute in the web_reg_save_param() function. And since your saying your not able to view the server response I would suggest you to fetch the entire response through web_reg_save_param() with LB and RB parameters set to empty. Study the response and then find out the actual LB and RB because there are different types of viewstates, and it's extremely critical that you use the right boundaries.
 
Also, if your __ViewState data is sent through hidden fields then it would certainly be encoded using base64 scheme. You might have to use <glib.h>(*download it from the internet) header to use those C encode/decode routines.
 
To get better pointers I request you to send us the partial/full server response from the log?
 
-Chaitanya M Bhatt
Reply all
Reply to author
Forward
0 new messages