自动化测试脚本完成标准

质量要求:

  • Readability
  • Extensibility
  • Transportability
  • Optimality
  • Correspondence to requirements
  • Maintenability
  • Others ( some project-specific features )

 

度量标准:

1、尽量剔除硬编码

2、尽量减少全局变量和对象的使用,变量、函数、类、对象应该仅在需要的地方使用

3、命名和代码格式符合规范化要求

4、所有测试要求的操作和验证点都实现了

5、所有测试都有明确的输出结果

6、测试脚本的编写和实现是最优的

7、测试脚本应该尽量减少对测试平台和环境设置的依赖

 

 

 

参考:

《Automated tests:completion criteria》

http://autotestgroup.com/en/blog/50.html

 

posted on 2010-05-06 16:45  TIB  阅读(841)  评论(0编辑  收藏  举报

导航