| | |
Manual tests for Eclipse plugin
Guidelines for documenting the manual tests:
- Summarize the elements covered in the test
- Enumerate the steps (ordered list)
- Call out test points with a TEST bullet
- Include screenshots as appropriate; many of the manual tests will be visual, so screenshots are helpful
Update URI
Use the Eclipse update site on the build server. The URI is provided on the release or fixpack manual test wiki page.
Eclipse-Java/Groovy
Use Update Manager to get WebSphere sMash plug-ins
Tests confirm:
Steps:
- Install fresh eclipse SDK from http://www.eclipse.org/downloads
- Click Help>Software Updates>Find and Install..., create a new remote site pointing to the Update URI
- Select all features
- Accept license and install all, restart after complete.
- TEST: Verify that there are no errors or exceptions in the {workspace}/.metadata/.log from the PZ eclipse update. You may see an error dialog indicating that the CLI is not configured. This is normal and should not be reported as a bug.
Configure CLI
Tests confirm:
Steps:
- Open Window > Preferences > WebSphere sMash. You may see an error dialog indicating that the CLI is not configured. This is normal and should not be reported as a bug.
- In the "Zero home" field, enter a directory that contains a CLI.
- TEST: You should see an error message at the top of the preferences page. The module group combo should be disabled.
- Now enter the location of a valid CLI in the "Zero home" field. After, the "Loading..." message disappears from the combo, select a module group.
- TEST: You should see at least one module group in the list.
- Press OK.
Create a new application and run it
Tests confirm:
- Eclipse New Wizard
- zero.application.template
- Eclipse Launch configuration
Steps:
- File>New> WebSphere sMash Application
- Right-click new project select Run As>WebSphere sMash Application
- Browse to http://localhost:8080
- TEST: Verify that a WebSphere sMash Welcome index is displayed
- Now click Run As>WebSphere sMash Application again without stopping the previous launch
- TEST: Console message should indicate a port conflict because the port is taken by the other launch
Create a new sample application
Tests confirm:
- New Sample Project Wizard
Steps:
- File > New > Example... > WebSphere sMash Sample Application
- TEST: Upon entering the wizard, you should see a list with a single item that says "Retrieving items from repository...". You should also have a running background job with the title "Repository Search".
- TEST: When the job finishes, the list will be populated with sample application module names with their corresponding revision.
- Select one of the items and press Next.
- TEST: On the next page, the "Project name" field will contain the sample application name.
- TEST: Press Finish. The project should be created in the workspace.
Export/Import WebSphere sMash application
Tests confirm:
- Export in shared mode including source and then reimport as project
Steps:
- Create new WebSphere sMash Application
- Right-click a Zero project and select Export...>WebSphere sMash>WebSphere sMash Export Wizard
- TEST: Verify that you get an export dialog like the one shown below:

- Change export directory to a directory that is outside the workspace (not under the project directory), check 'Include Source' as shown below, and click OK

- TEST: Look in configured export directory to verify that there is a file called projectname-version.zip
- Delete WebSphere sMash application that you created from the workspace.
- Click File>Import>General/Existing Projects in Workspace>Select Archive File. Browse for the zip you exported and click OK
- TEST: Verify that package imports into workspace without any errors (check {workspace}/.metadata/.log)
- TEST: Run the project as a WebSphere sMash Application and browse to http://localhost:8080.
Standalone Export of Zero Application
Tests Confirm:
- Export in standalone mode and then unzip package and run from command-line
Steps:
- Create new WebSphere sMash Application
- Right-click a Zero project and select Export...>WebSphere sMash>WebSphere sMash Export Wizard
- TEST: Verify that you get an export dialog like the one shown below:

- Leave the default export directory, check 'Standalone' as shown below, and click OK.

- TEST: Refresh the project directory, verify that projectname-version-all.zip is created in the export directory
- Unzip package into a new temp directory
- cd into the directory created
- Invoke 'zero resolve'
- Invoke 'zero start'
- TEST: Verify that console message indicates that application is successfully started on port 8080
- TEST: Verify that http://localhost:8080 successfully loads in a browser.
- Invoke 'zero stop'
Repository Management
Test confirm:
- Search for new libraries in remote repository
- Add new library from remote repository
- Delete library from local repository
Steps:
- Click orange repository icon in toolbar to open Repository Management dialog.
- Type zero in the Organization field and *.demo in the Module field.
- Press the Search button.
- TEST: You should see several entries in the right-hand list, all of which have names that end with .demo.
- Select several of the entries from the right-hand list. Verify that none of the entries already exist in the left-hand list.
- Press the Download button.
- TEST: After the download operation finishes, you should see new entries in the left-hand list.
- Select a few of the .demo entries from the left-hand list. Then press the Remove button.
- TEST: After the remove operation finishes, the entries you selected should no longer appear in the left-hand list.
Groovy Debug/Global Context Debug view
Tests Confirm:
- Java debugger breaks on breakpoint set in Groovy source
- GlobalContext Debug view shows GC contents
Steps:
- Create New Zero Application
- Right click /public source folder and select New>Other...>General>File and type test.groovy for the name
- Answer yes to add Groovy support to project
- Copy the following code into test.groovy e.g.:
println("foo") event.test = 'new string' event.test = 'updated string'
- Save the file
- Add a break point to the second line of the test.groovy file
- Right-click Project Debug As>WebSphere sMash Application
- TEST: Verify console message indicates that application started on port 8080
- Browse to http://localhost:8080/test.groovy
- TEST: Verify that breakpoint hit and debugger is suspended at second line of Groovy code
- TEST: Verify that Global Context debug view is showing in top-right corner as shown below:

- TEST: Step to the next line and verify that there is a new node in the GlobalContext debug view called event/test set to "new string"
- TEST: Step again and verify that the event/test node has changed to "updated string"
Code Completion
- Create New Zero Application
- Right click /public source folder and select New>Other...>General>File and type test.groovy for the name (this should open the new file in the Groovy Editor)
- Answer yes to add Groovy support to project
- Type "request."
- TEST: You should get proposals like the following:

- On a new line type "re<ctrl-space>".
- TEST: You should get proposals for request like the ones shown above.
- On a new line type "request.coo<ctrl-space>".
- TEST: You should get proposals for request.cookies similar to the ones shown above.
- On a new line type "z".
- TEST: You should get proposals like the following:

Eclipse-PHP
Use Update Manager to get WebSphere sMash PHP plug-ins
Tests confirm:
Steps:
- Install fresh PDT 2.0 All-in-one SDK from http://download.eclipse.org/tools/pdt/downloads/index.php
- Click Help>Software Updates, select "Available Software" tab
- create a new remote site by clicking "Add Site..." and point it to the zero.eclipse.php update site from the build you are testing.
- Expand the newly added site (make sure it ends zero.eclipse.php) and select the checkbox for “Websphere sMash for PDT 2.0.x”
- “Install…” button and follow the prompts from there
- Accept license and install all, restart after complete.
- TEST: Verify that there are no errors or exceptions in the /.metadata/.log from the PZ eclipse update
- Follow the instructions from the Configure CLI section above if you have not already configured a CLI.
Create a new PHP application and run it
Tests confirm:
- Eclipse New PHP Wizard
- Eclipse Launch configuration
Steps:
- File>New>WebSphere sMash PHP Application
- Right-click new project select Run As>WebSphere sMash Application
- Browse to http://localhost:8080
- TEST: Verify that a WebSphere sMash Welcome index is displayed
Debug a PHP application
Tests confirm:
- PDT modifications to Eclipse launch configuration and project resolve mechanism
Steps:
- This test uses the application created in the previous test.
- TEST: Open the PHP perspective and verify that the Include Path contains the file JSONResultHandler.php from the zero.data.php location in the repository. (Skip this test bug 1927)
- Create new script under public named
test.php. The contents should look like the file below.
- Open the file and set a breakpoint on the include line.
- Right click on the project and select: Debug As > WebSphere sMash Application.
- Browse to http://localhost:8080/test.php
- TEST: You should see the debugger stop on the include line of
test.php.
- Now step into JSONResultHandler.php then step out.
- Step over the echo line and play.
test.php
<?php
include "JSONResultHandler.php";
echo "Hello";
?>
PHP Code Assist
Tests confirm:
- PDT project resolve mechanism
- PDT code assist support
Steps:
- This test uses the application created previously.
- TEST: Open the PHP perspective and verify that the Include Path contains entries from the zero.php code-assist directory. There should be at least GlobalContextURIs.php and ZeroExtension.php.
- Create a new PHP file and type the following: "GlobalContextURIs_<ctrl-space>".
- TEST: You should see a list containing classes named after the GlobalContext app zones.
- In the same file, on a new line, type "z<ctrl-space>".
- TEST: You should see a list containing GlobalContext apis like zget, zput, etc.
|
| | Attachment | Action | Size | Date | Who | Comment |
| ExportWizard.JPG | props, move | 27.6 K | 04 Dec 2008 - 17:58 | csurface | |
| ExportWizardIncludeSource.JPG | props, move | 20.6 K | 04 Dec 2008 - 17:58 | csurface | |
| ExportWizardStandalone.JPG | props, move | 20.2 K | 04 Dec 2008 - 17:59 | csurface | |
| MissingDeps.JPG | props, move | 16.7 K | 12 Sep 2007 - 18:25 | ajtarter | Missing Dependencies Dialog |
| expected_prompt.JPG | props, move | 18.0 K | 20 Mar 2008 - 17:23 | steveims | |
| groovyDebug.JPG | props, move | 117.7 K | 24 Oct 2007 - 22:22 | ajtarter | Groovy Debug Perspective |
| groovyDebugM2.JPG | props, move | 163.6 K | 24 Oct 2007 - 22:24 | ajtarter | |
| request_completion.JPG | props, move | 31.1 K | 10 Dec 2007 - 15:43 | ajtarter | |
| zeroPrefs.JPG | props, move | 48.4 K | 24 Oct 2007 - 22:28 | ajtarter | Zero Eclipse Preferences |
| zmethod_completion.JPG | props, move | 19.5 K | 10 Dec 2007 - 15:42 | ajtarter | |
r21 - 05 Jun 2009 - 12:36:44 - gregsmit
|
|
|
| | |