Announcement

Collapse
No announcement yet.

Write functionality (not GUI) test cases for "Find" text box in Notepad - as many as

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Write functionality (not GUI) test cases for "Find" text box in Notepad - as many as

    REQUIREMENTS:
    1. user can search down
    2. user can search up
    3. search can be case sensetive
    4. search can be case insensetive
    5. the found string gets selected
    6. multiple occurances of same string ("find next" button)
    7. "cannot find ..." message provided when needed
    8. default value provided (most recently searched string)

    DATA:

    TEST CASES:

  • #2
    Test cases

    My test cases
    Attached Files

    Comment


    • #3
      Functionality test cases for "Find" text box in Notepad

      REQUIREMENTS:
      1. user can search down
      2. user can search up
      3. search can be case sensetive
      4. search can be case insensetive
      5. the found string gets selected
      6. multiple occurances of same string ("find next" button)
      7. "cannot find ..." message provided when needed
      8. default value provided (most recently searched string)

      DATA:
      first name
      FIRST NAME
      First Name

      Pre-req. :
      - create a notepad file with specified text inside.
      - each test case beging with mouse pointer placed in the beginning of the document

      TEST CASES:

      ID 1.
      Purpose: searching Up/Match
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "Match case" and "Up" direction=> type FIRST=> push "Find next" button
      Expected Result: FIRST is found/selected

      ID 2.
      Purpose: searching Up/No match
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "NO Match case" and "Up" direction=> type FIRST=> push "Find next" button
      Expected Result: word "First" will be found, which is closest to the end of doc, no matter what case is has upper or lower.

      ID 2a)
      Purpose: searching Up/No match after pushing "Find next" button second time in row
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "NO Match case" and "Up" direction=> type FIRST=> push "Find next" button (observe "First" chosen word)=> push "Find next' (observe "FIRST" chosen word)
      Expected Result: after second clicking on buttong "Find next" second word "FIRST" is chosen

      ID2b)
      Purpose: searching Up/No match after pushing "Find next" button third time in row
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "NO Match case" and "Up" direction=> type FIRST=> push "Find next" button (observe "First" chosen word)=> push "Find next' second time (observe "FIRST" chosen word) => push "Find next" button third time (observe "first" chosen word)
      Expected Result: after third clicking on button "Find next" third word "first" is chosen

      ID 3.
      Purpose: searching Down/Match
      Steps/Instructions: pointer to Beginning of doc=> open "Find"=> set "Match case" and "Down" direction=> type FIRST=> push "Find next" button
      Expected Result: word "FIRST" is chosen/selected


      ID 4.
      Purpose: searching Down/No match
      Steps/Instructions: pointer to Beginning of doc=> open "Find"=> set "NO Match case" and "Down" direction=> type FIRST=> push "Find next" button
      Expected Result: word "first" will be found, which is closest to the end of doc, no matter what case is has upper or lower.

      ID 4a)
      Purpose: searching Up/No match after pushing "Find next" button second time in row
      Steps/Instructions: pointer to Beginning of doc=> open "Find"=> set "NO Match case" and "Down" direction=> type FIRST=> push "Find next" button (observe "first" chosen word)=> push "Find next' (observe "FIRST" chosen word)
      Expected Result: after second clicking on buttong "Find next" second word "FIRST" is chosen

      ID 4b)
      Purpose: searching Up/No match after pushing "Find next" button third time in row
      Steps/Instructions: pointer to Beginnig of doc=> open "Find"=> set "NO Match case" and "Down" direction=> type FIRST=> push "Find next" button (observe "first" chosen word)=> push "Find next' second time (observe "FIRST" chosen word) => push "Find next" button third time (observe "First" chosen word)
      Expected Result: after third clicking on button "Find next" third word "First" is chosen

      ID 5
      Purpose: verify friendly message "Cannot find "FIRST"" appears after system found specified word already and there is no the same words in the text to be found.
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "Match case" and "Up" direction=> type FIRST=> push "Find next" button (observe "FIRST" is found)=> push "Find next" button again (observe message "Cannot find "FIRST")
      Expected Result: message "Cannot find "FIRST"" appears after system found specified word already and there is no the same words in the text to be found.

      ID 6
      Purpose: "Cancel" button is working
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "Match case" and "Up" direction=> type FIRST=> push "Cancel" button
      Expected Result: "Find" dialog box disapears and mouse pointer still in the end of doc (same position).

      ID 7
      Purpose: "X" (close "Find" dialog box) button is working
      Steps/Instructions: pointer to END of doc=> open "Find"=> set "Match case" and "Up" direction=> type FIRST=> push "X" close button on the top right side of the "Find" dialog box.
      Expected Result: "Find" dialog box disapears and mouse pointer still in the end of doc (same position).

      ID 8
      Purpose: to verify that default value (recent search) is provided when "Find" dialog box is opened
      Steps/Instructions: pointer to END of doc=> open "Find"
      Expected Result: observe default value "FIRST" in the "Find what" text field.

      Comment


      • #4
        Requirements:
        1. The search field "Find what" can be sensitive to the case
        2. The search field "Find what" can be insensitive to the case
        3. The direction of the search: top-down and bottom-up
        4. The possibility to select value in the search field
        5. The multiple searches with the button "Find next"
        6. The error message "Cannot find..." appears when required

        Test data:
        Ocean
        ocean

        Pre-conditions:
        1. The test data is entered
        2. The mouse pointer is placed at the beginning of the document

        (GUI)
        1. Make sure the button "Find Next" from the search field "Find" is disabled if the text field "Find what" is empty

        (Functional)
        1. Find "Ocean" when "Match case" and "Down" are selected
        Instruction: 1.enter the test data; 2.pointer at the beginning; 3.set "Match" and "Down"; 4.input "Ocean";
        5.push the button "Find next".
        Expected result: the "Ocean" is found

        2. Find "Ocean" when "Match case" and "Up" are selected
        Instruction: 1.enter the test data; 2.pointer at the end of the document; 3.set "Match" and "Up"; 4.input "ocean";
        5.push the button "Find next".
        Expected result: the "ocean" isn't found

        3. Find "ocean" when "Down" is selected only
        Instruction: 1.enter the test data; 2.pointer at the beginning; 3.set "Down"; 4.input "ocean";
        5.push the button "Find next"
        Expected result: the "ocean" is found

        4. Find the word "ocean" when "Up" is selected only
        Instruction: 1.enter the test data; 2.pointer at the end; 3.set "Up"; 4.input "Ocean";
        5.push the button "Find next"
        Expected result: the "Ocean" is found

        5. Select value in the search field "Find what"
        Instruction: 1.input "Ocean"; 2.select the value
        Expected result: selected

        6. Find more than 1 value with a button "Find next"
        Instruction: 1.enter the test data; 2.pointer at the end; 3.set "Up", "Match is disable"; 4.input "Ocean";
        5.push the button "Find next" two times
        Expected result: two values are found

        7. Make sure The error message "Cannot find..." appears when required
        Instruction: 1.enter the test data; 2.pointer at the end; 3.set "Up"; 4.input "See";
        5.push the button "Find next".
        Expected result: error message "Cannot "find see"
        Last edited by SergeAleksandrov; 05-23-2017, 02:58 PM.

        Comment


        • #5
          TEST CASES:

          1. Find ''Journey'' when ''Match case'' and ''Down'' are selected.
          Instructions:
          1. Enter the test data.
          2. Open ''Find'' text box.
          3. Set ''Match'' and ''Down''.
          4. Input ''Journey''.
          5. Push the ''Find next'' button.
          Expected result: the ''Journey'' is found.

          2. Find ''Journey'' when ''Match case'' and ''Up'' are selected.
          Instructions:
          1. Enter the test data.
          2. Open ''Find'' text box.
          3. Set ''Match'' and ''Up''.
          4. Input ''journey''.
          5. Push the button ''Find next''.
          Expected result: the ''journey'' isn't found.

          3. Find ''journey'' when ''Down'' is selected only.
          Instructions:
          1. Enter the test data.
          2. Open ''Find'' text box.
          3. Set ''Down''.
          4. Input ''journey''.
          5. Push the button ''Find next''.
          Expected result: the ''journey'' is found.

          4. Find ''journey'' when ''Up'' is selected only.
          Instructions:
          1. Enter the test data.
          2. Open ''Find'' text box.
          3. Set ''Up''.
          4. Input ''journey''.
          5. Push the button ''Find next''.
          Expected result: the ''journey'' is found.

          5. Find more than 1 value with a button ''Find next''.
          Instructions:
          1. Enter the test data.
          2. Open ''Find'' text box.
          3. Set ''Up''.
          4. ''Match is disable''.
          5. Input ''Journey''.
          6. Push the button ''Find next'' two times.
          Expected result: two values are found.

          Comment

          Working...
          X