TS 65 JPDAdbg V

Debugger Test Specification for NetBeans 6.5 Part V - Miscellanous

Author: Emanuel Hucka, NB6.5 revision by Petr Cyhelsky, NB6.5 RC2 revision by Filip Zamboj
Version: 1.5
Lastupdate: 2008/07/23
Introduction: This document describes test specification for testing of debuggerjpda module in NetBeans ide. Debuggerjpda is implementation of most common Java debugger - JPDA. The tests also cover debuggercore module providing basic framework for implementations of all debuggers in IDE.
Comments: There are used test projects MemoryView and freeform in test cases.

Contents



Test suite: Miscellaneous

Purpose: Verified a various debugger's functionality
Setup: Start NetBeans IDE with clear userdir Open project MemoryView and set it as main project.

  1. Two top level classes in one file - step functionality
    1. Open ClazzOne.java in source editor
    2. Toggle line breakpoint on line 27
    3. Invoke Debug File action from context menu of file in Projects view
    4. Invoke Step Into until debugger finishes
    • EXPECTED RESULT: Debugger will step through constructor of class ClazzTwo and method doit()
    • Teardown: Delete breakpoint
  2. Two top level classes in one file - line breakpoint
    1. Open ClazzOne.java in source editor
    2. Toggle line breakpoint on line 39
    3. Invoke Debug File action form context menu of file in Projects view
    • EXPECTED RESULT: Breakpoint Line ClazzOne.java:39 will be created. Debugger will stop on the breakpoint.
    • Teardown: Finish debugging session and delete breakpoint
  3. Two top level classes in one file - class breakpoint
    1. Open ClazzOne.java in source editor
    2. Place caret on line 33
    3. Invoke New Breakpoint and create class breakpoint
    4. Invoke Debug File action form context menu of file in Projects view
    • EXPECTED RESULT: Breakpoint Class ClazzTwo load / unload will be created. Debugger will stop on the breakpoint.
    • Teardown: Finish debugging session and delete breakpoint
  4. Two top level classes in one file - method breakpoint
    1. Open ClazzOne.java in source editor
    2. Place caret on line 39
    3. Invoke New Breakpoint and create method breakpoint
    4. Invoke Debug File action form context menu of file in Projects view
    • EXPECTED RESULT: Breakpoint Method ClazzTwo.doit will be created. Debugger will stop on the breakpoint.
    • Teardown: Finish debugging session and delete breakpoint
  5. Code completion in condition field
    1. Toggle line breakpoint on line 101 of MemoryView.java
    2. Invoke Breakpoint|Properties from context menu of breakpoint annotation in guter
    • EXPECTED RESULT: Breakpoint Properties dialog will be opened. Code completion with context of MemoryView.java file will be possible in Condition field.
    • Teardown: Cancel the dialog and delete breakpoint
  6. Debugging multithreaded application
    1. Open file ThreadSuspending.java in editor
    2. Toggle breakpoints on lines 28 and 38
    3. Create watch i
    4. Invoke Debug|Debug "Thread Suspending.java" menu
    5. When debugger stops on breakpoint, invoke Step Into or Step Over action
    • EXPECTED RESULT: It will be possible to invoke the actions and debugger will not freeze. If the step actions will be dissabled, action Continue will start the debuged process and the breakpoints will be hit again.
    • Teardown: Finish debugging session, delete breakpoints and watch, close the file
  7. Abort debugging session
    1. Invoke Step Into menu
    2. Right click on progress bar in status bar and invoke Cancel Process from the context menu
    • EXPECTED RESULT: Debugged application will be killed and debugger finished.

}}
}}

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo