Loadrunner + Flex + Correlation

80 views
Skip to first unread message

Krishnakanth PPS

unread,
Apr 30, 2010, 11:10:59 AM4/30/10
to LR-Loa...@googlegroups.com
Hi.

I have LR 9.52. Protocol is a flex. I see XML calls in flex_amf_calls.

I need to correlate as I am getting a session error.  But I dont see any information on session anywhere.

I am using lr_Xml_get_values, but it doesnt retrieve session ID for me anywhere.

Is there a function that cleans up sessions in flex.

Anyone worked on this sort of issue.

Thanks in Advance.
krishna a


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

Venkat

unread,
Apr 30, 2010, 11:36:12 AM4/30/10
to LoadRunner
are you correlating the DSID ? thats been common across various flex
apps and thats the one that need to be correlated first

On Apr 30, 11:10 am, Krishnakanth PPS <krishnakanth....@gmail.com>
wrote:

Krishnakanth PPS

unread,
Apr 30, 2010, 12:28:59 PM4/30/10
to lr-loa...@googlegroups.com
I think I found a lot of values that need to be correlated.

Can you show me a sample code. To be specific, what should go inside the XML argument of the lr_xml_get_values. How should the text go in there. 

Thats what is troubling me. I think i figured everything else out.

Thanks in advance.

Venkat P

unread,
Apr 30, 2010, 3:21:25 PM4/30/10
to lr-loa...@googlegroups.com
I would recommend spending an hour on this. fine demo on how to retrieve the values (Especially the DSId which he demos here)

http://hpbroadband.com/(S(3uelw04503pkjo55saxzlofd))/program.aspx?key=5831LoadRunner24March10  

Note that the lr_xml functions dont work like wrsp.. they operate differently. it fetches  vaue from within a captured xml response.

Its probably safe to ignore a number of dynamic values that appear to be client side generated (like the message id).

-Venkat

V.M.GURU PRASATH

unread,
Apr 30, 2010, 3:21:21 PM4/30/10
to lr-loa...@googlegroups.com
Hi Krishna,

To correlate a value in flex, you must first store the XML response in a parameter.

1. Go to Tree View of the corresponding request.
2. Click on Snapshot Tab (bottom)
3. Click on Response. on Top
4. Expand the XML Tree.
5. Browse through the tree for your value.
6. Go to the node above the value. Right click, and select the option "Save value in a parameter".
7. Provide the param name, node name ...
8. Click OK.
9. You will find the code generated in your script view.
10. The sample code generated will answer all your questions.

If required, you can add the argument "NotFound=Continue". to the lr_xml_get_values function.

Thanks and Regards,

V.M.Guruprasath

Krishnakanth PPS

unread,
Apr 30, 2010, 3:26:17 PM4/30/10
to lr-loa...@googlegroups.com
Hey Guru.

Thanks a lot for this. I actually had goine till step 5, but I didnt see anything that said Save Value in a Parameter. 

Let me try again and see if this works. 

Thanks again. 

@Venkat: Thanks for the Video. I been through it. Let me go through it again. Maybe I missed soimething.
Message has been deleted

V.M.GURU PRASATH

unread,
May 2, 2010, 9:48:51 AM5/2/10
to lr-loa...@googlegroups.com
Hi,

All I can understand from your post is like there is  a session problem.

Do you find any value like ";jsessionid=" and "<DSId>"?

If so, these values need to be correlated.

Thanks and regards,

V.M.Guruprasath

On Sun, May 2, 2010 at 11:39 AM, Krishnakanth PPS <krishnak...@gmail.com> wrote:
@Guru. 

Your steps helped me a lot. But I am still facing the same issue.

If I run 2 iterations, first one passes and second one fails. It gives me an error. This happens even if I run for 100 iterations :). alternate pass and alternate fail.

"Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly"

There were quite a few posts related to this.

But none of them tell me how to deal wih it. 

Anyone has any suggestions.

Krishnakanth PPS

unread,
May 2, 2010, 12:40:26 PM5/2/10
to lr-loa...@googlegroups.com
Yep.

It was a DSID issue.

It got solved.

Thanks a lot :)

pramod phophalia

unread,
Jun 7, 2010, 11:24:49 AM6/7/10
to lr-loa...@googlegroups.com
Hi Krishnakanth,
 
Can you please let me know how you correlated the DSID value?
 
Thanks
Pramod

Reply all
Reply to author
Forward
0 new messages