1, a script is a complete scene, from the user login operation to the user to exit the system close the browser.
2, a script script only verifies a function point, do not try to log on the system after the user all the functions are verified before exiting the system
3, as far as possible only to verify the function of the forward logic, do not consider too many reverse logic verification, reverse logic is a lot of situations (such as hand
Number of errors in many cases), verification on the one hand is more complex, the need to write a large number of scripts, on the other hand, the automation script itself is fragile,
Many of the non-normal logic of the verification ability is not strong. (We try to write the script according to the user's normal use principle)
4, there is no correlation between scripts, that is, each script written is independent, can not rely on or affect other scripts.
5, if the data is modified, the data needs to be restored.
6. Verify only the verification points throughout the script, not every step of the script.
Writing UI Automation test Case principles