TS 67 PHP Test Debugging

Revision as of 17:35, 5 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

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.

  1. Debugging view
    1. Choose Window -> Debugging from main menu

EXPECTED RESULT: There should be following items present: Variables, Watches, Call Stack, Breakpoints, Sessions, Threads, Sources

  1. Variables view
    1. Open Window -> Debugging -> Variables

EXPECTED RESULT: A Variables view, like the one below, should open. File:Variables view

  1. Watches view
    1. Open Window -> Debugging -> Watches

EXPECTED RESULT: A Watches view, like the one below, should open. File:Watches view

  1. Call Stack view
    1. Open Window -> Debugging -> Call Stack

EXPECTED RESULT: A Call Stack view, like the one below, should open. File:Call stack view

  1. Breakpoints view
    1. Open Window -> Debugging -> Breakpoints

EXPECTED RESULT: A Breakpoints view, like the one below, should open. File:Breakpoints view

  1. Sessions view
    1. Open Window -> Debugging -> Sessions

EXPECTED RESULT: A Sessions view, like the one below, should open. File:Sessions view

  1. Threads view
    1. Open Window -> Debugging -> Threads

EXPECTED RESULT: A Threads view, like the one below, should open. File:Threads view

  1. Sources view
    1. Open Window -> Debugging -> Sources

EXPECTED RESULT: A Sources view, like the one below, should open. File:Sources view

  1. Debugging views persistence
    1. 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.

  1. Run debugging session
    1. Download test project attached to this page. Save it into your web directory configured in apache
    2. Open testproject attached to this page.
    3. Open Project Properties -> Run Configuration -> set Project URL to your project directory that is handled by web server
    4. 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.

    1. teardown: stop debugging session
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