alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
<cheatsheet title="Help Test Scenario A - Integration with workbench">
   <intro>
      <description>
         These tests exercise interactions with help system from workbench.
      </description>
   </intro>
   <item title="A1 Help Browser Preferences" dialog="true" skip="false">
      <description>
         Test the setting of preferences
      </description>
      <subitem label="Launch "Window"->"Preferences".  Preferences dialog will open." skip="true">
         <command serialization="org.eclipse.ui.window.preferences" confirm="false">
         </command>
      </subitem>
      <subitem label="Choose "Help" on the left.  This should show help preference page on the right" skip="true">
      </subitem>
      <subitem label="On Windows and Linux help uses embedded browser, and the preference should contain a checkbox to use external browser which is unchecked. Leave this unchecked." skip="true">
      </subitem>
      <subitem label="Close the preferences dialog" skip="true">
      </subitem>
      <subitem label="Choose "Help"->"Help Contents" from the workbench menu, ensure a browser opens and displays Help browser." skip="true">
      </subitem>
      <subitem label="Go back to help preferences, select "Use external browser".  Follow hyperlink to Workbench Browsers preference page.  Choose a browser to use, Click "OK"." skip="true">
      </subitem>
      <subitem label="Choose "Help"->"Help Contents" from the workbench menu, ensure a browser selected opens and displays Help." skip="true">
      </subitem>
      <subitem label="Go back to help preferences.  If you have more browser adapters available, try selecting each browser adapter and launch help." skip="true">
      </subitem>
   </item>
   <item title="A2 Displaying Help Preferences" dialog="false" skip="false">
      <description>
         Check that help preferences can be modified
      </description>
      <subitem label="Press "F1" key (Ctrl+F1 on GTK, Help on carbon) in the workbench "Navigator" view ("Resources" perspective). This should open help view in the workbench, turned to Related Topics page.  Verify "About ..." section displays description of workbench part in focus." skip="true">
      </subitem>
      <subitem label="Click on one of the related links.  A topic should open in the help view." skip="true">
      </subitem>
      <subitem label="Change help preferences to open context help in an infopop, dialog context help in an infopop, help view document open mode - in editor." skip="true">
      </subitem>
      <subitem label="Click "back" in the help view to arrive at Related Topics page.  Select a link from Dynamic Help section.  Verify it opens in the editor area." skip="true">
      </subitem>
      <subitem label="Press "F1" key (Ctrl+F1 on GTK, Help on carbon) in the workbench "Navigator" view ("Resources" perspective) again. This time it should open an infopop with a description and related links.  Focus should be on the first link ("Views")." skip="true">
      </subitem>
      <subitem label="Click "Navigator View" link.  This should launch help web browser, and display "Navigator View" document on the right and the list of related topics on the left.  The link called "Navigator View" should be selected." skip="true">
      </subitem>
      <subitem label="Open help preferences, press "F1".  and infopop should open." skip="true">
      </subitem>
      <subitem label="Restore defaults in the the browser preference page, and apply." skip="true">
      </subitem>
      <subitem label="Press F1 again.  A small help view with Related Topics should open adjacent to the preferences dialog." skip="true">
      </subitem>
   </item>
   <item title="A3 Opening / closing help browser:" dialog="false" skip="false">
      <description>
         Test Opening / closing help browser
      </description>
      <subitem label="Without closing the browser that opened in the previous test case, choose "Help"->"Help" Contents" from the workbench menu.  No new browser window should launch, and the existing help browser should load the table of contents, with lists of books on the left, and "Welcome to Eclipse help" document on the right." skip="true">
      </subitem>
      <subitem label="Close the help browser.  Browser window should close." skip="true">
      </subitem>
   </item>
   <item title="A4 Search" dialog="false" skip="false">
      <description>
         Test Search
      </description>
      <subitem label="Choose "Search" from the workbench Help menu. Help search page should open." skip="false">
      </subitem>
      <subitem label="Type a query "open project" (without quotes), click "Go"." skip="true">
      </subitem>
      <subitem label="Choose a result.  The document should open with occurrences of the words "open" and "project" highlighted." skip="true">
      </subitem>
   </item>
   <item title="A7:  Live help:" dialog="false" skip="false">
      <description>
         Note there is no step A5 or A6.
      </description>
      <subitem label="Type "active link below" (no quotes) in the search field in the help view, and search." skip="true">
      </subitem>
      <subitem label="Choose a document titled "Active help" from the search results." skip="true">
      </subitem>
      <subitem label="Click once "Click here for a Message" link at the bottom of the document." skip="true">
      </subitem>
      <subitem label="Ensure that a "Hello World" is being displayed in a dialog on top of the workbench." skip="true">
      </subitem>
   </item>
</cheatsheet>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.