gpt4 book ai didi

testing - 功能测试和端到端测试的区别

转载 作者:行者123 更新时间:2023-11-28 19:43:26 26 4
gpt4 key购买 nike

功能测试和端到端测试有什么区别?

Techopedia说端到端测试是

a methodology used to test whether the flow of an application is performing as designed from start to finish. The purpose of carrying out end-to-end tests is to identify system dependencies and to ensure that the right information is passed between various system components and systems.

Techopedia还说了以下关于功能测试的内容:

Functional testing is a software testing process used within software development in which software is tested to ensure that it conforms with all requirements. Functional testing is a way of checking software to ensure that it has all the required functionality that's specified within its functional requirements.

看完上面两段,我还是搞不清楚它们之间的区别。

我有一个接受请求的 node.js 应用程序,然后解析请求,然后将解析的数据发送到数据库。

        requests               parse requests and send data to the database  

Client ---------> node.js app --------------------------------------------> Database

如何为我提到的 node.js 应用程序编写端到端测试和功能测试?

我认为在这两种类型的测试中,我应该将 node.js 应用程序视为黑盒。并向它发送请求。然后检查黑盒的输出是否正确。

在我看来,功能测试和端到端测试之间没有区别。

最佳答案

据我了解,两者之间最大的区别是端到端测试需要测试来设置系统组件,因为它们在生产中。真实的数据库、服务、队列等。这样做的原因是要查看您的系统连接是否正确(数据库连接、配置等)。

功能测试可以使用应用程序端口的内存实现来设置系统,这将使测试运行得更快,并且可能允许测试并行运行(在某些情况下)。测试唯一关心的是功能是否按预期工作。这可以减少设置某些测试的开销,因为用数据准备第 3 方系统可能很困难或很耗时。

关于testing - 功能测试和端到端测试的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48762575/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com