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.
- Create an empty Project with default settings.
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP. In the Projects area, choose PHP Application to create an empty project and click Next.
- 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.
- Create empty Project with the given name
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
- Type Project Name myPhpProject. the rest fields use default values for Name and Location step, press Finish button.
- Repeat above steps for creating project with the same name.
- EXPECTED RESULT: There should be the warning message: Source directory is already NetBeans project.
- Create empty Project with incorrect name
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
- 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.
- Create empty Project and put metadata into a separate directory
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
- 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.
- Create empty Project with renamed index.php file
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
- Accept default values for the rest fields, press Finish button.
- Rename index.php Index File to myindex.php.
- 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
- Create empty Project and choose copy location.
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
- Accept default values for the rest fields, press Next button.
- 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.
- Create empty Project and set copy location to the doc root.
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
- Select NetBeansProjects directory for the Sources Folder combobox. Accept default values for the rest fields, press Next button.
- 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.
- Create Air Alliance Sample
- In the Projects window, choose File > New Project.
- In the Categories list, select Samples>PHP. In the Projects area. Choose Air Alliance Sample Application to create the sample. Press Next.
- Name of Project is AirAllianceN. Press Finish.
- 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.
- Check Properties of php Project with default settings.
- In the Projects window, choose File > New Project.
- In the Categories list, select PHP. In the Projects area, choose PHP Project to create an empty project and click Next.
- Accept default values for Name and Location step, press Finish button.
- 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.
- Check Properties of php Project with default settings.
- Create a PHP Project with default settings. (Source folder is htdocs folder of Apache, Copy folder is not specified.)
- Right click on the project and select Properties. Select Sources node in the Categories tree.
- 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.