cancel
Showing results for 
Search instead for 
Did you mean: 

Using multiple * wildcard in an xpath assertion throws NPE

Occasional Visitor

Using multiple * wildcard in an xpath assertion throws NPE

Hi,

 

I'm currently creating an assertion for an xpath result that contain multiple dates. And so I have:

<created>*</created>
<updated>*</updated>
<updater>opencell.admin</updater>

Which fails, but:

<created>*</created>
<updated>2018-04-17T09:14:18.190+08:00</updated>
<updater>opencell.admin</updater>

Succeed.

 

Error I got was:

  • XPathContains assertion failed for path [//return[1]/xxx/yyy[@code="zzz"]] : NullPointerException:null

 

Seems like multiple instance of * wildcard doesn't work? Is there a workaround?

New Here?
Join us and watch the welcome video:
Join the exciting event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win