| <html> |
| |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> |
| <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> |
| <meta name="ProgId" content="FrontPage.Editor.Document"> |
| <title>Short Smoke Test</title> |
| </head> |
| |
| <body> |
| |
| <h1><font face="Arial,Helvetica">Short Smoke Test - PDE</font></h1> |
| Last updated May 25<sup>th</sup> 2001 |
| <p><b>Note</b>: PDE is based on Java Tooling. There is little point in running |
| PDE smoke test if Java Tooling fails the basic test points.</p> |
| <p><b>Setup</b></p> |
| <ul> |
| <li>Open Preferences->Plug-in Development Environment</li> |
| <li>Ensure that Eclipse Home is set and that there is a number of checked |
| plug-ins in the list</li> |
| <li>Set the workspace location to a previously created (empty) directory</li> |
| <li>Switch to PDE perspective (Perspective->Open->Other...->Plug-in |
| Perspective)</li> |
| <li>Ensure that JDK rt.jar and source zip are set in Java Tooling. Default VM |
| that supports JDI must also be set.</li> |
| </ul> |
| <p><b>Plug-in Project Creation</b></p> |
| <ul> |
| <li>Bring up "Plug-in Project" wizard.</li> |
| <li>Type in "com.example.xyz" for the project name. Press Next.</li> |
| <li>Verify that offered library name is "xyz.jar" and source folder |
| is "XYZ Plugin". Press Next.</li> |
| <li>Switch to using plug-in content template wizards and select the default |
| wizard from the list. Press Next.</li> |
| <li>Accept the offered defaults in the wizard and press 'Finish'.</li> |
| <li>Verify that the new project is created with "XYZ Plugin" folder |
| that contains XYZPlugin.java class.</li> |
| <li>Verify that build.properties is set with the following variable set: <br> |
| <b>source.xyz.jar = XYZ Plugin</b></li> |
| <li>Verify that bin directory is created and that it contains XYZPlugin.class |
| (result of the build).</li> |
| <li>Plug-in manifest editor should open up.</li> |
| </ul> |
| <p><b>Plug-in Manifest Editing</b></p> |
| <ul> |
| <li>Overview page should show no alerts or action items. There should be three |
| required plug-ins (Core Resources, Core Runtime and Workbench UI).</li> |
| <li>Dependencies page should show these three external plug-ins checked and |
| the graph should show the visually.</li> |
| <li>Runtime page should have one library (xyz.jar) and when this library is |
| selected, XYZ Plugin folder should show up in the source folder list.</li> |
| <li>Extensions and Extension Points page should look normal, but must be |
| empty.</li> |
| <li>Source page should show the initial XML content with color coding.</li> |
| </ul> |
| <p><b>Adding an extension</b></p> |
| <ul> |
| <li>Open Extension Points page. Select "New" button and pick |
| "Schema-based Extension" wizard from the list. Press |
| "Next".</li> |
| <li>Select "Action Sets" extension point from the list. Press |
| "Finish".</li> |
| <li>Select "Action Sets" object and select "New->actionSet" |
| from the pop-up menu.</li> |
| <li>Change the name in the property sheet to "Smoke Action Set".</li> |
| <li>Select "New->menu" from the pop-up menu. Change the label of |
| the menu into "Smoke Menu". Change the Id of the menu to "smokeMenu".</li> |
| <li>Select "New->separator" on the menu object. Change the name |
| of the separator to "smokeGroup".</li> |
| <li>Select "New->action" from the pop-up menu while menu is |
| selected. </li> |
| <li>Select the new action and change its label to "Smoke Action", |
| its menubarPath to "smokeMenu/smokeGroup".</li> |
| <li>Select the "class" property and bring up the dialog. Choose to |
| create a new class. Browse for the source container and pick "XYZ |
| Plugin" folder. Change the name of the class to "SmokeAction". |
| Press Finish.</li> |
| <li>When Java editor opens, add "System.out.println("Smoke test |
| works!");" in the "run" method. Save and close.</li> |
| <li>Save the manifest editor.</li> |
| </ul> |
| <p><b>Running</b></p> |
| <ul> |
| <li>Select the project resource and press "Run" button. Another |
| Eclipse should show up (if you forgot to set the default VM, bring up the |
| properties for the project and set the VM to use).</li> |
| <li>Open "Perspective->Customize->Other...". Verify that |
| "Smoke Action Set" is available. Check it.</li> |
| <li>Verify that "Smoke Menu" appears on the menu bar. </li> |
| <li>Verify that the menu contains "Smoke Action" item. Press it.</li> |
| <li>Verify that Console view shows "Smoke test works!".</li> |
| </ul> |
| <p><b>Debugging</b></p> |
| <ul> |
| <li>Place a breakpoint in the constructor of XYZPlugin.java.</li> |
| <li>Place a breakpoint in 'run' method of SmokeAction.java.</li> |
| <li>Select the project and press Debug tool bar button.</li> |
| <li>When the Eclipse window shows up, select "Smoke Menu->Smoke |
| Action". Wait for the debugger to stop.</li> |
| <li>Verify that the debugger stopped in the constructor of XYZPlugin.java. |
| Continue.</li> |
| <li>Verify that the debugger stopped in 'run' method of SmokeAction.java. |
| Continue.</li> |
| <li>Verify that "Smoke test works!" shows up on the Console.</li> |
| </ul> |
| <p><b>Adding an extension point</b></p> |
| <ul> |
| <li>Open Extension Points page. Select "New" to open the wizard.</li> |
| <li>Type "parsers" for the extension point Id, "Sample |
| Parsers" for the name. Press "Finish".</li> |
| <li>Verify that Schema editor opened up with "extension" element and |
| three attributes (id, name and point).</li> |
| <li>Verify that there is four documentation topics (Overview, Examples, API |
| Information and Supplied Implementation).</li> |
| <li>Verify that Source page shows XML Schema source with color coding.</li> |
| <li>Close the schema and verify that extension point is showing in the |
| manifest editor.</li> |
| <li>Save and switch to the Source view. </li> |
| <li>Verify that extension point markup has been added to the source.</li> |
| </ul> |
| |
| </body> |
| |
| </html> |