Test Automation
  • testing
  • testing
  • testing
  • testing


Test Framework



To improve software quality and avoid discovering bugs only at the customer's site, it helps to test the code automatically.

Since creating and evaluating such tests can also be error-prone, it helps to have a certain framework in which the corresponding tests can be written and later executed, preferably automatically.

The test framework allows you to easily test your programs and functions and evaluate the results.
For ongoing quality assurance of source code, it is necessary to regularly test the individual parts of the program and monitor the results.

Automated test systems take a lot of work off developers, as they can immediately test the changed parts of the code in parallel.

The following questions often arise:

How good is my test?
Do I reach all parts of the code?
Do I reach the modified part?

The library and the extension for measuring test coverage provide answers to these questions.
SCCX

"Only trust tests you know actually cover the test area."


Clean Code Developer

  • The simple and fast solution for determining and graphically evaluating test coverage
    in IEC61131-3 Structured Text / ST / SCL



    To find out which code areas are not covered by tests, code coverage analysis is used.


sccx

After the test run is completed, the result can be automatically graphically evaluated on the build server.



Overview of executed test cases

test run

JUnit tabular evaluation

Tabular overview of all test cases

successfully executed
skipped
faulty
not present
duration

test run

JUnit time evaluation

Temporal progression of executed test cases

successfully executed
skipped
faulty
duration


Code coverage evaluation

cobertura

Cobertura evaluation marked in code

Determination and display of test coverage
The following information is revealed:

Instruction executed (green)
Instruction skipped (red)
How often was the instruction executed
Calculation of coverage in %
      Blocks
      Methods
      Instructions


Advantages



  • for your own development department


    quickly provides a picture of test quality.

    immediately shows where gaps still exist.


  • for customers validating updates


    has the changed part been executed?

    has the "old" code been affected? (Regression test)



    By combining version control, test case documentation, and the results from the test run, a variety of insights can be gained, significantly increasing the stability of the program.



test coverage



Features


  • open source -> DOWNLOADS

  • Easy configuration via XML format

  • Application generator

  • Start an automatic build

  • Upload to target system and start

  • Dynamic and static test automation

    • Execute a static test project
    • Execute a generated test project
  • Evaluation JUnit.xml

  • Analysis SccX-Structured Code Coverage eXtension

  • Evaluation code coverage Cobertura XML format

  • Line and branch coverage

  • Available for Beckhoff and Sigmatek






Roadmap


  • Implementation B&R Automation Studio

  • Implementation Bachmann PLC-Developer

  • Implementation Codesys V3



By combining version control, test case documentation, and the results from the test run, a variety of insights can be gained, significantly increasing the stability of the program.

Test Lab

In our test lab, we can test customer applications on request.



lab
  • Various control systems (Bachmann, Beckhoff, Sigmatek) are available for unit, component, performance or system tests.
    Tests can therefore be executed within the respective real-time environment.