STIF Carbide.c++ Extension offers a user friendly editor for manipulating
script files for both TestScripter and TestCombiner. The editor provides Users
with syntax highlighting, code assistant, syntax checker and other features
making work with scripts easier and more efficient.
To use STIF Script Editor simply open the .cfg file under Carbide.c++
environment (File -> Open File...).
The "Choose a proper editor mode" dialog opens:
Choose the desired mode by clicking proper button. It is possible to change the
mode later.
Depending on the chosen mode the STIF Script Editor will start in TestScripter
mode or TestCombiner mode.
It is possible to change the mode by choosing one of radiobuttons located above
the editing window.
The pictures below present the editor working in both modes:
TestScripter mode
TestCombiner mode
As presented on the pictures the editor offers code highlighting. The set of keywords that will be highlighted depends on the selected mode.
The editor gives a possibility of folding test cases. A test case can be
collapsed by clicking the minus "-" sign next to the given test case.
The picture below presents two collapsed test cases:
The test cases can be expanded to the previous form by clicking the plus "+"
sign next to the given test case.
The Outline view presents a list of test cases that the current file contains.
The user can move the cursor to the selected test case by clicking the proper
label in the Outline view.
The editor checks the syntax of the script. If an error is found then a line
containing it is marked and a comment is added to the Problems window. The
picture below presents how the editor points the errors:
The STIF Script Editor provides users with code assist. The suggestions of the
code assistant, depending on the current context, can be displayed by pressing
"ctrl" + "space" combination on the keyboard.
The picture below shows the window of the code assistant with words suggested
for the current context: