Variants have the same predefined tests as the DEFAULT variant. You cannot add or remove tests, but you can select which tests are active and you can edit the parameter values.
Tests can only be activated if their parameters are set. All but the most trivial parameters are provided with default values in the DEFAULT variant. The following table shows the icons that display the status of each test.
Icon |
Description |
|
There are no parameters. |
|
All the required parameters are set. |
|
Not all the required parameters are set. |
You can set the fatal priority level of a variant. This is the priority level at which a message is designated as an error (instead of warning or information) in the Problems view. If you set the level to none, no messages will be designated as errors.
J2EE tests are a special case. See J2EE Tests with JLin.
1. Choose Window → Preferences → Java → JLin.
2. Either select an existing variant and choose Copy, or choose New.
If you choose New, the parameters are not set and none of the tests are marked as selected.
3. Enter the name of the new variant and choose OK.
1. Select a variant and choose Edit.
2. Set the Fatal Priority Level.
3. For each test that you will activate, maintain its parameters:
a. Right-click the test.
b. Choose Display description, read the description of the parameters, and then choose OK.
c. Choose Edit Parameters and Priorities and enter the required values.
There are two types of parameter – string, and string array. Each value in a string array has its own node. You can use the context menu to add or remove nodes.
Set the priority level of the messages.
If the Priority field is editable, set the value none, 1, 2, or 3.
If the Priority field value is dynamic, you set the threshold values for the priorities at the relevant parameters.
4. Use the check boxes to select the tests to be active.
5. Choose OK.