You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: browser/composer front-end qa > front-end test plans > Feature Test Plan Find/Replace

Feature Test Plan

6.5 Composer: Find+Replace

Written by Sujay Desai

History
Date Change Description Revision Updated By
12/11/99 creation 1.0 sujay
1/24/01 updated 1.1 sujay

References:

Engineering Specifications: None
Test Case Management Usage:
Major Area: Composer
Minor Areas: Find/Replace
Category: Composer UI

Find/Replace

  • large document
    • Open a large document in the editor
    • Enter a simple string in the Find dialog that has multiple occurences that exists in document
    • Verify that you're able to find each occurence of that string
  • small document
    • Open a small document in the editor
    • Enter a simple string in the Find dialog that has 1 or more occurences that exists in document
    • Verify that you're able to find each occurence of that string
  • short string
    • Open a normal document in the editor
    • Enter a very short string (e.g. "hi") in the Find dialog
    • Verify that you're able to find each occurence of that string.
  • long string
    • Open a normal document in the editor
    • Enter a long string(e.g. "existentialism") in the Find dialog that exists in document
    • Verify that you're able to find each occurence of that string.
  • space
    • Open a normal document in the editor
    • Enter a space (e.g. " ") in the Find dialog
    • Verify that the first space is found.
  • case sensitive
    • Open a normal document in the editor
    • Enter a string (e.g. "The") in the Find dialog that exists in document
    • Click on the Case Sensitive checkbox, followed by OK button to start Find.
    • Verify that you're able to find only "The" occurences of that string and not "the"
  • case insensitive
    • Open a normal document in the editor
    • Enter a string (e.g. "The") in the Find dialog that exists in document
    • Click on the Case Sensitive checkbox, followed by OK button to start Find.
    • Verify that you're able to find any occurence containing "the", (e.g. The, tHe, thE, the)
  • backward (case 1)
    • Open a normal document in the editor
    • Enter a string in the Find dialog that exists in document
    • Find all occurences untill you're at the end of document
    • Now click on Backwards checkbox, followed by OK button
    • Verify that you're able to find occurences of that string going up the document, backwards.
  • backwards (case 2)
    • Open a normal document in the editor
    • Insert cursor somewhere after the first string to be found.
    • Enter that string in the Find dialog and click on Backwards checkbox, followed by Ok button
    • Verify that you're able to find the occurences of that string backwards from where you originally inserted your cursor.
  • garbage chars
    • Open a normal document in the editor
    • Enter a bogus string (e.g. "9s7ryg9r" ) in the Find dialog that doesn't exist in document
    • Verify that you're able find no occurence of that string.
  • replace once
    • Open a normal document in the editor
    • Enter a string in the Find dialog that exists in document
    • Also click on the Replace Once checkbox along with a string that you want to replace
    • Verify that you're able to find one occurence of string and it replaces with new string
  • replace all
    • Open a normal document in the editor
    • Enter a string in the Find dialog that exists in document at least more than once
    • Also click on the Replace All checkbox along with a string that you want to replace
    • Verify that you're able to find all occurences of string and replace with new string everywhere in document
  • replace with same string
    • Open a normal document in the editor
    • Enter a string in the Find dialog that exists in document at least more than once
    • Also click on the Replace All checkbox along with a string that you want to replace
    • In the Replace field, enter the same string.
    • Verify that you're able to find all occurences of string and replace with same string
      everywhere in document and stop after the last replace.
  • wrap
    • Open a normal document in Editor
    • Enter a string in the Find dialog that exists in document
    • Verify that all occurences of that string are found
    • When you reach the bottom/end of the document, It should stop at bottom and pop up a panel "End of document reached, continue from beginning?" with OK/Cancel buttons.
    • If you click OK, it should start finding occurences of that string all over from the beginning/top of the document
    • If you click Cancel, it should end the search.
  • find again/next
    • Open a normal document in Editor
    • Enter a string in the Find dialog that exists in document
    • Verify that you're able to find the first occurence of that string
    • Click on Find Next/Again in Find Dialog
    • Verify that you're able to find the next occurence of that string
    • Repeat until no more occurences are found, should work until end of document
  • find string contains space(s) (case 1)
    • Open a normal document in Editor
    • Enter a string with 1 or more space (e.g. "he llo") in the Find dialog that doesn't exist in document
    • Verify that you cannot find that occurence because it has a space in it.
  • find string contains space(s) (case 2)
    • Open a normal document in Editor
    • Enter a string with 1 or more space(e.g. "he llo") in the Find dialog that also exists in document
    • Verify that you're able to find all occurences of that string with space in it.
  • find and replace of null string
    • Open a normal document in Editor
    • Enter a string in the Find dialog that exists in document
    • Verify that you're able to find the first occurence of that string
    • In the Replace field, enter a null string
    • Click OK
    • Verify that you're able to find the next occurence of that string and replace it with blank (null) space.
  • strings to be matched contains space(s), tabs, returns
    • Open a normal document in Editor
    • Enter a string (e.g. "hello")in the Find dialog that exists in document but with spaces, tabs or return
    • Verify that you cannot find that occurence because it has space(s), tab(s) or return(s) between the string.

The goal of this feature test plan is to exercise the functionality of Find and Replace within the Composer UI