cancel
Showing results for 
Search instead for 
Did you mean: 

Escaping $ in asserted XML Xpath Match

SOLVED
pmrostal
New Contributor

Escaping $ in asserted XML Xpath Match

I have a number of assertions for XML content that have "$" in them.

 

Where I'm looking for #[((${CD67610 addMonth="2"} - @{Nxt Pymt Due Date}) / 86400000) round="ROUND,1"], soapUI is looking for #[(( - @{Nxt Pymt Due Date}) / 86400000) round="ROUND,1"].

 

It seems like soapUI NG Pro is substituting the null value of a perceived variable ${CD67610 addMonth="2"} for my text.  Is there a way to escape this?

 

Thank you for your help

1 ACCEPTED SOLUTION

Accepted Solutions
JKambli
Staff

Re: Escaping $ in asserted XML Xpath Match

Download nightly build,

https://support.smartbear.com/downloads/readyapi/nightly-builds/ 

 

 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

4 REPLIES 4
TanyaYatskovska
Community Manager

Re: Escaping $ in asserted XML Xpath Match

Hi Pmrostal,

 

 

Perhaps, using double $ helps you - $${...}

Could you please check this?

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
JKambli
Staff

Re: Escaping $ in asserted XML Xpath Match

An extra $ works in 1.7.0 but due to a bug in 1.8.0 it works with two $$ for escape, we have a bug logged for this issue.

 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
JKambli
Staff

Re: Escaping $ in asserted XML Xpath Match

Download nightly build,

https://support.smartbear.com/downloads/readyapi/nightly-builds/ 

 

 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

pmrostal
New Contributor

Re: Escaping $ in asserted XML Xpath Match

Thank you - I will work with our tools team to get them to allow me to download the build.  If not, I believe I can move from 1.4 to 1.7, which sounds like it will work for me too.

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