Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

propety transfer / assertions for element attributes

Hello,
This is more of feature request / support question.
We used to have our responses look something like
value
value
....

Since some of our responses were large due to the number of elements, our development team is thinking of using element attributes rather than separate elements. This cuts down the number of tags in the response and thereby reducing the message size.

So any response might look like


So my obvious question is, this will greatly affect how we have been scripting in terms of property transfers and assertions. Would it be possible to have some feature which lets you choose element attributes for property transfers and other features of soapui

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    you can select attributes in XPath with the '@' sign, for example to select the second attribute in your example you would use

    //Element/@attribute2

    Was this what you meant?

    regards!

    /Ole
    eviware.com