前 10 名负面测试列表 [英] Top 10 negative testing list

查看:22
本文介绍了前 10 名负面测试列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了 SO,发现关于负面测试的东西很少,这也是开发人员在工作中应该记住的一件非常重要的事情.为负面测试开发人员列出前 10 个测试用例应该如何协作?

I searched SO, finding little thing about negative testing, which is also a very important thing developers should keep in mind during work. What about making a list of top 10 test case for the negative testing developer should keep in mind collaboratively?

谢谢!

负面测试的定义:

在软件测试中,一种旨在确定系统在定义之外的响应的测试.它旨在确定系统是否不会因意外输入而崩溃.

In software testing, a test designed to determine the response of the system outside of what is defined. It is designed to determine if the system doesn't crash with unexpected input.

推荐答案

否定测试

将无效数据传递给测试

Negative Testing

passing invalid data to a test

参见 http://www.pragmaticsw.com/Newsletters/newsletter_2007_09_SP.htm前十名的一个例子

see http://www.pragmaticsw.com/Newsletters/newsletter_2007_09_SP.htm for one example of a top-ten list

虽然测试边界等很好,但在 TDD 中,最好明确测试预期的异常情况,而不是随机测试可能相关或不相关的负面情况

while testing boundaries et al is good, in TDD it would be better to explicitly test for expected exception conditions rather than randomly testing negatives that may or may not be relevant

所以前十名的名单要么非常笼统,要么做出一堆假设,要么过于具体而无法普遍使用;-)

so a top-ten list would either be very generic, make a bunch of assumptions, or be too specific to be generally useful ;-)

这篇关于前 10 名负面测试列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆