<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<span style="word-break:break-all; line-height:normal!important"><strong>下面给大家讲解一下测试用例颗粒度的知识:</strong></span>
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<span style="background-color:rgb(255,153,255)"><strong> <span style="word-break:break-all; line-height:normal!important"> 颗粒度与测试的关系</span></strong></span>
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
如果把测试
<a style="word-break:break-all; color:rgb(32,40,89); line-height:normal!important" target="_self"><span style="word-break:break-all"><span style="word-break:break-all">用例设计</span></span></a>得很细,照顾到每一个数据输入、每一个条件、每一个环境、每一个路径,那么测试用例的数量将是巨大的,虽然风险很小很小,但是测试效率会很低,并且测试执行没有思考的空间,可能使测试执行人员变得呆板(除非全部测试自动化),不需要创造力、思考。测试用例设计很粗,测试效率可能比较高,测试人员有一个发挥的空间,使测试更有趣,但这依赖于个人的责任感和能力,风险大得多。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<span style="word-break:break-all; line-height:normal!important">颗粒度的大小取决与以下三点</span>
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong>1、“重要功能”、“特殊功能”颗粒密集度高,“通用功能”可以试用通用测试粒度,密集度应该可以大致界定。</strong>个人认为,假如你非要为了一个字体的样式而写了一大长串的测试用例 ,那么这个颗粒度就毫无意义了。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong> 2、颗粒度的大小还取决与客户对“产品”的要求。</strong>测试有一个难题是测试的精度,或者说颗粒度的定义,不要说一个程序,就算是一个简单的登录都可以写出几乎无穷尽的测试用例,所以你需要指明功能、性能需求,使用环境等,并说明对缺陷容忍的限度。才好依据最终的需求来定义测试的颗粒度,也才好写测试用例,总之,客户的要
<span style="line-height:21.6px">求越详细所得到的测试用例越准确。如果客户跟你说这个地方你必须仔仔细细的测试。那么我们在写测试用例的时候。这个颗粒度一定要小了。</span>
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong> 3、一般功能颗粒密集度可能会根据项目或是时间来确定</strong>。如果时间充裕颗粒度可以适当小。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong> 4、粒度取决于测试的种类,</strong>一般用验收测试,是项目测试中颗粒度比较大。
<a style="word-break:break-all; color:rgb(32,40,89); line-height:normal!important" target="_self"><span style="word-break:break-all"><span style="word-break:break-all">系统测试</span></span></a>颗粒度相对较小。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong> <span style="word-break:break-all; line-height:normal!important; background-color:rgb(255,153,255)"> 有效度量测试用例条件:</span></strong>
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong>1、颗粒度可以跟代码行数对应:</strong>一般来说代码量越大,内部逻辑就越复杂,出现bug的的可能性也越高。对应的测试粒度也越小。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong>2、测试团队内部对粒度达成一致,适当把握颗粒度</strong>:明确测试用例编写的颗粒度,大家都有这种感觉,你写测试用例,你测试这个产品的时候,你十条测试用例就测试完了,有人写三十条,你就觉得奇怪,我觉得十条已经是局限了,怎么你能写到三十条,你去看他的用例,发现这也能算一条,这是组织内部测试用例颗粒度没有达成一致。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px; color:rgb(51,51,51)">
<strong> 3、颗粒度要适合业务的需要:</strong>各公司测试用例设计的粒度不同,适合自己的需要,适合业务的需要即可,测试用例的数量统计方法,我觉得说明不了测试作得是否专业。
</div>
<div style="word-break:break-all; line-height:21.6px; margin:10px 0px">
<stron |
|