IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Testing modules > Component testing > Manage test suites > Editing test suites > Create and managing test cases > Manage emulator definition steps
Editing emulator definition steps for components and references
In the test suite editor, you can edit an emulator definition step for a component or reference and customize it for specific tests.
For example, you can select a different interface and operation for the step.
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 edit emulator definition steps for components and references:
Procedure
- In the Business Integration view, expand your component test project and expand the Test Suites folder.
- Right-click your test suite and select Open. The test suite opens in the test suite editor.
- Click the Test Cases tab. The Test Cases page opens.
- In the Test Cases area, select a Define component emulator step or a Define reference emulator step.
- In the Detailed Properties area:
- In the Module field, select the module that you want to use for the emulator definition step. (If you need additional information about this property or any other property, position your cursor in the property and press F1 to open the context-sensitive help information.)
- In the Component field, select the component that you want to use for the emulator definition step.
- If you selected a Define reference emulator step in the Test Cases area, select the reference that you want to use for the emulator definition step in the Reference field.
- In the Interface field, select the interface that you want to use for the emulator definition step.
- In the Operation field, select the operation that you want to use for the emulator definition step.
- Click the Output tab and then select either Return response or Throw exception, depending on the parameter type that you want to return. If you choose Return response, select a variable for the output parameter and then click the link on the parameter name to open the test data table and specify a variable value in the Set column. If you choose Throw exception, select the exception that you want to throw.
- If you want to specify a variable value for the input parameter, click the Input tab, then select a variable for the input parameter and click the link on the parameter name to open the test data table and specify a variable value in the Expected column. The emulator rule will only apply if the actual input data values match the values specified in the expected inputs of the emulator definition. By default, the expected inputs are not set, which means that the emulator rule is always applied.
- In the test suite editor, press Ctrl-S to save your changes.