Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 109746405, Entry date: 05/22/2017

S7UnitTest: Automated testing with SIMATIC S7-PLCSIM Advanced

  • Entry
  • Associated product(s)
The S7UnitTest application enables you to automatically test parts of a PLC program with the help of SIMATIC S7 PLCSIM Advanced.

S7UnitTest consists of two tools:

  • S7UnitTest Editor
  • S7UnitTest Application

Der Styleguide Checker shows you, how you can use TIA Portal Openness to check your programming code.

The TIA Portal Test Suite is integrated in TIA Portal and is available now.
In addition to allowing automated checking of adherence to programming guidelines, 
it is also possible to generate and carry out application tests with the virtual S7-PLCSIM Advanced controller.

More information on TIA Portal Test Suite Advanced you will find in the delivery release

The download of the test suite including a 21 day trial license you will find in this download entry


S7UnitTest Editor
With the S7UnitTest Editor Tool, you create and edit a Test Fixture for your PLC program and save it in a S7UnitTest XML file. A Test Fixture consists of Test Cases with individual Test Steps. In the Test Steps, you determine, which PLC tags are to be read or written in a specific program cycle.

S7UnitTest Application
With the S7UnitTest Application, you load the created S7UnitTest XML file and start the tests. The application starts the virtual controller of PLCSIM Advanced for the simulation of the loaded PLC program, accesses the program in the storage of the virtual controller and uses it to perform the tests. The test result is directly displayed in the user interface and additionally stored as XML file.

  Documentation (1,4 MB)
 Registrierung notwendig  109746405_S7UnitTest.zip (66,0 KB)
SHA-256 checksum: E7AC56C10093439F13596730D1E25DF10773D6EC1690D68514C6519ED09EF57B

Compare the SHA-256 checksum with the downloaded data to make sure that the data has been downloaded completely and without errors.
How to determine the SHA-256 checksum of a file is described in Entry ID 109483101.

Further Information 

Additional Keywords 
Tool, Test, NUnit, PLCSIM

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.