Ensuring the Availability of the Option to Enable Auto-Correction for a Test

Once a corrective script for a test or a measure is built with the aforesaid contents, you need to make sure that the option to enable / disable the auto-correction capability for the test in question, is made available. In other words, you need to ensure that the test configuration page consists of the CORRECT parameter, which when turned on, displays the alarmtype, userparams, and correctivescript parameters. As already stated, this option is by default available for the ProcessTest or WinServiceTest. In order to ensure its availability to any other test, the following parameters should be appended to all occurrences of the corresponding test name in the eg_specs.ini (in the <EG_INSTALL_DIR>\manager\config directory) file:

-correct <true/false> -alarmtype <H/M/L> -userparams none -correctivescript none

In the above entry, the text right next to the hyphen (‘-‘) denotes the parameter, and the entry adjacent to the parameter signifies the default value that the parameter will take. For example, the entry ‘-correct’  refers to the correct parameter in Figure 1. The default setting for this parameter can be true or false. Indicate your choice by specifying either true or false against ‘-correct’.

The ‘-alarmtype’ parameter corresponds to the alarmtype list box in Figure 1, and is followed by the type of alarm (whether High/Medium/Low) that should be selected by default in the alarmtype list box. Specifying H, M, or L against ‘-alarmtype’ denotes that a High, Medium, or Low alarm type respectively, will be the default selection in the alarmtype list box.

The entry ‘-userparams’, that corresponds to the userparams parameter of Figure 1, will contain the value ‘none’, by default. Similarly, the ‘-correctivescript’ parameter will take the value ‘none’, by default.

Finally, save the eg_specs.ini file to register the changes.