TS 67 PHP Test Debugging
PHP Debugging Test Specification for NetBeans 6.7
Author: Filip Zamboj
Version: 1.0
Last update: 29th Aug 2009
Introduction: PHP Debugging Test Specification
Comments: Draft
Documents: Xdebug installation is required. Follow instructions on {wiki.netbeans.org | http://wiki.netbeans.org/HowToConfigureXDebug]. If you face any issues with xdebug installation let me know or update wiki page, please. It'll help us to keep HowTo up-to-date and make our/users lifes easier.Thanks.
Contents |
Test suite: Interface
Purpose: Check that all debugging views are present in IDE and verify persistence
Setup: start NetBeans with empty userdir. Close all view opened in bottom panel.
- Debugging view
- Choose Window -> Debugging from main menu
EXPECTED RESULT: There should be following items present: Variables, Watches, Call Stack, Breakpoints, Sessions, Threads, Sources
- Variables view
- Open Window -> Debugging -> Variables
EXPECTED RESULT: A Variables view, like the one below, should open. File:Variables view
- Watches view
- Open Window -> Debugging -> Watches
EXPECTED RESULT: A Watches view, like the one below, should open. File:Watches view
- Call Stack view
- Open Window -> Debugging -> Call Stack
EXPECTED RESULT: A Call Stack view, like the one below, should open. File:Call stack view
- Breakpoints view
- Open Window -> Debugging -> Breakpoints
EXPECTED RESULT: A Breakpoints view, like the one below, should open. File:Breakpoints view
- Sessions view
- Open Window -> Debugging -> Sessions
EXPECTED RESULT: A Sessions view, like the one below, should open. File:Sessions view
- Threads view
- Open Window -> Debugging -> Threads
EXPECTED RESULT: A Threads view, like the one below, should open. File:Threads view
- Sources view
- Open Window -> Debugging -> Sources
EXPECTED RESULT: A Sources view, like the one below, should open. File:Sources view
- Debugging views persistence
- restart IDE with the same userdir
EXPECTED RESULT: All views are open as they were when you finished previous testcase.
Test suite: Run Debugging Session
Purpose: Verify that debugging session is running properly
Prerequisites: Apache2, Xdebug
Setup: start NetBeans with empty userdir. Close all view opened in bottom panel.
- Run debugging session
- Download test project attached to this page. Save it into your web directory configured in apache
- Open testproject attached to this page.
- Open Project Properties -> Run Configuration -> set Project URL to your project directory that is handled by web server
- Run Debugg -> Debug Project
EXPECTED RESULT:Debugger will start your browser and stop on the first line of the index.php. If debugging won't start then stop session and verify your xdebug installation.
- teardown: stop debugging session