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 the Test Navigator View or the Unit Test View to the Fault Injection View.

  1. In the tree structure on the left of the view, click the line that you want to inject a fault and, on the right of the view, enter the user code to insert before/after the line. The number of the line where user code is written is underlined.
    • When check checkboxes of lines to insert, the user codes are applied. In the source code editor, (before the line), (after the line) markers appear at that lines. When mouse is on the markers, the tooltip about fault injection information and written code 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.
Show Only Non-empty Fault Injections View only the line where the fault injection code is written among the fault injection lines.
Show Only Enable Fault Injections View only active lines among fault injection lines.
Export Fault Injections Export fault injections information with .xls format.

Context menu in the Fault Injection view

Function nodes and lines can be multi-selected to bring up the context menu.

Context menu of function nodes

Menu Description
Remove Remove the function inserted by users.

Context menu of lines

Menu Description
Copy Copy the information inserted by user before/after the line.
Paste Paste the information inserted by user before/after the line.
Clean Uncheck the checkboxes of the selected lines and remove inserted code.
Enable Check the checkboxes of the selected lines and activate fault injection.
Disable Uncheck the checkboxes of the selected lines and deactivate fault injection.

Pull-down menu

Menu Description
Reconfiguring Fault Injection Note the Reconfiguring Fault Injection

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

Thanks for your feedback.