TIA Portal TestSuite — Automated Testing
Scope
Automated testing using the TIA Portal TestSuite Openness API. Covers Application Tests (PLC-based), Style Guide (Static analysis), and System Tests (OPC UA based).
Reference files
Load ONLY the reference file(s) relevant to the task. Do not load all files at once.
| Reference file | Load when the task involves |
|---|---|
references/application-test.md | Managing PLC Application Test sets, groups, and cases; executing tests on simulation. |
references/style-guide.md | Managing and executing Style Guide rule sets; updating rule set files. |
references/system-test.md | Managing System Test cases; OPC UA server interface validation. |
references/test-results.md | Accessing and interpreting TestSuite service results and execution states. |
Key Workflows
Application Testing
- Locate the
TestSuiteServiceon the Project. - Access
ApplicationTestSetscomposition. - Manage
ApplicationTestSetandTestCaseobjects. - Execute tests via
TestCaseExecutor.
Style Guide
- Access
StyleGuideSystemGroupson theTestSuiteService. - Manage
RuleSetobjects and compositions. - Execute checks via
RuleSetExecutor.
System Testing
- Access
SystemTestSystemGroupson theTestSuiteService. - Manage
SystemTestCaseobjects. - Execute tests via
SystemTestCaseExecutor.
Enforcement
- Verify the existence of the target PLC software or OPC UA server before running tests.
- Properly handle test failures using the
TestResultsandTestResultsMessageproperties.