Forum Discussion

frankhe's avatar
11 years ago

Use Wildcard or RegEx in Message Content Assertion

I have a question with Message Content Assertion, I don't find it in the feature list so I am wondering if it exists or could be a new feature.

We can use Wildcard or RegEx in XPath or XQuery assertion, but in Message Content Assertion, we can only use default givens operations like ">", "=" etc, is it possible to use wildcard or RegEx in this kind of assertion?

For Example, I have Actual values which last 4 decimals change each time, I don't want to assert these four decimals, so I would like to use wildcard "*" or RegEx "28839.314350[0-9]+" , unfortunately it doesn't work, In my Message Content Assertion, I have hundred lines like this to compare, is it possible to use these two methods?
  • Hello,

    Unfortunately you cannot use a wildcard in the message content assertion, for custom assertions we suggest that you use the script assertion and you can build a custom assertion. If you have further questions or issues please let me know.

    Regards,
    Temil
    • edweerdt's avatar
      edweerdt
      Contributor

      It looks like this still isn't possible. Is that correct? And if so, why not?