What is the industry standard for automation scripting.

Is it only happy path, or should we include the boundaries.

For example: a webedit only accepts Alpha entry only

should we include in the script, to try to enter number and decimals, to insure that the application will not accept this type of entry.

If yes, how can I capture the result ?