Skip to content

SUT (System Under Test)

The System Under Test (SUT) is a term used in software testing to describe the system that is being tested. It could be a single module, an entire application, or even a network of interconnected systems. Testing is performed on the SUT to verify its functionality, performance, and reliability . From a unit testing perspective, the SUT encompasses all the classes in a test that are not predefined pieces of code like stubs or mocks. In other words, it represents the actual software or component under examination during testing.

For instance, if you're testing a specific feature of a web application, that feature becomes the SUT. Similarly, when evaluating the behavior of an entire application, the entire application serves as the SUT. The goal is to ensure that the SUT behaves correctly and meets the specified requirements.

Remember, the SUT is the star of the testing show—it's where all the action happens! 🌟

Building SUT as example

Prestashop installation The installation of Prestashop using Docker is described in its Docker Hub page:

docker network create prestashop-net docker run -ti --name some-mysql --network prestashop-net -e MYSQL_ROOT_PASSWORD=admin -p 3307:3306 -d mysql:5.7 docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -p 8080:80 -d prestashop/prestashop:1.7 Log to http://localhost:8080/ and perform the Prestashop configuration.

Then, remove the ìnstall directory

docker exec -it some-prestashop rm -fr install Rename the admin directory, for example into adminx.

docker exec -it some-prestashop mv admin adminx The admin page can now be accessed in http://localhost:8080/adminx/.