Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210994

Create test for SwingSet3 FrameDemo

XMLWordPrintable

    • b14
    • generic
    • generic

        Scenarios to automate:

        1. Asserts the visibility of internal frame
        2. Add action listener for button "Toolbr Button" and check the action is happening or not
        3. Get the menu bar and asserts menu and menu item count, and its names
        4. Add actions to menu items and check the action is happening or not by selecting menus
        5. Asserts the added labels are exists or not
        We could also assert the color of the blue interior of the frame.
        7. Iconify the frame and asserts the iconified status
        8. Deiconify the frame and asserts the iconified status
        9. Maximize the frame and asserts the frame status
        10. Resize to the frame to original size and asserts the status
        I'd rather put three things here:
        10a. Restore original size of the frame
        10b. Resize the frame
        10c. Move the frame
        11. Close the frame and asserts the visibility of the frame.
        12. Press "Show JFrame" button and asserts the visibility of the frame.
        13. Tick "Frame busy" check box and asserts the visibility of frame glass pane and type of the cursor
        14. Untick "Frame busy" check box and asserts the visibility of frame glass pane and type of the cursor
        We could also assert that pressing "Show JFrame" when it is already shown doesn't open new frame.

              akolarkunnu Abdul Kolarkunnu (Inactive)
              akolarkunnu Abdul Kolarkunnu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: