Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Runtime Values using XPath functions within SCA Unit Tests

490968Jul 11 2011 — edited Feb 26 2020
Hi,
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2011
Added on Jul 11 2011
0 comments
175 views