The [Fault Injection] view provides the feature for inserting the code needed to test additionally into the specific area of the function to be tested.

  1. Drag and drop the function that you want to inject a fault from [Test Navigator view] or [Unit Test view] to [Fault Injection view].

  1. In the tree structure on the left of the view, click the node that you want to inject a fault and, on the right of the view, enter the user code to insert before/after the block.
    • When check checkboxes of nodes to insert, the user codes are applied. In the source code editor, (before the block), (after the block) markers appear at that nodes. When mouse is on the markers, the tooltip about fault injection information appears.

Toolbar menu in the Fault Injection view

Toolbar icon description
Expand All Expand all function trees in Fault Injection view.
Collapse All Collapse all function trees in Fault Injection view.

Context menu in the Fault Injection view

Context menu of function nodes

Menu Description
Delete Delete the function inserted by users.

Context menu of block nodes

Menu Description
Cut Contents Cut the contents inserted by user before/after the block.
Copy Contents Copy the contents inserted by user before/after the block.
Paste Contents Paste the contents inserted by user before/after the block.
Delete Contents Delete the contents inserted by user before/after the block.
Select Select the checkboxes of the selected nodes.
Deselect Deselect the checkboxes of the selected nodes.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.