什么是SUT,它来自哪里?

时间:2020-12-05 11:33:51

I see many people talking about the term SUT, but do not understand why they use that term.

我看到很多人都在谈论SUT这个术语,但不明白为什么他们会使用这个术语。

SUT is what you want to test?

SUT是你想要测试的吗?

Where does this term come from and what does it mean?

这个术语来自哪里,它意味着什么?

For example in this test, what is my SUT?

例如,在这个测试中,我的SUT是什么?

[TestMethod]
public void UsersAction_should_return_IndexAction()
{
    const long id = 1;

    UsersViewModel viewModel = new UsersViewModel()
    {
        SelectedUsers = new long[] { 1, 2, 3, 4 }
    };

    ActionResult result = _controller.Users(id, viewModel);

    result.AssertActionRedirect().ToAction("Index");
}

5 个解决方案

#1


28  

The System Under Test (SUT) from a Unit Testing perspective represents all of the actors (i.e one or more classes) in a test that are not mocks or stubs. In your example that would be the controller.

单元测试透视图中的系统测试(SUT)表示测试中不是模拟或存根的所有参与者(即一个或多个类)。在你的例子中,这将是控制器。

#2


6  

I've never heard the term eiher, but a quick search gave

我从来没有听说过eiher这个词,但快速搜索了

System under test (SUT) refers to a system that is being tested for correct operation. The term is used mostly in software testing.

被测系统(SUT)是指正在测试正确操作的系统。该术语主要用于软件测试。

A special case of a software system is an application which, when tested, is called an application under test.

软件系统的一个特例是一种应用程序,在测试时称为被测应用程序。

The term SUT means also a stage of maturity of the software, because a system test is the successor of integration test in the testing cycle.

术语SUT也意味着软件的成熟阶段,因为系统测试是测试周期中集成测试的后继者。

From good ole wikipedia.

来自good ole*。

#3


3  

System Under Test SUT.

被测系统SUT。

In your unit test example, if you really want to talk about SUT it's probably UsersAction. However, I have not come across anyone use SUT when talking about unit testing. To me this sounds more like something that would fit with integration/system/performance testing or alike.

在你的单元测试例子中,如果你真的想谈论SUT,它可能就是UsersAction。但是,在谈论单元测试时,我没有遇到任何人使用SUT。对我来说,这听起来更像是适合集成/系统/性能测试或类似的东西。

For instance, take performance testing. Here you might say the SUT is the whole HW/SW system, or it might be just one of them depending on what you're testing in that specific performance test.

例如,进行性能测试。在这里,您可能会说SUT是整个硬件/软件系统,或者它可能只是其中之一,具体取决于您在特定性能测试中测试的内容。

#4


2  

It most likely means "System Under Test", i.e. the system being tested, as opposed to other systems it may interact with, but which are not being explicitly tested (because they're someon else's responsibility).

它很可能意味着“被测系统”,即正在测试的系统,与其可能与之交互的其他系统相反,但未经过明确测试(因为它们是其他人的责任)。

#5


1  

Where does this term come from?

这个术语来自哪里?

DUT (device under test) and UUT (unit under test) are very common abbreviations among test enginers (non-software test engineers). That's where the term SUT ought to have come from.

DUT(被测设备)和UUT(被测设备)是测试引擎(非软件测试工程师)中非常常见的缩写。这就是SUT这个词应该来自哪里。

related: 2008 MSDN blog post Naming SUT Test Variables .

相关:2008年MSDN博客文章命名SUT测试变量。

#1


28  

The System Under Test (SUT) from a Unit Testing perspective represents all of the actors (i.e one or more classes) in a test that are not mocks or stubs. In your example that would be the controller.

单元测试透视图中的系统测试(SUT)表示测试中不是模拟或存根的所有参与者(即一个或多个类)。在你的例子中,这将是控制器。

#2


6  

I've never heard the term eiher, but a quick search gave

我从来没有听说过eiher这个词,但快速搜索了

System under test (SUT) refers to a system that is being tested for correct operation. The term is used mostly in software testing.

被测系统(SUT)是指正在测试正确操作的系统。该术语主要用于软件测试。

A special case of a software system is an application which, when tested, is called an application under test.

软件系统的一个特例是一种应用程序,在测试时称为被测应用程序。

The term SUT means also a stage of maturity of the software, because a system test is the successor of integration test in the testing cycle.

术语SUT也意味着软件的成熟阶段,因为系统测试是测试周期中集成测试的后继者。

From good ole wikipedia.

来自good ole*。

#3


3  

System Under Test SUT.

被测系统SUT。

In your unit test example, if you really want to talk about SUT it's probably UsersAction. However, I have not come across anyone use SUT when talking about unit testing. To me this sounds more like something that would fit with integration/system/performance testing or alike.

在你的单元测试例子中,如果你真的想谈论SUT,它可能就是UsersAction。但是,在谈论单元测试时,我没有遇到任何人使用SUT。对我来说,这听起来更像是适合集成/系统/性能测试或类似的东西。

For instance, take performance testing. Here you might say the SUT is the whole HW/SW system, or it might be just one of them depending on what you're testing in that specific performance test.

例如,进行性能测试。在这里,您可能会说SUT是整个硬件/软件系统,或者它可能只是其中之一,具体取决于您在特定性能测试中测试的内容。

#4


2  

It most likely means "System Under Test", i.e. the system being tested, as opposed to other systems it may interact with, but which are not being explicitly tested (because they're someon else's responsibility).

它很可能意味着“被测系统”,即正在测试的系统,与其可能与之交互的其他系统相反,但未经过明确测试(因为它们是其他人的责任)。

#5


1  

Where does this term come from?

这个术语来自哪里?

DUT (device under test) and UUT (unit under test) are very common abbreviations among test enginers (non-software test engineers). That's where the term SUT ought to have come from.

DUT(被测设备)和UUT(被测设备)是测试引擎(非软件测试工程师)中非常常见的缩写。这就是SUT这个词应该来自哪里。

related: 2008 MSDN blog post Naming SUT Test Variables .

相关:2008年MSDN博客文章命名SUT测试变量。