You can create tester data for assertion into the running engine’s working memory during testing and debugging.You can create tester data while you are working in the debug perspective. You can also create and save test data ahead of time and save it in your project for later use.
• Test Data This is concept and event instance data. This kind of data is created in Studio Explorer (in the BusinessEvents Development perspective). It can then be edited by clicking it in Studio Explorer or by clicking it in the Rule Input View > Tester Data tab (in the Debug perspective).
• Rule Data This is data directly provided as rule input. It is created and edited in the Rule Input View > Rule Data tab (in the Debug perspective).You can enter tester data for event payloads, and for concept, event and scorecard properties, including properties that are primitive types, array types, contained concepts, and reference concepts. If the concept, event or scorecard properties are associated with a domain model, then the test data gets populated with the values in the domain model.
1.
2. In the Test Data editor, click Add to add rows for new instances. You can add your own unique extId values to the test data input, as needed.
3. Click Save. The entity’s test data is saved to an XML file stored within the TestData folder in the project root.
1. In Studio Explorer, expand the TestData folder in the root of the project.
2. Drill down to the test data you want to edit. The folder structure matches the project’s event and concept folder structure.
3. Double-click the name of the test data file you want to edit. The test data editor opens. Add, remove, and edit rows of test data as desired.
1. Open the Rule Input view, if it is not already shown. To make the Rule Input View visible, do one of the following, as needed:
− Select the Debug perspective: Select Window > Open Perspective, or click the Open Perspective () button). Then select Other > Debug. The views associated with the Debug perspective open.
− In the Window menu, click Show View > Other. Expand TIBCO BusinessEvents, and select Rule Input. Click OK.For each concept or event for which you created test data, you see one row showing the project path to that concept or event.
1. Open the Rule Input view, if it is not already shown. To make the Rule Input View visible, do one of the following, as needed:
− Select the Debug perspective: Select Window > Open Perspective, or click the Open Perspective () button). Then select Other > Debug. The views associated with the Debug perspective open.
− In the Window menu, click Show View > Other. Expand TIBCO BusinessEvents, and select Rule Input. Click OK.
− Click Save to save the input values.
− Click Load to load the input values from an existing XML file.
− Click Assert to assert the data to the running engine.
Copyright © TIBCO Software Inc. All Rights Reserved.