Introducing a new application under test - iks-gmbh-tools/SysNat GitHub Wiki
Note: The first three steps can be done automatically by using the class TestApplicationGenerator (see this tutorial).
-
In your local workspace go to directory sysnat.natural.language.executable.examples, open the text file settings.config and add a new test application name to the list of allowed values already present (let us assume that the new application name is e.g. MyTestApp).
# Values allowed / Mögliche Werte: # HomePageIKS, HelloWorldSpringBoot, MyTestApp Application_Under_Test = MyTestApp
-
Create a new properties file MyTestApp.properties in the execution properties directory (you may copy an existing properties file and adapt the property value).
-
Create a new source code package with a new Java file which represents a language template container. Name it MyTestApp/LanguageTemplatesBasics_MyTestApp.java and locate it in the language template package. You may copy an existing language container Java file and delete all existing methods in it.
-
Create a new folder with a new empty executable example file which is going to contain the natural language instructions that control the test application. Name it MyTestApp/FirstTest.nlxx and put it in the executable example directory.
-
Put the following two lines into the newly created and still empty executable example file FirstTest.nlxx:
XXID: <filename> Comment: This is a smoke test.
-
Start SysNatTesting, in the ConfigSettingsDialog select MyTestApp, select an environment that is defined in the MyTestApp.properties, start the test execution and view the test result. The test report is launched automatically containing the information of one successfully executed test and the test execution details (which is currently only one line of comment for the smoke test).