功能测试和端到端测试之间的区别 [英] Difference between functional test and end-to-end test

查看:345
本文介绍了功能测试和端到端测试之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

What is the difference between functional test and end-to-end test?

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 也对功能测试说了以下几点:

Techopedia also says the following about functional test:

功能测试是软件内部使用的软件测试过程 开发,对软件进行测试以确保其符合要求 与所有要求.功能测试是一种检查方法 软件,以确保它具有以下所有必需的功能: 在其功能要求内指定.

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.

在阅读了以上两段之后,我仍然对它们之间的区别感到困惑.

After reading the above two paragraphs, I'm still confused about the difference between them.

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

I have a node.js application which accepts requests, then parses the request, then sends the parsed data to a Database.

        requests               parse requests and send data to the database  

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

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

How can I write end-to-end test and functional test for the node.js app I mentioned?

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

I think in both types of the tests, I should treat the node.js app as a black box. And send requests to it. Then check if the output of the black box is correct or not.

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

It seems that in my case, there's no difference between functional test and end-to-end test.

推荐答案

据我了解,两者之间的最大区别在于,端到端测试要求测试在生产时设置系统组件.真实的数据库,服务,队列等.这样做的原因是为了确保您的系统已正确连接(数据库连接,配置等).

As I understand it, the biggest difference between the two is that an end-to-end test requires the test to setup the system components as they are in production. Real database, services, queues, etc. The reason for this is to see that your system is wired correctly (database connections, configuration and such).

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

A functional test can setup the system with in-memory implementations of your application ports, which would make the test run faster and perhaps allow tests to run in parallel (in some cases). The only thing the test cares about is that a feature works as expected. This can reduce the overhead of setting up certain tests, since preparing 3rd party systems with data can be difficult or time consuming.

这篇关于功能测试和端到端测试之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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