Ant debugger Test Specification
Author: Lubomir Cincura
Version: 5.0
Last update: 2005-08-18
Introduction:
Download build script for testing.
Comment:
Table of Contents
|
Purpose:
Setup: Start NetBeans with clean userdir. Open/create sample project AnagramGame. Switch to Files view.
| # | Test case | Description |
| 1 | Menu items on build XML file |
- Select file build.xml and invoke its context menu
|
|
| RESULT: | The menu contains item Debug target with submenus
- default
- clean
- compile
- debug
- jar
- javadoc
- run
- test
- test-single
- Other Targets
- Advanced...
|
|
| 2 | Menu items on other XML file |
- Expand node nbproject
- Select node project.xml and invoke its context menu
|
|
| RESULT: | The menu does not contain item Debug target |
|
|
|
Purpose:
Setup: Start NetBeans with clean userdir. Open files build.xml and build-impl.xml. Open Favorites view and mount folder, where the files are located.
| # | Test case | Description |
| 1 | Start debugging |
- Select node build.xml and invoke from its contex menu Debug Target|Other Targets|run
|
| Teardown: | Finish debugging session |
|
|
| RESULT: | Debugger stops on line 5 of build.xml. Local Variables, Watches and Call Stack debugger views are opened. Output contains two tabs: ant-debugger-test (run) and build.xml |
|
| 2 | Finish debugging |
| Setup:Perform steps from Start debugging case |
- Finish debugging session
|
|
| RESULT: | Program counter is not displayed any more. Target run is fully executed (check messages in ant-debugger-test output). Debugger views are closed |
|
| 3 | Step over |
| Setup:Perform steps from Start debugging case |
- Invoke action Step Over
- Invoke action Step Over again
|
| Teardown: | Finish debugging session |
|
|
| RESULT: | Target -pre-run is exceuted without stopping in it. Whole target run is higlighted as current program counter |
|
| 4 | Step into |
| Setup:Perform steps from Start debugging case |
- Invoke action Step Over
- Invoke action Step Into
|
| Teardown: | Finish debugging session |
|
|
| RESULT: | Program conter is in target -pre-run. Call stack view displays nodes -pre-run and run |
|
| 5 | Step into another file |
| Setup:Perform steps from Start debugging case. Close file build-impl.xml |
- Invoke action Step Over
- Invoke action Step Into
- Invoke action Step Into again
|
| Teardown: | Finish debugging session |
|
|
| RESULT: | File build-impl.xml is opened in editor. Program counter is on target compile. Call stack view displays nodes compile, -pre-run and run |
|
| 6 | Step out |
| Setup:Perform steps from Start debugging case |
- Invoke action Step Over
- Invoke action Step Into
- Invoke action Step Out
|
| Teardown: | Finish debugging session |
|
|
| RESULT: | Program counter is on target run. Targets -pre-run and compile were exceuted (check messages in ant-debugger-test output). Call stack view displays node run |
|
|
|
Purpose:
Setup: Start NetBeans with clean userdir. Open file build.xml. Open Favorites view and mount folder, where the file is located.
| # | Test case | Description |
| 1 | Toggle breakpoint |
- Toggle breakpoint on line 12
|
| Teardown: | Remove breakpoint |
|
|
| RESULT: | Line 12 is highlighted with red background and red square in guter |
|
| 2 | Breakpoint functionality |
| Setup:Perform step from Toggle breakpoint case |
- Select node build.xml and invoke from its contex menu Debug Target|Other Targets|run
- Invoke Continue action
|
| Teardown: | Finish debugger and remove breakpoint |
|
|
| RESULT: | Program counter is on line 12. The line is highlighted with green background and red square with green arrow in guter |
|
| 3 | Continue after breakpoint |
| Setup:Perform steps from Breapkoint functionality case |
- Invoke Continue action
|
| Teardown: | Remove breakpoint |
|
|
| RESULT: | Rest of target run is executed without stopping. Debugger views are closed |
|
| 4 | Finish debugger does not stop on breakpoint |
| Setup:Perform step from Toggle breakpoint case |
- Select node build.xml and invoke from its contex menu Debug Target|Other Targets|run
- Invoke Finish Debugger Session action
|
| Teardown: | Remove breakpoint |
|
|
| RESULT: | Program counter is not displayed any more. Target run is fully executed without stopping (check messages in ant-debugger-test output). Debugger views are closed |
|
| 5 | Dissable breakpoint |
| Setup:Perform step from Toggle breakpoint case |
- Invoke Window|Debugging|Breakpoints action
- In Breakpoints view select breakpoint build.xml:11 and invoke Disable from its context menu
- Invoke Continue action
|
| Teardown: | Remove breakpoint |
|
|
| RESULT: | Program counter is not displayed any more. Target run is fully executed without stopping (check messages in ant-debugger-test output). Debugger views are closed |
|
|
|
Purpose:
Setup: Start NetBeans with clean userdir. Open file build.xml. Open Favorites view and mount folder, where the file is located.
| # | Test case | Description |
| 1 | New watch from editor |
- Invoke action New Watch from contex menu in editor area
- Write name of watch helloi> and press OK
|
|
|
|
| RESULT: | Watch with name hello is created and displayed in Watches view. |
|
| 2 | New watch from view |
- Invoke action New Watch from contex menu in Watches view
- Write name of watch helloi> and press OK
|
|
|
|
| RESULT: | Watch with name hello is created and displayed in Watches view. |
|
| 3 | Stop on watch |
- On line 17 select text build.testproperty
- Invoke action New Watch from editor context menu abd press OK in New Watch dialog
- Select node build.xml and invoke from its contex menu Debug Target|Other Targets|run
- Invoke Continue action
|
| Teardown: | Finish debugging session and delete watch |
|
|
| RESULT: | Program counter is on line 17. Watches view shows watch build.testproperty with value true |
|
| 4 | Local variables |
- Select node build.xml and invoke from its contex menu Debug Target|Other Targets|run
- Invoke Step Over action
- Invoke Window|Debugging|Local Variables from main menu
|
| Teardown: | Finish debugging session |
|
|
| RESULT: | Local Variables lists all properties set for the build script. After invoke of Step Over again, the view lsts also property build.testproperty amongst them |
|
|
|
Purpose:
Setup: Start NetBeans with clean userdir. Open file build.xml. Open Favorites view and mount folder, where the file is located.
| # | Test case | Description |
| 1 | Program counter - line |
- Select node build.xml and invoke from its contex menu Debug Target|all
|
| Teardown: | Finish debugger |
|
|
| RESULT: | Line 5 is highlighted with green background and green arrow in guter |
|
| 2 | Program counter - dependent target |
- Select node build.xml and invoke from its contex menu Debug Target|Other Targets|run
- Invoe Step Over action
|
| Teardown: | Finish debugger |
|
|
| RESULT: | Only text -pre-run on line 11 is highlighted green. On line 11 is green arrow in guter |
|
| 3 | Program counter - target |
| Setup:Perform step from Program counter - line case |
- Invoe Step Over action
|
| Teardown: | Finish debugger |
|
|
| RESULT: | Whole target all is highlighted green. On line 7 is green arrow in guter |
|
| 4 | Breakpoint |
- Togle breakpoint on line 12
|
| Teardown: | Remove breakpoint |
|
|
| RESULT: | Line 12 is highlighted with red background and red square in guter |
|
| 5 | Disabled breakpoint |
| Setup:Perform step from Breakpoint case |
- Invoke Window|Debugging|Breakpoints action
- In Breakpoints view select breakpoint build.xml:11 and invoke Disable from its context menu
|
| Teardown: | Remove breakpoint |
|
|
| RESULT: | Line 12 is highlighted with gray background and gray square in guter |
|
|
Generated: 2005 08 26 11:40