Jtest logo




Contents  Previous  Next  Index

Tutorial: Creating and Enforcing Custom Coding Standards


This tutorial will walk you through the steps required to compose and automatically enforce three rules:

  1. Instance fields should begin with an underscore (_) (Lesson 1)
  2. Assignment within IF statements (Lesson 2)
  3. Documentation for methods with over 17 lines

Getting Started

To open RuleWizard:

  1. In the Jtest UI, open the Global Test Parameters window by clicking the Global button.
  2. Go to Static Analysis> Rules> User Defined Rules.
  3. Right-click User Defined Rules and choose Add/Edit Rules (RuleWizard) from the shortcut menu.

Or,

  • In either Jtest UI, right-click the Rules button and choose Launch RuleWizard.

When you first open RuleWizard you will see the following GUI:

The nodes with which you build your rules are displayed on the left pane of the GUI. The gray pane on the right of the GUI will be your workspace for composing rules.


Contents  Previous  Next  Index

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