Jtest logo




Contents  Previous  Next  Index

Automatic Rule Creation


One of RuleWizard's most powerful features is the Auto-Create Rules function. You can indicate what code you don't want to appear and RuleWizard does the rest.

To have RuleWizard automatically generate a rule based on dictionary elements:

  1. Right-click in the white space of the Node tab and choose Auto-Create Rules from the short-cut menu. The Automatic Creation window will open.
  2. In the RuleWizard Automatic Creation window, type the code you do not want to appear in your program into the Sample Java section.
  3. Click Create.
    The graphical representation of the rule appears with nodes and conditions in the GUI's right panel.
  4. Right-click the Output arrow, replace the text, "Replace this with your own text", then click OK.
  5. Right-click the gray area in the GUI's right panel and choose Properties.
  6. In the Rule Properties window, type over the "Automatic Rule" text in the Header field, and specify any other properties.
  7. Click OK.
  8. Choose Rule> Save to save the rule.
  9. In the Save As window, type a name for the rule in the File name field and click Save.
    The rule is saved.
  10. Once the rule is saved, you can have Jtest enforce it. For more information, see How to Automatically Enforce Your Custom Coding Standards

Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft