简体   繁体   English

黑匣子测试和端到端测试有什么区别?

[英]What is the difference between black box testing and end-to-end testing?

他们两个都从用户的角度检查应用程序,那么它们之间有什么区别?

You should read about basics of testing like types of testing-black box, whitebox, grey box. 您应该阅读有关测试的基础知识,例如测试类型-黑盒,白盒,灰盒。

Black box testing is testing the application without going into code. 黑匣子测试是在不编写代码的情况下测试应用程序。

End to end testing is a type of black box testing in which we test application from a complete scenario point of view. 端到端测试是一种黑盒测试,其中我们从完整的场景角度测试应用程序。 A scenario can consists of many functionalities. 一个场景可以包含许多功能。 Each of these functionality can have their own functional tests. 这些功能中的每一个都可以具有自己的功能测试。 Suppose user is shopping on a site then from searching an item and purchasing it is a complete end to end test ie searching an item then reading its description then adding to cart then ordering it is a end to end test. 假设用户正在站点上购物,然后从搜索商品到购买都是完整的端到端测试,即搜索商品然后阅读其描述,然后添加到购物车,然后订购它是端到端测试。

While above end to end test contains many functionalities like searching, adding to cart etc. All these functionalities can have their own functional tests. 尽管上述的端到端测试包含许多功能,例如搜索,添加到购物车等。所有这些功能都可以具有自己的功能测试。

Both functional tests and end to end tests are black box tests. 功能测试和端到端测试都是黑盒测试。

You can also read End to End tests 您还可以阅读端到端测试

Blackbox testing is the one, testing the application without looking in to the code or logics, basically pass an input and look for the expected output 黑盒测试就是这样一种测试,它无需检查代码或逻辑即可测试应用程序,基本上是传递输入并寻找预期的输出

End to End testing is the one, combination of the functional testing and non functional testing (Performance, Security, Reliability....) 端到端测试是功能测试和非功能测试(性能,安全性,可靠性...)的组合。

I think the definitions of black box and end to end testing could vary based on the context of your project. 我认为黑盒测试和端到端测试的定义可能会根据您项目的上下文而有所不同。 I have seen different people use these terms to describe different things. 我已经看到不同的人使用这些术语来描述不同的事物。 That being said, usually this is what the 2 terms mean- 话虽这么说,通常这是两个术语的意思-

Black box testing - This refers to testing the system or the application as a black box where you give different inputs and expect a certain output without necessarily knowing the internals of the system. 黑盒测试 -指将系统或应用程序作为黑盒进行测试,在其中您可以提供不同的输入并期望获得一定的输出,而不必了解系统的内部。 There are various techniques under this like equivalence class partition, decision table testing etc. 在此之下有多种技术,例如等效类划分,决策表测试等。

End to end testing - This refers to testing the system based on end to end user flows, instead of testing the system has separate components like in unit testing or story level testing. 端到端测试 -这是指基于端到端用户流来测试系统,而不是测试系统具有独立的组件(如单元测试或故事级测试)。 For example - Logging into the application, then adding a product to the shopping cart, then going to the check out screen and then placing an order and then logging out of the application could be one user flow. 例如-登录到应用程序,然后将产品添加到购物车,然后转到结帐屏幕,然后下订单,然后注销应用程序可能是一个用户流程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM