Forum Discussion

vladimiro's avatar
vladimiro
New Contributor
4 years ago
Solved

Property values in Xpath Assertions

Hi,

I have a XPath assertion like the following in SoapUI 5.6.

/count(
//*:BookItem
  /*:RoomPlansBooked
    /*:Room[@*:roomid=${#TestCase#roomid}]
)

but I do not manage to have the property value between quotes. I want it to resolve in something like this

/count(
//*:BookItem
  /*:RoomPlansBooked
    /*:Room[@*:roomid='my_room_id']
)

Any suggestions?

 

Best

 

Vladimiro

  • You should be able add single quotes around

    Room[@*:roomid='${#TestCase#roomid}']

     

    Please see the attached image.

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3

    You should be able add single quotes around

    Room[@*:roomid='${#TestCase#roomid}']

     

    Please see the attached image.

    • vladimiro's avatar
      vladimiro
      New Contributor

      Hi,

        thank you nrao, it works indeed. Silly me, I tried that but was getting error for other reasons. 

       

      All the best

       

      vladimiro