check popup default text

Description

Check the default text of the user-entry fields of one or more prompt popups against their respective expected values. Result is Passed if all values match; otherwise Failed.

Arguments

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Notes

Applicable Built-In Settings

The following settings are applicable to this action: remove double quotes from cells, standard ASCII only.

Applicable Controls

This action is applicable to the following controls: none.

Example - Case 1: A single popup

Scenario: You are testing a customer information page with a button, Sign up, used for submitting one’s name:

  1. Upon clicking the button, a prompt appears with one input field and two buttons: OK and Cancel.

    Notes: 
    The prompt popup displays the fields:

    • Message: Please enter your name
    • Default text: Joe Doe
  2. The test enters a new input value, e.g. Jane Doe, and then clicks OK to proceed.

  3. The test then verifies the default text of the prompt popup based on a given message.

Action Lines

Result

Example - Case 2: A sequence of multiple popups

Scenario: You are testing an email registration page, with a button, Sign up, used for submitting a new email address:

  1. Upon clicking the button, a prompt popup appears with one input field and two buttons: OK and Cancel.

    Notes: 
    This first prompt popup displays the following:

  2. An invalid email address is entered (e.g. Doe), and then OK is clicked to proceed.

  3. An alert popup is triggered to notify user of the invalid email address. It has one button, OK .

  4. The test clicks OK in the alert to dismiss it and proceed.

  5. An additional prompt popup appears emphasizing the need for a valid email address.

    Notes: 
    This second prompt popup displays:

  6. A valid email address, e.g. [email protected], is now entered, and OK clicked.

  7. The test then verifies the following default texts:

    • The default text of the prompt popup whose message is Please enter a valid email.
    • The default text of the prompt popup whose message is Please enter your email address. (Hint: We can verify both default texts in a single action call by specifying prompts whose messages begin with the string Please enter)

Action Lines

Result

Related information

click on next popup

enter text on next popup

get popup message

get popup default text

check popup message

clear popup queue


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400