New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ignore" Xpath only select first element #130

Closed
thezead opened this Issue Sep 22, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@thezead

thezead commented Sep 22, 2016

In the following message part :

<agreed xmlns="http://www.fixm.aero/flight/3.0">
      <route initialFlightRules="IFR">
         <expandedRoute>
            <routePoint estimatedTime="2016-09-22T17:18:48+02:00">
               <point fix="BEKOS"/>
               <estimatedLevel ref="FLIGHT_LEVEL" uom="FEET">2.15E2</estimatedLevel>
               <leg legId="0"/>
            </routePoint>
            <routePoint estimatedTime="2016-09-22T17:22:46+02:00">
               <point fix="BUBLI""/>
               <estimatedLevel ref="FLIGHT_LEVEL" uom="FEET">2.55E2</estimatedLevel>
               <leg legId="0"/>
            </routePoint>
         </expandedRoute>
      </route>
</agreed>

The objective is to validate the message thanks to the payload by ignoring the estimatedLevel nodes.
then put the following action:
receive("topic1")
.payload(awaitedMessage)
.ignore("//estimatedLevel");

problem:
only the first instance of the estimatedLevel is ignored.

@thezead thezead changed the title from Xpath ignore only select first element to "ignore" Xpath only select first element Sep 22, 2016

@christophd christophd added this to the v2.6.2 milestone Oct 14, 2016

@christophd christophd added IN PROGRESS and removed READY labels Oct 21, 2016

@christophd christophd self-assigned this Oct 21, 2016

@christophd christophd removed the IN PROGRESS label Oct 21, 2016

@christophd christophd removed their assignment Oct 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment