Tutorial: Creating and Enforcing Custom Coding Standards
This tutorial will walk you through the steps required to compose and automatically enforce three rules:
- Instance fields should begin with an underscore (_) (Lesson 1)
- Assignment within IF statements (Lesson 2)
- Documentation for methods with over 17 lines
Getting Started
To open RuleWizard:
- In the Jtest UI, open the Global Test Parameters window by clicking the Global button.
- Go to Static Analysis> Rules> User Defined Rules.
- 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.
|