How does SysNat work? - iks-gmbh-tools/SysNat GitHub Wiki
SysNat is a stand alone application that executes in two phases. Firstly SysNat generates program code for the test execution, secondly SysNat calls a tool to get the code executed:
When started, SysNat reads each natural language input file and collects all the instructions used therein. Each instruction is mapped on Java methods that developers have made available for SysNat in so-called LanguageTemplateContainer classes. The mapping is done via the method's annotations:
If all instructions can be mapped the instructions are translated into java code. For this purpose a JUnit Java class is generated that contains for each instruction the corresponding method call. To make this working the instruction code and the Java method call must be merged so that the data values from the instructions become part of the generated source code:
The generated JUnit class is executed either by Maven or by the IDE used. SysNat provides a non-technical test report which is also written in natural language (see Domain User Valuable Test Report) and launched automatically after execution.