Rarely is an automated test going to execute successfully from the first hit, and if it does, we should be careful for logical hidden problems. The automation errors fall under the following three categories:
The first category holds the syntax problems that do not allow your code to compile in the first place and therefore the test cannot be executed.
The second category holds problems dormant inside the automated steps and will not come out until execution. We can list, for example, problems in recognizing an object at runtime.
The third category holds problems that are not even necessarily revealed during runtime. These are the most malicious types of problems, since the symptoms are not as flagrant as the preceding two categories.
In the third case, the test executes normally until the person verifying the automation becomes suspicious about the executed test result. The root cause of such problems is an embedded logical error in the translation of the...