How to Save and Enable a Rule
In order to enforce a rule, you must save it. To save your rule, choose Rule> Save or Rule> Save As. This command will invoke a file chooser in which you can specify the rule's filename and path. A .rule extension is automatically assigned to each rule. If you do not use this exact extension, Jtest will not load your rules properly.
After you have saved your rule(s), you can exit RuleWizard.
To enable your rule:
- Click Global in either of Jtest's UIs.
- In the Global Test Parameters window, go to Static Analysis> Rules> User Defined Rules, then right-click User Defined Rules. A shortcut menu will open.
- Choose Reload Rules from the shortcut menu that opens.
Your rule will then be enabled; it will be contained in in the Static Analysis> Rules> User Defined branch of the Global Test Parameters tree.
|