正测试用例和负测试用例 [英] Positive test cases and negative test cases

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

问题描述

什么是正面测试用例负面测试用例?

在谷歌上搜索后,我发现了非常令人困惑的答案.谁能用例子解释一下?

解决方案

一个正面的测试用例测试系统是否按预期执行.示例:将允许您在提供有效凭据时登录.

负面测试用例测试系统没有做它不应该做的事情.示例:当提供无效凭据时,不应允许您登录.<​​/p>

what are positive test cases and negative test cases?

Upon googling about it i have found answers that are very confusing. Can anyone explain with example?

解决方案

A positive test case tests that a system does what it is supposed to. Example: will allow you to login when valid credentials are supplied.

A negative test case tests that a system does not do things it shouldn't. Example: should not allow you to login when invalid credentials are supplied.

这篇关于正测试用例和负测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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