Forum Discussion

vladimiro's avatar
vladimiro
New Contributor
5 years ago

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.

  • 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