cancel
Showing results for 
Search instead for 
Did you mean: 

Property values in Xpath Assertions

SOLVED
Highlighted
New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Property values in Xpath Assertions

You should be able add single quotes around

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

 

Please see the attached image.



Regards,
Rao.

View solution in original post

2 REPLIES 2
Community Hero

Re: Property values in Xpath Assertions

You should be able add single quotes around

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

 

Please see the attached image.



Regards,
Rao.

View solution in original post

Highlighted
New Contributor

Re: Property values in Xpath Assertions

Hi,

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

 

All the best

 

vladimiro

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors