Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / ELandAX blog / RSAT Test Case Message Vali...

RSAT Test Case Message Validation Options

Evaldas Profile Picture Evaldas 1,800
Hello AX World,

I have started using RSAT recently. Yay! About time! :) 

Once you setup everything and load the test cases you can generate the parameter files for your tests.


In the parameter file, there is a tab called MessageValidation


There is a column called Operator. But the only example is Equals.
What are the other options? I did not find a documentation of those.

Equals test only if the message is exactly like you specify.

So if you were to test the message bellow, you cannot do that. 



There is a fixed part and a variable part. How do I test if the message starts with something fixed?

This is how I found out the options. 


I changed Equals to something I would expect as an option.

Ran the test; it failed; looked up the failed message and there was the answer.


So the options are: EqualsStartsWith and Contains.

Once I've changed to StartsWith the test has passed.


Let me know if there are other ways to test the messages. E.g. having placeholders or using regex etc.

Be aware and take care!

This was originally posted here.

Comments

*This post is locked for comments