📄 软件评测师考试(科目2:软件测试应用技术)--软件自动化测试 - cvacuum's blog.htm
字号:
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">操作系统不兼容:市场上没有现成的工具与正在使用的各种操作系统兼容,所以需要考虑制作一个在专门的测试环境下运行的定制工具。例如:</SPAN>
<SPAN lang=EN-US>Linux</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">下的消耗</SPAN>
<SPAN lang=EN-US>CPU</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">的工具。</SPAN>
</P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"><SPAN
lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">????????
</SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">应用程序不兼容:正在测试的应用程序包含一个特殊元素,如一个自定义的控件或第三方插件,它和市场上存在的任何记录</SPAN>
<SPAN lang=EN-US>/</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">回放工具都不兼容。例如:公司产品:录像播放器。</SPAN>
</P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"><SPAN
lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">l<SPAN style="FONT: 7pt 'Times New Roman'">????????
</SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">专项测试的需要:为了取得最佳的测试效果,以便对不能使用</SPAN>
<SPAN lang=EN-US>GUI</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">测试工具的,复杂的和关键的组件进行自动测试。例如:</SPAN>
<SPAN lang=EN-US>agent</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">报文捕获率的测试。</SPAN>
</P>
<H3 style="MARGIN: 13pt 0cm"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT
size=5>自动测试:选择最好的实践</FONT> </SPAN></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">不要过分依赖记录</SPAN>
<SPAN lang=EN-US>/</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">回放工具。</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">功能性测试工具(也称为记录</SPAN>
<SPAN lang=EN-US>/</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">回放工具),只是无数可供利用的测试工具中的一种。记录</SPAN>
<SPAN lang=EN-US>/</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">回放机制能够增强测试工作的效果,但是我们不应该只使用这一种自动测试方法。即使使用最好的记录</SPAN>
<SPAN lang=EN-US>/</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">回放自动测试技术,它们还是有局限性。</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>1</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)硬编码的数值。</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>2</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)非模块化的、不易维护的脚本。</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>3</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)缺乏可重用性的标准。</SPAN>
</P>
<H3 style="MARGIN: 13pt 0cm"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT
size=5>尽量使回归测试自动化</FONT> </SPAN></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">回归测试确定的是:在修改先前的错误或者向应用程序添加新功能时,是否引放了新的错误,这些错误影响以前运行正常的功能。回归测试应该发现这些新引入的缺陷。</SPAN>
</P>
<H3 style="MARGIN: 13pt 0cm"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT
size=5>了解自动测试工具对测试工作的影响</FONT> </SPAN></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">自动测试工具只是解决方案的一部分,它们不能解决所有测试工作中的问题。自动测试工具决不能代替指导测试工作的分析技能,也不能替代手工测试。我们必须把自动测试看作是对手工测试过程的补充。</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">自动化测试可以帮助测试人员做到:</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>1</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)提高测试执行的速度;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>2</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)提高运行效率;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>3</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)保证测试结果的准确性;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>4</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)连续运行测试脚本;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>5</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)模拟现实环境下受约束的情况。</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">自动化测试不能做到的是:</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>1</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)所有测试活动都可以自动完成;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>2</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)减少人力成本;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>3</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)毫无成本的得到;</SPAN>
</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 21pt"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">(</SPAN>
<SPAN lang=EN-US>4</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">)降低测试的工作量。</SPAN>
</P>
<H3 style="MARGIN: 13pt 0cm"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'"><FONT
size=2>参考文献: </FONT></SPAN></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">《软件评测师考试考点分析与真题详解》</SPAN>
<SPAN lang=EN-US>—</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">电子工业出版社</SPAN>
</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">《有效软件测试</SPAN>
<SPAN lang=EN-US>—</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">提高软件测试的</SPAN>
<SPAN lang=EN-US>50</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">条建议》</SPAN>
<SPAN lang=EN-US>—</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">清华大学出版社</SPAN>
</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">《系统分析师常用工具》</SPAN>
<SPAN lang=EN-US>—</SPAN> <SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">清华大学出版社</SPAN>
</FONT></P><IMG height=1
src="软件评测师考试(科目2:软件测试应用技术)--软件自动化测试 - cvacuum's Blog.files/10802.jpg"
width=1><BR><BR>
<DIV align=right>小软 2006-05-19 15:51 发表评论</DIV><!--yes-->............
<P>
<SCRIPT language=javascript>document.write("本文来自各大互联网博客RSS输出摘录,版权归原作者所有!原RSS博文网址:<a href=http://www.cnitblog.com/Lily/archive/2006/05/19/10802.html target=_blank>http://www.cnitblog.com/Lily/archive/2006/05/19/10802.html</a>")</SCRIPT>
<BR>
<SCRIPT type=text/javascript><!--google_ad_client = "pub-8788097265981552";google_ad_width = 336;google_ad_height = 280;google_ad_format = "336x280_as";google_ad_type = "text_image";google_ad_channel = "";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "CC3300";google_color_text = "000000";google_color_url = "804000";//--></SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -