What | nameofinstance.xml |
---|---|
Description | Workflow test runs can be configured to automate tests |
schema location | http://fews.wldelft.nl/schemas/version1.0/workflowTestRun.xsd |
Table of Contents |
---|
Warning |
---|
Originally developed for testing purposes, the WorkflowTestRunner to run workflows automatically in a Stand Alone environment is now also used in “live” systems. This use has been proven to be performing well in practice and is now fully supported by Deltares. See also 03 Testing workflows with the WorkflowTestRunner in SA mode |
...
To start a workflow test in DELFT-FEWS open the debug menu (F12) and select 'run workflow test' (UC). This will open an open file dialog in which you can select a workflow configuration file to run in the current environment.
...
Workflow test runs can be started from the command line. To do so one must configure a Region as they would for a Stand Alone system.
Before 2014.02
Before 2014.02, configure in the bin directory the 'Region.exe' and 'Region.jpif' files. For the JPIF file some adaptation must be made. Here is an example:
No Format |
---|
..\jre -mx256m -cp $JARS_PATH$ nl.wldelft.fews.system.workflowtestrun.WorkflowTestRun Region_Name ..\path_to_your_config_test_file.xml |
Before 2018.02
From Since 2014.02 to 2017.02, this is was done via an ini file:
Code Block |
---|
#Delft-FEWS ini file main.class=nl.wldelft.fews.system.workflowtestrun.WorkflowTestRun classpath.1=*.jar #Java Runtime jvm.dll location ## for 32 bits use ../jre/bin/client/jvm.dll vm.location=../jre/bin/client/jvm.dll ## 64 bits use ../jre/bin/server/jvm.dll ##vm.location=../jre/bin/server/jvm.dll vmarg.1=-Xms512m vmarg.2=-Xmx1024m #location of the bin dir has changed in 2017.01 (was .) working.directory=../bin #region_home directory - <region_home> to be replaced with actual region home directory arg.1=../<region_home> arg.2=..\path_to_your_config_test_file.xml |
...
Check the attachment workflow_test_run for an example.
Since 2018.02
Since 2018.02, the required flags should be set when calling FEWS from the command line. This can be done conveniently with the simple DOS batch file below. Note that one should at minimum specify the root folder where the FEWS bin is stored, the regionHome directory, the patch, and the WorkflowTestRun file that is to be executed.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
echo off
set root=%1
set region_home=%2
set workflowtestrun=%3
start /wait %root%\bin\windows\Delft-FEWSc.exe -Dregion.home=%region_home% -DautoRollingBarrel=false -Xmx1024m -DoldPID=13096_1555070573358 -Djava.locale.providers=SPI,JRE -Dstart.time=1555070573676 -Djava.library.path=%root%\bin\windows -Wvm.location=%root%\bin\windows\jre\bin\server\jvm.dll -Wclasspath.1=%region_home%\sa_patch.jar -Wclasspath.2=%root%\bin\*.jar -Wmain.class=nl.wldelft.fews.system.workflowtestrun.WorkflowTestRun -Warg.1=%region_home% -Warg.2=%workflowtestrun% |
Linux
The normal startup script in linux systems is shown below:
...