My application deals with many dynamic messages which are based on user input. What are the things that should be kept in our mind before we prepare the script and what is the best possible way to handle these messages. Is there any standard approach for this kind of scenario. Please share your thoughts on this?
Tester would create a test case that enters user input x and expects the message y to display. Automation would input x and have a pass/fail point on y. In other words both the user input and expected message should be defined parameters of the test.
If that is too low level a test for a particular test case, would just setup with regex or a basic OR definition that does not require the inner text to find the box, and output the message that was received to the report for logging purposes.