Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This module allows you to automate test and to run workflows with or without starting-up the user interface. As such, it can also be used to automate tasks in stand-alone systems, for example in combination with the windows task scheduler (or cron in linux systems).

The workflow test runner can also be integrated into a CI/CD pipeline. For more information, please see: Workflow Test Runner in Azure Devops

Configuration


fig1: layout of the workflowtestrun configuration

...

  • date date as yyyy-MM-dd
  • time the time of day as HH:mm:ss


testReport

Since 2021.01. It is possible to generate a JUnit XML compliant XML report with the test results. Currently only junitXml is supported. This can typically be used in a build pipeline like Azure Devops or Teamcity.

For example:

Code Block
<testReport dir="%REPORT_DIR%">
    <reportType>junitXml</reportType>
</testReport>

In case one of the activities fail, a failed test will be reported.         

Activities

The activities of the workflow test run configuration that will be carried out. You can use activities in any order you like, they will be executed as ordered in your configuration file.

...

Exports the given time series to PI formatted file.

Since 2021.01 the version of the PI format can be specified using the piVersion element.

attributes:

  • exportFile path that specifies the location and name of the export file
  • timeSeriesSet time series set as specified here

...

Refreshes datastore. Empty element.

ContainsActivity

Search for the presence of text in a file

attributes:

  • searchFile file to search through
  • searchString array of strings to search for. All specified strings have to occur for the activity to complete successful.
  • emptyFile check if file is empty

NotContainsActivity

Search if text doesn't occur in a file

attributes:

  • searchFile file to search through
  • searchString array of strings to search for. If any of these search strings appear in the file, the activity fails.
  • emptyFile check if file is NOT empty

SleepActivity

Let process sleep for configured amount of milli seconds

...