黑盒测试还是白盒测试应该成为测试人员的重点? [英] Should black box or white box testing be the emphasis for testers?

查看:47
本文介绍了黑盒测试还是白盒测试应该成为测试人员的重点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您认为哪种类型的测试应该是重点(对于测试人员/QA),为什么?

Which type of testing would you say should be the emphasis (for testers/QAs), and why?

来自维基百科的一组快速定义:

A quick set of definitions from wikipedia:

黑盒测试

  • 从测试对象的外部角度推导出测试用例.这些测试可以是功能性的,也可以是非功能性的,但通常是功能性的.测试设计者选择有效和无效的输入并确定正确的输出.不知道测试对象的内部结构.

白盒测试

  • 使用系统的内部视角,根据内部结构设计测试用例.它需要编程技能来识别通过软件的所有路径.测试人员选择测试用例输入来执行代码的路径并确定适当的输出.在电气硬件测试中,电路中的每个节点都可能被探测和测量;一个例子是在线测试 (ICT).

为了澄清一点,我意识到两者都很重要,但是,通常,它们在开发和 QA 之间是分开的.

Just to clarify a bit more, I realize that both are important, but, usually, they are separate between dev and QA.

内部知识对测试人员/QA 重要吗?我听说过这样的论点,即考虑到这些知识进行测试使他们能够更好地测试问题,但我也听到了这样的论点,即这些知识会分散功能需求的注意力并促进测试代码"而不是预期的解决方案.

Is internal knowledge important for the tester/QA? I've heard arguments that testing with this knowledge in mind enables them to better test for problems, but I've also heard arguments that this knowledge can distract from functional needs and promote "testing to the code" rather than to the intended solution.

推荐答案

  • 黑盒测试应该是测试人员/QA 的重点.
  • 白盒测试应该是开发人员的重点(即单元测试).
  • 回答这个问题的其他人似乎将这个问题解释为白盒测试和黑盒测试哪个更重要.我也相信它们都很重要,但您可能想查看这篇 IEEE 文章 声称白盒测试更重要.
    • Black box testing should be the emphasis for testers/QA.
    • White box testing should be the emphasis for developers (i.e. unit tests).
    • The other folks who answered this question seemed to have interpreted the question as Which is more important, white box testing or black box testing. I, too, believe that they are both important but you might want to check out this IEEE article which claims that white box testing is more important.
    • 这篇关于黑盒测试还是白盒测试应该成为测试人员的重点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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