Script Templates


Create a new Test Context

Run the Test

Last updated
final String SCRIPT_NAME = "MyFirstScript"
/* **************************************************************************
This is my first script.
IN : [Describe inbound arguments]
OUT: [Describe outbound arguments]
------------------------------------------------
12.05.2024 mspro - Created
Template v0.2.1
************************************************************************** */
final _logger = ExecutionUtil.getBaseLogger()
_logger.info('>>> Script start ' + SCRIPT_NAME)
...
for (int docNo = 0; docNo < docCount; docNo++) {
final String textDoc = _getTextDocument( docNo)
final Properties props = dataContext.getProperties(docNo)
// *********** Document related functionality ************
// Your document related code here ...
// ******** end of Document related functionality ********
_setTextDocument( textDoc, props)
}
...@TypeChecked
class Test_psgCalcTotal {
final String SCRIPT_NAME = "psgCalcTotal"
@SourceURI
URI _sourceUri
final ProcessScript _testScript
= new ProcessScript("psg" + SCRIPT_NAME + ".groovy", _sourceUri)
/** A short description what this test is supposed to do. */
@Test
void test01() { ... }
}