Forum Discussion

czetsuya's avatar
czetsuya
Occasional Visitor
7 years ago

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?

No RepliesBe the first to reply