You can reuse an existing component in the project, instead of using the newly-learned component.
When BPT Packaged Apps Kit learns a flow, it analyzes the learned components to see if there exists within the project one or more components that are similar to, or identical to, the learned components. If such a component exists, BPT Packaged Apps Kit enables you to reuse the existing component instead of creating a new component in your flow.
Only components in the project that were created through the Learn Flow process are analyzed for similarity with the learned component. If components are similar to the learned component, it can be reused, and a new learned component is not created.
Note: A component that is substituted with a reused component is not listed in the flow folder of the Business Components module. A flow folder is not created in the Business Components module for flows that use only reused components. To find the location of a reused component, right-click the component in the Test Script tab of the Test Plan module and select Go to Component. The Business Component module opens and displays the selected component.
Existing learned components in the project are compared to the learned component using the following criteria:
- Both components represent the same screen.
- Both components represent the same screen with exactly the same objects. Checkpoints and Output objects must also be identical for this criterion to match.
- Both components contain the same steps. Steps are considered identical when they perform the same action, and refer to the same objects.
- Both components contain the same steps in the same order.
Percentages indicate the degree to which the existing component is similar to the learned component.
Percentage similarity is defined as follows, based on the criteria specified in Criteria for comparison :
All four criteria are met.
Criteria 1, 2, and 3 are met.
Criteria 1 and 2, or 1 and 3, are met.
Criterion 1 is met.
The following entities also determine if the currently-learned component can be substituted with an existing learned component:
Checkpoints and Output objects
Are considered identical when they refer to the same properties.
Steps that reference table parameters
Are considered identical when they reference the same table object and use the Input operation. The structure of the table parameter (columns, rows) and the contents of individual cells within the tables are not compared.
Steps that reference methods
Are considered identical when they refer to the same objects and methods, have the same comments, and contain the same number of arguments. The values of the arguments are not compared.
In the Learn Summary dialog box, select a component and click the Available Components for Reuse tab. The Available Components for Reuse dialog box enables you to reuse an existing component in the project, instead of using the newly-learned component.
User interface elements are described below:
|Available Components area
Lists components in the project that are identical to, or similar to, the learned component. Percentages indicate the degree to which the existing component is similar to the learned component.
Displays general information about the selected component.
|Similarity Criteria area
The criteria by which the existing component is found to be similar to the learned component. A check mark next to the criterion indicates that the criterion was met.
Displays the steps in the component selected in the Available Components area.