Saudi Flag
Saudi Arabia
Jeddah, Al Misk
+966503526802

Electric Technology

Office: 03-4248224

Factory : 03-4627027

Cairo Office :02-22678967

Test Suite Advanced – Application Test of Code Blocks

Test Suite Advanced – Application Test of Code Blocks

Overview

This application example explains how to use Test Suite Advanced in TIA Portal to perform automated application tests for PLC code blocks. It demonstrates the structure of a test environment and the validation of function blocks using defined test cases.

Application Objective

The objective of this application is to ensure code quality and functional correctness by automatically testing PLC function blocks during development and after project updates.

Application Scope

The application covers the creation of test cases, execution of automated application tests, and evaluation of test results using TIA Portal Test Suite Advanced.

Test Environment Structure

The test environment includes a function block to be tested, a test organisation block, instance data blocks, and test case definitions created using the Test Case Editor.

Test Case Concept

Test cases are created using the Test Case Editor. Each test case consists of multiple test steps, input value definitions, program execution commands, and result validation using assertion commands.

Application Test Execution

The application test is executed automatically by compiling the PLC program, loading it into PLCSIM Advanced, running the defined test cases, and collecting the test results.

Evaluation of Test Results

Test results are displayed as ‘Pass’ or ‘Fail’ in the Inspector window. Detailed results are also stored in log files for traceability and documentation.

Required Software Components

– TIA Portal V16 Update 1 or higher
– TIA Portal Test Suite Advanced
– SIMATIC S7-PLCSIM Advanced

Typical Industrial Applications

– PLC code validation during development
– Regression testing after software changes
– Quality assurance for automation projects
– Standardized testing in large PLC projects

Key Benefits

– Early detection of programming errors
– Automated and repeatable tests
– Reduced commissioning and debugging time
– Improved software quality and reliability

Download Application PDF

Verified by MonsterInsights