Editing Tests: Finding and Replacing Text


  1. From the Script Editor window, click the Find/Replace... button.
    The Find/Replace dialog opens.

    Find/Replace dialog

  2. Type the text you want to find in the Find text field.

  3. To replace the text, type the replacement into the Replace with field.

  4. If you want to find matches regardless of whether they match the case in your replace string, check Case insensitive .

  5. By default, the search runs forward to the end of the file. Check Search backwards if you want the reverse.

  6. Click the button that matches the operation you want to perform--Find, Replace, or Replace all.
    Use Replace all judiciously. If you choose this button and then discover you've made a mistake, you can't undo the operation. Instead, you must use the Undo since save option. You can work around this by saving just before doing a Replace operation, thereby ensuring that if you do need to undo the operation immediately, you won't be losing any other work.

  7. Click Close when you're done searching for text.



Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.