In this lesson, you learn how to edit the view to customize it. You change the appearance
of the nodes. You use conditional parameters to change the color of the containers. You can also
sort the nodes based on attributes of the artifacts. You can change the shape of the
relationships in the view to highlight traceability. You can hide a container, and
then show it again in the view.
About this task
- Dashed lines draw relationships between containers. See
relationship 1 in the image.
- Solid lines draw relationships from nodes in each container to other nodes in
other containers. See relationship 2 in the image.
Procedure
-
Change the properties of a relationship.
-
In the view editor, right-click the dashed arrow between the Test
Result and the Test Environment containers, and click
Edit relationship.
-
On the UI type tab, in the UI type field, select
Round relationship, and click
Ok.
Use other parameters in this dialog box to control the direction of the
relationship, arrow styles, and other relationship properties.
The relationships between the container nodes change according to your
UI type selection.
-
To hide a container, right-click the Test Result container, and
select Hide container.
The relationships from the
Test Case to the
Test Environment container are redrawn after the
Test
Result container is removed.
Tip: To bring back hidden containers, right-click the dashed line between
containers, and select Show hidden containers.
Tip: Right-click the canvas,
and select Show count to see the number of artifacts in each container in a
view. To see how many artifacts are in one container, right-click the container, and select
Show count. To see the artifacts again, select Show
artifacts.
-
Change the appearance of the nodes.
-
Show the test case ID in the node.
Right-click a node in the
Test Result container, and click
Edit node. On the
UI type tab, select
baseResourceNode from the list. Click the pencil icon to edit the
Title parameter value and select
ID in the list of
attributes.
-
Change the size of the node to show longer node descriptions.
In the node editor, set the node width to 400. To automatically adjust the
width of the container to show longer node titles, set the Overflow parameter
to Expand.
-
Click Ok to save the changes.
-
Use conditional parameters to color-code the features based on their difficulty. Use red for
high difficulty features, yellow for medium, and green for low.
-
Right-click a feature node, and click Edit node.
-
In the node editor, click the Edit parameter icon near the
Fill UI parameter.
-
In the Parameter: fill window, click Add.
The Conditions window opens.
-
To set the condition and color of the artifacts for Feature container
that has high difficulty, complete the following substeps:
- From the list of property, select Difficulty.
- Select operator as =.
- Select the value as High.
- From the list of colors, select Red.
- Click Ok.
-
Repeat steps c and d to set the conditions and parameter values for medium and low feature
difficulties.
- For artifacts with the difficulty attribute set to Medium, select
Yellow from the list of colors.
- For artifacts with the difficulty attribute set to Low, select
Green from the list of colors.
-
Keep White as the default fill value.
The nodes that do not meet the configured conditions are shown in white color.
-
Click Ok to save all your settings.
Results
You learned how to customize the node containers and relationship, and how to
hide containers that are not relevant to the users of the view. You configured conditional
parameters to highlight features that meet specific conditions.
Explore the
outline to focus on a specific area of a large view. If you
don't need the outline, you can right-click at any empty point on the canvas to turn it off. The
look of the view changes based on your settings.