You can add one or more component or reference emulators
to a module in the test configuration in the test suite editor. This
enables you to emulate references, components, or imports in your
module.
About this task
If your test is invoking a one-way operation, the test will
return a result of Passed, but the emulation will not actually run
unless you have followed the instructions in the topic "Emulating
components and references when invoking one-way operations".
To
add a component or reference emulator to a test configuration module:
Procedure
- In the test suite editor, click the Configurations tab.
The Configurations page opens.
- Click the Add icon
. The New Configuration wizard opens.
- In the Wizards list box, select Component
and Reference Emulator and click Next.
The Select a Module page opens.
- In the Select a module to continue list
box, locate the test configuration that contains the module where
you want to add an emulator, then select the module.
- Click Next. The Add Components and
Reference Emulators page opens.
- If you want to emulate references, complete the following
steps:
- Ensure that References is selected.
- In the Emulated references in this module list
box, select the check box beside the name of each reference that you
want to emulate.
- If you want to emulate components or imports, complete
the following steps:
- Select Components.
- In the Emulated components and imports in
this module list box, select the check box beside the
name of each component and import that you want to emulate.
- Click Finish. The emulators are
added to the selected test configuration module.
What to do next
When you add a component or reference emulator to a test
configuration module, it is automatically defined as a manual emulator
by default. If you want to define an emulator as a programmatic emulator,
see the topic "Defining emulators as programmatic."