Bearbeiten

Freigeben über


Validate expected values

Note

Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.

Validating expected values is an important part of a test case. Define validation parameters when you author your test cases by using Task Recorder. While recording, right-click on a control and select CurrentValue under the Task Recorder > Validate menu. This action adds a validation step that you can use with the Regression suite automation tool. The control value becomes a validation variable in the automatically generated Excel parameters file. The following image shows the menu item.

Screenshot of Validate menu item.

For more information about how to create task recordings, see Task recorder resources.

When RSAT generates the Excel parameter file for a test case, it adds validation steps as shown in the following image. Enter the expected value to use during execution of the test case.

Screenshot of validate variables.

Validate expected values by using operators

You can also use operators in validation steps to check that a variable isn't equal to, is less than, or is greater than a specified value. To use this feature, open the Settings tab and select the Optional tab. Turn on the setting named Use operators for validation. This option is available as of RSAT version 1.210. If you're using an older version of the tool, you must regenerate new Excel parameter files to take advantage of this functionality. In the Excel file, a new Operator field appears, as shown in the following image.

Screenshot of Validation in Excel in earlier version.

Validate the state of a control

When recording test cases, Task Recorder supports two extra validation actions:

  • Validate whether a control is enabled or disabled.
  • Validate whether a control is editable or read-only.

To take advantage of this validation, use a finance and operations app running on version 10.0.13 (or newer) and RSAT 2.0 (or newer). For more information, see Validate.