It's also a good practice to plan out your test scenarios ahead of any automation activities.
It is crucial to design the tests before recording the scripts. Many testers will [also] examine the functional specifications and design tests to cover the requirements.
Useful questions an automated tester should ask when designing the scripts include:
。What areas of the application will be reused on each/several of the scripts (i.e., login and logout)?
。Are there any variables that will be reused on each/several of the scripts (i.e., user name, password, hostname and port number)?
Organization of the tests is a key ingredient of successful test automation, adding that test scripts should be organized with modularization in mind.
test scenarios:测试场景
functional specification:功能规格说明书
reused:重用
variable:变量
Organization:组织
key ingredient:重要组成部分
modularization:模块化