Skip to content

SUT Editor

itaiag edited this page Aug 9, 2016 · 1 revision

SUT Editor

Before running a scenario in a new environment, the SUT file for the specific environment has to be selected, or adjustments to an already existing SUT file must be made.

Changing SUT File

The list menu of all the SUT files that were written by the authors of the automation project can be seen in the SUT drop down list. In order to change SUT files, select the new SUT file from the drop down list.

Editing SUT File

To edit the SUT file, press on the "Edit Sut" button.

When pressing on the button the default editor opens.

Changing the Default SUT Editor

In order to change the default SUT editor set the property "xml.editor" in the "jsystem.properties" file. The property should be set with a path to the editor that is identifiable by the operating system.

For example xml.editor= C:\Program Files\Vim\vim71\gvim.exe

Developing a New SUT Editor

In order to implement a new SUT editor, write a java class that implements the "jsystem.framework.sut.SutEditor" interface and sets the "sut.editor" property with full class name. For example: "sut.editor= jsystem.treeui.suteditor.TabbedSutXmlEditor"

In order to view an example of a custom SUT editor, go to the tabbed SUT editor: "jsystem.treeui.suteditorTabbedSutXmlEditor"

Reference: More on SUT can be found in The SUT Service section.

Clone this wiki locally