Forum Discussion

CLewis's avatar
CLewis
Occasional Contributor
17 years ago

Listener/Assertion run order

I have a listener that I wrote that removes the CDATA tags from responses, so that we can use xpath assertions on the tunneled xml.

However, it no longer works in 2.0 because it seems the assertions run before my listener, or, the assertions use an unmodified copy of the response, I'm not sure which.

My listener currently implements the SubmitListener, and does it's work in afterSubmit().

Is there a better listener I can use, one that runs before the assertions, or some other way to try and do what I'm going for?

Thanks,
Cory