The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Feature Testcases
5.0 Ender
Find+Replace

Written by Sujay Desai



History:
Date 
Change Description
Revision
Updated By
 12/11
creation 
1.0
sujay
5/4 updated 1.1 sujay

References:

Engineering Specifications:
 

http://webgroup.mcom.com/composer/ComposerEngSpec.html#Find Replace (internal link)

Test Case Management Usage:
The detailed test cases for this feature can be found in Beaker by the following different criteria:
Major Area:  Ender
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.
    • null string
      • Open a normal document in the editor
      • Enter a very null string(e.g. " ") in the Find dialog
      • Verify that nothing is found and an error dialog pops up: "Nothing to search for"
    • 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.
    • clear
      • Open a normal document in the editor
      • Enter any string in the Find dialog, clicking OK button is optional
      • Click on the Clear button in the Find dialog
      • Verify that the text field in the Find dialog is empty and able to accept new input.
    • 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
    • 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.
    • 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 Ender UI.
Copyright © 1998-2000 The Mozilla Organization.
Last modified February 10, 2000.