Runtime Values using XPath functions within SCA Unit Tests
490968Jul 11 2011 — edited Feb 26 2020Hi,
Has anyone been successful in using XPath functions within the SCA Tests to substitute runtime values for test data?
My requirement is to use current date time as element value for one of the PL's emulated message. I'm using the following within the test xml
*<update updateLocation=*+*<xpath for node>+ updateXpathFunction=*+*<xpath function>+*/>*
This works fine if I use the basic xpath functions like string(), concat() etc..
However, the moment I start using XPath functions like xp20:current-dateTime() or ora:getCurrentDateTime(), it starts throwing NPE. I've made sure that the namespace prefix are defined within the test xml.
Has anyone stumbled upon this behavior?
We are on SOA11g PS4....!
Regards,
Srinath Mani.