Create AI-powered validations

With the help of the AI Validation Assistant, you can check whether a scenario is true or false, or whether certain information is present or absent on the device screen. The AI Validation Assistant helps you turn your question into a valid pass or fail validation that you can then include as a value for the Validation parameter in the AI Validation command. The answer results in a pass or fail value.

To have this functionality set up in your cloud, contact your Perfecto account representative. A separate license is required to access this feature.

To add a validation:

To be able to add an AI Validation, you need to open a device.

  1. In the Left sidebar, select the AI tab.

  2. Click and drag the Validation command to the test editor.

  3. Double-click the Validation in the test editor to enter the validation.

  4. In the AI Validation assistant pane, at the bottom, type a validation. The validation can include one or more variables:

    • To add a variable, type ${. This brings up the list of existing variables you can select from (provided any variables are defined).

    • To create a new variable, enter it in the following format: ${variable-name}. Example:

      If the Save button is visible, put yes into ${isVisible}, else put no into ${isVisible}

  5. To submit your validation, click the send button .

    At the top of the AI Validation assistant pane, the assistant presents you with the answer.

    The AI Assistant highlights the pertinent UI elements on the device screen. To see an explanatory tooltip, hover the mouse over the highlight. A red highlight indicates a failed validation, green indicates passed, and purple can indicate secondary evidence.

  6. (Optional) Include one or more variables in your validation:

    • To add a variable, type ${. This brings up the list of existing variables that have been defined.

    • To create a new variable, enter it in the following format: ${variable-name}

    • If prompted for a variable value, enter the missing value.

    To learn more about variables in Scriptless Mobile, see Configure test variables.

  7. Based on the results and the suggested validation, do any of the following:

    • If the result is satisfactory, click Apply.

    • To copy the suggested validation text to the clipboard, hover over the text and click the Copy to clipboard button next to the text.
    • While answering a validation question, the AI Validation Assistant might also perform calculations or suggest better wording. For a number of examples, see AI commands FAQ
  8. (Optional) During your conversation with the assistant, click thumbs-up on good answers, or click thumbs-down if the assistant's answer was not helpful. A screenshot and the reported response will be sent to the Perfecto AI feedback list. To get more information on the answers provided by the assistant, click the Explain button .