什么时候需要自动化测试
这个问题几乎每个学习自动化的人都会遇到,答案也是各不相同,但问题本质上离不开这几个因素:
- 1.> Test Times – if you often required to do regression test
- 2.> Test Environment – if the test environment is stable
- 3.> Reusable Repeat Operation – if your projects have the large of reusable repeat operation
- 4.> Project release frequency – if your project is a long term project and if the release is frequency
- 5.> Effort Measure – if the effort is measurable/calculate between manual and automation
基本上如果一个项目满足这些必要条件,那么自动化测试的优势就会比较明显,这也是衡量我们是否导入自动化测试的一个前置判断。另外,通过上面的分析,我们也很容易得出自动化测试的优缺点 –
The merit of using Automation Test
- 1.> It’s more convenient for regression test
- 2.> It’s more quickly and efficiently to run the complex cases
- 3.> It can take advantage of the resources well and make the people pay more attention to the jobs that more needs manual focus on
- 4.> Reduce the mistakes of human caused
- 5.> More accurate to simulate the manual test
- 6.> Save effort
The demerit of Automation
- 1.> Automation不能完全代替Manual
- 2.> Manual test 必定会比自动化测试发现更多的bug
- 3.> 自动化测试对环境和相关前置条件的依赖比较大
- 4.> 自动化测试没有Manual测试的想象空间大
- 5.> 不要奢望自动化测试能帮助你发现所有的问题
自动化测试流程
什么是自动化的测试流程?这也是每个学习自动化测试的人员必须面对和回答的问题, 做任何事情都必须遵循一定的准则。 自动化测试流程的作用就在如此。它是指导自动化测试的总体原则和自动化工作展开的参考依据。那么什么是自动化测试流程呢?简言之,如下图(图1-1自动化测试示意图)
图1-1 自动化测试示意图
st=>start: start
e=>end: ending
op1=> operation: caozuo
st->op1->e