Verifying Text

When authoring your script, you can associate text that you expect to be present in the application with a verification point or a reporting point. When running the script, you copy the actual text in the application to the clipboard. Manual Tester compares the actual text to the expected text associated with the statement. If there is a discrepancy, Manual Tester highlights the first character that is different in the Text Difference dialog box.

To verify text in an application:
  1. In the application you are testing, type the text you expect to be in the application when it is run.
  2. Highlight the text and press Ctrl+C to copy the text to the clipboard.
  3. In Manual Tester, click Capture > Data for Compare to associate the expected text with the current statement in the Text Editor.

    Manual Tester displays the Capture Data for Compare dialog box.

  4. Click Get Data From Clipboard.

    Manual Tester pastes the text you copied in Step 2 into the Data to compare when the statement is executed window.

  5. Click OK.

    Manual Tester closes the dialog box and associates the text you captured with the current statement.

  6. Author the statement to indicate that expected text has been captured. For example, "In the spreadsheet click cell B2 to F7. Press Ctrl+C to copy the grid for comparison. In Manual Tester, click the Compare Copied Text to Expected text button."

    When the script is run, Manual Tester automatically puts the expected text on the clipboard when you get to that statement. Manual Tester displays the data available icon Data available icon in the Result section to indicate that text was captured for comparison with actual text in the application as shown in the following example:

    Result section with data available icon

    Manual Tester also displays the expected text in the Compare Data property in the Properties view.

  7. When running the script, copy the actual text in the application to the clipboard by pressing Ctrl+C.
  8. In the execution viewer, click the Compare Copied Text to Expected text button Compare Copies Text to Expected Text button.

    If the actual text and the expected text are the same, Manual Tester displays a message.

    If there is a discrepancy between the text associated with the statement and the actual text present in the application, Manual Tester opens the Text Difference dialog box and highlights the first character that is different.

Parent topic: Entering and Verifying Text in an Application

Related reference
Text Difference Dialog Box
Properties View

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.