Forum Discussion
Steven_Yip
16 years agoOccasional Contributor
Hi Ole,
Sorry for not replying sooner... I don't check the forums very often, just when I run into problems with no obvious solution, such as
http://www.eviware.com/component/option ... 28.0 - I can send my project file for that if you like
Anyway, yes I think your idea about adding regex's to the XPath assertion is excellent. Whatever syntax you choose is fine with me, so long as it's sufficiently documented (the User Guides are well-written, but of course they weren't designed to cover every possible scenario - especially when the power of Groovy is factored in). I do agree with you in that the regex should not share the same syntax as property expansion; that would just be confusing.
FYI, in the meantime I did resort to using script assertion steps to perform the wildcard matching of values in responses. It wasn't too painful, since Groovy has very good XML support.
Thanks, Steven
Sorry for not replying sooner... I don't check the forums very often, just when I run into problems with no obvious solution, such as
http://www.eviware.com/component/option ... 28.0 - I can send my project file for that if you like
Anyway, yes I think your idea about adding regex's to the XPath assertion is excellent. Whatever syntax you choose is fine with me, so long as it's sufficiently documented (the User Guides are well-written, but of course they weren't designed to cover every possible scenario - especially when the power of Groovy is factored in). I do agree with you in that the regex should not share the same syntax as property expansion; that would just be confusing.
FYI, in the meantime I did resort to using script assertion steps to perform the wildcard matching of values in responses. It wasn't too painful, since Groovy has very good XML support.
Thanks, Steven
Related Content
- 10 months agooriShalhon