How to define properties to be ignored during flow test case execution
By using AutoTestPropsToIgnore model rules, you can specify in advance which property differences you want the system to ignore during test case playback. These model rules indicate which properties are to be ignored by default.
For example, every time you run a flow that creates a work object, the pyID property (the work object ID) is set to a new unique value. When the test case is recorded, the pyID value at the time of recording is saved. When you play back that test case, the assigned pyID value during the playback is different than the saved pyID value. Unless the pyID property is specified in an AutoTestPropsToIgnore model rule, the system reports it as a difference. You want to always ignore the difference in the work object ID because you know it will be different each time.
There are several standard AutoTestPropsToIgnore model rules in Process Commander. These model rules use inheritance to ignore properties. The standard ones are a starter set of properties that most users want ignored during test case playback. For example, the pyID property is specified in the standard Work-.AutoTestPropsToIgnore model rule.
- Within the unit test suite run report, accessed from either the Dashboard or Reports gadgets in the Automated Unit Testing landing page. If a unit test suite run finds differences, they are displayed when you view the report, and you can make your selections of which differences to ignore right there.
- Within the results window after running an individual test case.
To specify properties to ignore by default, in addition to the standard ones:
- In the Rules by Type explorer, select Technical > Model.
- Click the New button. The New dialog displays.
- In the Rule Explorer, right-click Model in the Technical category.
- Select New from the context menu. The New window opens.
The rest of the steps in this article apply to V6.1.
- Name the model AutoTestPropsToIgnore and then click Create.
- On the Definition tab, enter the properties that you want ignored by default during test case playback. Leave the value fields blank.
- Select the Call superclass model?check box.
When this option is selected, the AutoTestPropsToIgnore model rule in the immediate parent class is applied before this one. This chaining of model rules provides the ability to apply any ignored properties specified in a higher class without having to re-specify them. The model in the highest class is applied first. The current model is applied last.
- Save the model rule.