前 10 名负面测试列表

编程入门 行业动态 更新时间:2024-10-27 02:22:53
本文介绍了前 10 名负面测试列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我搜索了 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/Newsletters/newsletter_2007_09_SP.htm前十名的一个例子

see http://www.pragmaticsw/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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 22:40:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1401144.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:负面   测试   列表

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!