自动化测试之谜与事实/Software Test Automation--Myths and Facts
上一篇 / 下一篇 2008-11-24 23:33:36 / 个人分类:自动化测试
1208328177
- 自动化测试:
- 测试文档:
转载请保留:本文出自jenny2008wu的51Testing软件测试博客:http://www.51testing.com/?215302
m I3C``+V^n03M}b;IH&L|%s0个人序言
y!` ^;@x!rfY051Testing软件测试网.\^ c SZO*Os X相信大家总能听到自动化测试的强劲的声音,你去面试,面试官总是问你,你会写代码吗?你会××××工具吗?似乎所有的一切都预示,自动化是一种趋势,这种趋势势必取代手工的测试。
J.d4Tn'}9kh051Testing软件测试网:B e5[:y#xY-B我不否认,测试中确实可以用到自动化,但是现在有多少人用过呢,有多少人又非常成功的实施过呢?归根结底,自动化还是要看适宜不适宜,没有最好的测试,只有最适宜的测试。
5M/RCRv051Testing软件测试网C:w4W'W!v 本文的作者对自动化测试提出了一些比较中肯的观点,我把他译成中文,希望能给大家解解困惑,同时希望那些鼓吹自动化的人的呐喊声能够稍微收敛一些,因为自动化测试不仅仅是技术,而且首先需要的是,你对需求了解的深度,你的测试设计,对工具解,工具能否适合当前的项目?测试的流程做好了没有?还有计划......... M.N. Alam
FwuGU0 IMI Systems Inc.
Dallas, TX
lzg
aZ,D^0
s%L-P:|3O0
Today softwaretestautomation is becoming more and more popular in both C/S andwebenvironment. As the requirements keep changing (mostly new requirements are getting introduced on daily basis) constantly and thetestingwindow is getting smaller and smaller everyday, the managers are realizing a greater need for test automation. This is good news for us (people who do test automation). But, I am afraid this is the only good news.
-`&^
p)D
Z/|0********************************************************************************************************51Testing软件测试网!Pi!_/I'`1h
GN6`(G8u'I5oN&`H9j0 如今,软件自动化测试在C/S及WEB环境中变得越来越普及。由于需求变化频繁(大多新的需求都是每日被介绍给大家)而测试窗口则变得越来越小,管理者意识到自动化测试是十分有必要的,对于我们从事自动化的人来说,这是个好消息,但是,我很担心,这或许只是个好的消息
***********************************************************************************************************************
BMFwL-}(Z0
A number of articles and books are written on different aspects of Software Test Automation. “Test Automation Snake Oil” by, James Bach is an excellent article on some of the myths of automation. I like to discuss some of these myths and will try to point out the facts about these myths. I also like to discuss some of my observations and hopefully point out possible solutions. These are based on my experience with a number of automation projects I was involved with.
51Testing软件测试网!f Kd3F:L5^.Wk
- Find more bugs:
***********************************************************************************************************************
B:hZD*| z9je H0
许多文章或书籍里面都有提到软件自动化测试的各个方面,由 James Bach 写的“Test Automation Snake Oil”的文章,是篇揭开自动化测试之谜的最好的文章,我很想他讨论下这些迷并且尽量揭示这些迷背后的真实;我也很想阐述下我的观点,希望能指出这些问题的可行的解决办法。这些都基于我曾经参与的大量的自动化测试项目
--找到更多的BUG:一些QA经理认为,通过实施自动化他们应该可以找到更多BUG,这是一个谜。先考虑一分钟,自动化的过程包括一套已经写好的测试用例,在大多数情况下,这些测试用例都是由熟悉测试应用程序的测试工程师写的。这些测试用例给到自动化工程师。在大多数情况下,自动化测试工程师并不熟悉他们要实施自动的用例。从测试用例到测试脚本,自动化根本就没有为多找BUG而多添加任何一个过程。在发现BUG方面,测试脚本和测试用例的效果是一样的。因此,是测试用例在发现BUG,而不是测试脚本。
***********************************************************************************************************************
- Eliminate or reduce manual testers:
I have met a number of QA managers who are frustrated with their automation. According to them the tool is not doing what it is supposed to do. Here is a true story, the client (I had the opportunity to work with them for some time) found out that the tool they have just bought does not support the application they are testing (I am not making it up). How can this happen! – It does happen more often than one would think. I will get back on this when I discuss possible solutions. A manager of one of the major telecom companies that I had a recent interview with told me that after three years and more than a million dollar he is still struggling with automation. This is pretty sad and I get the feeling that he is not alone.
IPX[5{*_wKr]0***********************************************************************************************************************
Zdes-U|0 ---替代手工测试或减少手工测试:为了认识自动化,一些人指出,从长远上来说,自动化测试应该可以替代手工测试或减少手工测试,由此,可以节约过程成本。很显然这不是事实。替代或减少大量的手工测试并不是自动化测试的目的,原因如下: