Advanced Wiki Search

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:
  • Eclipse Update site

Steps:

  1. Install fresh eclipse SDK from http://www.eclipse.org/downloads
  2. Click Help>Software Updates>Find and Install..., create a new remote site pointing to the Update URI
  3. Select all features
  4. Accept license and install all, restart after complete.
  5. 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:
  • Preferences

Steps:

  1. 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.
  2. In the "Zero home" field, enter a directory that contains a CLI.
  3. TEST: You should see an error message at the top of the preferences page. The module group combo should be disabled.
  4. 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.
  5. TEST: You should see at least one module group in the list.
  6. Press OK.

Create a new application and run it

Tests confirm:
  • Eclipse New Wizard
  • zero.application.template
  • Eclipse Launch configuration

Steps:

  1. File>New> WebSphere sMash Application
  2. Right-click new project select Run As>WebSphere sMash Application
  3. Browse to http://localhost:8080
  4. TEST: Verify that a WebSphere sMash Welcome index is displayed
  5. Now click Run As>WebSphere sMash Application again without stopping the previous launch
  6. 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:

  1. File > New > Example... > WebSphere sMash Sample Application
  2. 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".
  3. TEST: When the job finishes, the list will be populated with sample application module names with their corresponding revision.
  4. Select one of the items and press Next.
  5. TEST: On the next page, the "Project name" field will contain the sample application name.
  6. 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:

  1. Create new WebSphere sMash Application
  2. Right-click a Zero project and select Export...>WebSphere sMash>WebSphere sMash Export Wizard
  3. TEST: Verify that you get an export dialog like the one shown below:
    ExportWizard.JPG
  4. 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
    ExportWizardIncludeSource.JPG
  5. TEST: Look in configured export directory to verify that there is a file called projectname-version.zip
  6. Delete WebSphere sMash application that you created from the workspace.
  7. Click File>Import>General/Existing Projects in Workspace>Select Archive File. Browse for the zip you exported and click OK
  8. TEST: Verify that package imports into workspace without any errors (check {workspace}/.metadata/.log)
  9. 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:

  1. Create new WebSphere sMash Application
  2. Right-click a Zero project and select Export...>WebSphere sMash>WebSphere sMash Export Wizard
  3. TEST: Verify that you get an export dialog like the one shown below:
    ExportWizard.JPG
  4. Leave the default export directory, check 'Standalone' as shown below, and click OK.
    ExportWizardStandalone.JPG
  5. TEST: Refresh the project directory, verify that projectname-version-all.zip is created in the export directory
  6. Unzip package into a new temp directory
  7. cd into the directory created
  8. Invoke 'zero resolve'
  9. Invoke 'zero start'
  10. TEST: Verify that console message indicates that application is successfully started on port 8080
  11. TEST: Verify that http://localhost:8080 successfully loads in a browser.
  12. 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:

  1. Click orange repository icon in toolbar to open Repository Management dialog.
  2. Type zero in the Organization field and *.demo in the Module field.
  3. Press the Search button.
  4. TEST: You should see several entries in the right-hand list, all of which have names that end with .demo.
  5. Select several of the entries from the right-hand list. Verify that none of the entries already exist in the left-hand list.
  6. Press the Download button.
  7. TEST: After the download operation finishes, you should see new entries in the left-hand list.
  8. Select a few of the .demo entries from the left-hand list. Then press the Remove button.
  9. 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:

  1. Create New Zero Application
  2. Right click /public source folder and select New>Other...>General>File and type test.groovy for the name
  3. Answer yes to add Groovy support to project
  4. Copy the following code into test.groovy e.g.:
    println("foo")
    event.test = 'new string'
    event.test = 'updated string'
  5. Save the file
  6. Add a break point to the second line of the test.groovy file
  7. Right-click Project Debug As>WebSphere sMash Application
  8. TEST: Verify console message indicates that application started on port 8080
  9. Browse to http://localhost:8080/test.groovy
  10. TEST: Verify that breakpoint hit and debugger is suspended at second line of Groovy code
  11. TEST: Verify that Global Context debug view is showing in top-right corner as shown below:
    groovyDebug.JPG
  12. 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"
  13. TEST: Step again and verify that the event/test node has changed to "updated string"

Code Completion

  1. Create New Zero Application
  2. 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)
  3. Answer yes to add Groovy support to project
  4. Type "request."
  5. TEST: You should get proposals like the following:
    request_completion.JPG
  6. On a new line type "re<ctrl-space>".
  7. TEST: You should get proposals for request like the ones shown above.
  8. On a new line type "request.coo<ctrl-space>".
  9. TEST: You should get proposals for request.cookies similar to the ones shown above.
  10. On a new line type "z".
  11. TEST: You should get proposals like the following:
    zmethod_completion.JPG

Eclipse-PHP

Use Update Manager to get WebSphere sMash PHP plug-ins

Tests confirm:
  • Eclipse Update site

Steps:

  1. Install fresh PDT 2.0 All-in-one SDK from http://download.eclipse.org/tools/pdt/downloads/index.php
  2. Click Help>Software Updates, select "Available Software" tab
  3. 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.
  4. Expand the newly added site (make sure it ends zero.eclipse.php) and select the checkbox for “Websphere sMash for PDT 2.0.x”
  5. “Install…” button and follow the prompts from there
  6. Accept license and install all, restart after complete.
  7. TEST: Verify that there are no errors or exceptions in the /.metadata/.log from the PZ eclipse update
  8. 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:

  1. File>New>WebSphere sMash PHP Application
  2. Right-click new project select Run As>WebSphere sMash Application
  3. Browse to http://localhost:8080
  4. 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:

  1. This test uses the application created in the previous test.
  2. 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)
  3. Create new script under public named test.php. The contents should look like the file below.
  4. Open the file and set a breakpoint on the include line.
  5. Right click on the project and select: Debug As > WebSphere sMash Application.
  6. Browse to http://localhost:8080/test.php
  7. TEST: You should see the debugger stop on the include line of test.php.
  8. Now step into JSONResultHandler.php then step out.
  9. 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:

  1. This test uses the application created previously.
  2. 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.
  3. Create a new PHP file and type the following: "GlobalContextURIs_<ctrl-space>".
  4. TEST: You should see a list containing classes named after the GlobalContext app zones.
  5. In the same file, on a new line, type "z<ctrl-space>".
  6. TEST: You should see a list containing GlobalContext apis like zget, zput, etc.

  Attachment Action Size Date Who Comment
jpg ExportWizard.JPG props, move 27.6 K 04 Dec 2008 - 17:58 csurface  
jpg ExportWizardIncludeSource.JPG props, move 20.6 K 04 Dec 2008 - 17:58 csurface  
jpg ExportWizardStandalone.JPG props, move 20.2 K 04 Dec 2008 - 17:59 csurface  
jpg MissingDeps.JPG props, move 16.7 K 12 Sep 2007 - 18:25 ajtarter Missing Dependencies Dialog
jpg expected_prompt.JPG props, move 18.0 K 20 Mar 2008 - 17:23 steveims  
jpg groovyDebug.JPG props, move 117.7 K 24 Oct 2007 - 22:22 ajtarter Groovy Debug Perspective
jpg groovyDebugM2.JPG props, move 163.6 K 24 Oct 2007 - 22:24 ajtarter  
jpg request_completion.JPG props, move 31.1 K 10 Dec 2007 - 15:43 ajtarter  
jpg zeroPrefs.JPG props, move 48.4 K 24 Oct 2007 - 22:28 ajtarter Zero Eclipse Preferences
jpg zmethod_completion.JPG props, move 19.5 K 10 Dec 2007 - 15:42 ajtarter  
r21 - 05 Jun 2009 - 12:36:44 - gregsmit
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site