[RSS]

PHP Projects and Wizards Test Specification Test Specification for NetBeans 6.5

Author: Victoria Zhukovskaya
Version: 1.0
Last update: 10th October 2008
Introduction: This specification provides usecases of Php project creation, Php Project properties customizing and Php Project actions in the NetBeans

IDE
Comments: Draft (only updated for current version. will be updated soon)

Test suite: Create a new Php Project

Purpose: Check the Wizard for creation empty Php Project.
Setup: PHP engine and Apache 2.2 are configured. Apache 2.2 is installed to default location.
  1. Create an empty Project with default settings.
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP. In the Projects area, choose PHP Application to create an empty project and click Next.
    3. Accept default values for Name and Location step. Press Finish button.
    • EXPECTED RESULT: Created Php project appears on Project tab. index.php opens in the source view. Project Sources are located in htdocs directory

of Apache.

  1. Create empty Project with the given name
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Type Project Name myPhpProject. the rest fields use default values for Name and Location step, press Finish button.
    4. Repeat above steps for creating project with the same name.
    • EXPECTED RESULT: There should be the warning message: Source directory is already NetBeans project.
  2. Create empty Project with incorrect name
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. For Name and Location step type Project Name myPhpProject*. Accept default values for the rest fields, press Cancel button.
    • EXPECTED RESULT: There should be warning message: Source directory is not a valid folder name.
  3. Create empty Project and put metadata into a separate directory
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Check "Put NetBeans metadata into a separate directory" checkbox. Accept default values for the rest fields, press Finish button.
    • EXPECTED RESULT: Created Php project appears on Project tab. Index.php opens in source view. Project Sources are located in the Source Folder and

metadata are located in a separate directory.

  1. Create empty Project with renamed index.php file
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Accept default values for the rest fields, press Finish button.
    4. Rename index.php Index File to myindex.php.
    5. Invoke Properties for this PHP Application. Slect Run Configuration on Properties window. Press "Browse..." button for index file. Select myondex.php

file. Press Select File button. Press OK.

    • EXPECTED RESULT: Created Php project appears on Project tab. Index file has new name myindex.php opens
  1. Create empty Project and choose copy location.
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Accept default values for the rest fields, press Next button.
    4. Set checkbox 'Copy files from Sources Folder to another location' on. Press Browse button and select path for copying. Press Finish button.
    • EXPECTED RESULT: Created Php project appears on Project tab. index.php opens in source view. Project Sources are located in the Sources Folder

and have a copy in Copy Location.

  1. Create empty Project and set copy location to the doc root.
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Select NetBeansProjects directory for the Sources Folder combobox. Accept default values for the rest fields, press Next button.
    4. Set checkbox 'Copy files from Sources Folder to another location' on. Select htdocs\PhpProjectN for the Copy to Folder combobox. Press Finish button.
    • EXPECTED RESULT: Created Php project appears on Project tab. index.php opens in source view. Project Sources are located in the Project Folder and have a copy in htdocs directory of Apache.

Test suite: Create Air Alliance Sample Application

Purpose: Create the sample and work with it.
Setup: PHP engine, Apache 2.2 and MySQL data base are configured. Apache 2.2 is installed to default location.
  1. Create Air Alliance Sample
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select Samples>PHP. In the Projects area. Choose Air Alliance Sample Application to create the sample. Press Next.
    3. Name of Project is AirAllianceN. Press Finish.
    4. Folow the instruction in the appeared readme.html.
    • EXPECTED RESULT: Created Air Alliance Sample appears on Project tab. There should be opened readme.html in default browser. Finally, we can run the project.

Test suite: Check Properties of PHP Project

Purpose: Check Properties of PHP Project
Setup: PHP engine, Apache 2.2 and MySQL data base are configured. Apache 2.2 is installed to default location.
  1. Check Properties of php Project with default settings.
    1. In the Projects window, choose File > New Project.
    2. In the Categories list, select PHP. In the Projects area, choose PHP Project to create an empty project and click Next.
    3. Accept default values for Name and Location step, press Finish button.
    4. Created Php project appears on Project tab. Right click on the project and select Properties.
    • EXPECTED RESULT: Project Properties window appears. There are six Categories: Sources,Run Configuration, PHP Include Path, JavaScript Libraries, Debug, Formatting.
  2. Check Properties of php Project with default settings.
    1. Create a PHP Project with default settings. (Source folder is htdocs folder of Apache, Copy folder is not specified.)
    2. Right click on the project and select Properties. Select Sources node in the Categories tree.
    3. Set check box 'Copy files from Sources Folder to another location' on. Expand combobox and select htdocs\PhpProjectN+1 folder. Press Ok button.
    • EXPECTED RESULT: Project has a copy of sources in Copy Location.