The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP / Mercury LoadRunner

MaxRussell
Member


Reged: 03/24/08
Posts: 232
Loc: Dundee
lr_xml_get_values, amf, VOs & arrays.
      01/23/09 06:06 AM

(catchy title, eh?)

I have a call that returns a Java VO, which I see in the decoded AMF in my script as an array. I would like to trap the entirety of this using lr_xml_get_values.

I have set up a response parameter on the call, then trap it using the normal syntax:

Code:
 	lr_xml_extract("XML={resp}",
"FastQuery=/AMFPacket/Messages/Message/AMF3/object/object-content/object-member[8]",
"XMLFragmentParam=patientvo"
"",
LAST);



I captured this parameter by using the tree representation, then right clicking the required node, seleting save xml as parameter.

The issue I have is that the call where the parameter is to be used looks like this:


Code:
  		"<object-dynamic-content><object-dynamic-member dynamicMemberName=\"DSEndpoint\">"
"<string>my-amf</string></object-dynamic-member><object-dynamic-member "
"dynamicMemberName=\"DSId\"><string>nil</string></object-dynamic-member>"
"</object-dynamic-content></object></object-member><object-member memberName="
"\"body\"><array arrayLength=\"1\"><array-members-part><array-member><object>"
"<object-class className=\"com.etc.VO\">"



however, it seems to omit the array when trapped:

Code:
  <object-member memberName="body">
<object>
<object-class className="com.etc.Vo"><object-member memberName="body">



Now these VOs are, as far as I can tell from talking to the developers and looking at the source the same, so why is the array part not being captured?

How can I remedy this, can I somehow edit the parameter for substitution?

--------------------
1. 9.5.2.
2. Flex
2.1 .Net will be used but isn't the main focus.
2.2 .NET 3.5 and 4.0
2.3 No
3. No
4. No
5. Not currently installed
6. Not currently installed
7. 250 users, perm
9. XP sp 2 on the clients. Red Hat 9 EL on the servers.
10. No

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* lr_xml_get_values, amf, VOs & arrays. MaxRussell 01/23/09 06:06 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 02:43 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. JakeBrake   01/27/09 03:01 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 03:45 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. JakeBrake   01/27/09 03:51 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 04:46 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. JakeBrake   01/27/09 04:59 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 05:02 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. JakeBrake   01/27/09 05:04 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 06:34 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 06:42 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/28/09 06:55 AM
. * * Re: lr_xml_get_values, amf, VOs & arrays. MaxRussell   01/27/09 04:52 AM

Extra information
0 registered and 42 anonymous users are browsing this forum.

Moderator:  AJ, James Pulley, ptrussell_nc, JimHowell1970 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 2146

Rate this thread

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5