TS 60 Loaders

DataSystem Test Specification for NetBeans 5.0

Author: Petr Zajac
Last update: 09/21/2005
Introduction:

       This is intended as test specification of DataSystem functionality.
       

Contents


Test suite: Object Types

Purpose:

       Check basic operations over Loaders and LoaderPool from the IDE.
        

Setup:

       Ide with fresh userdir. Opened Options dialog. Show old settings  where IDE Configuration -> System -> Object Types node is expanded.
        


  1. Fixed Nodes
    1. Locate Object types nodes with fixed suffix.
    2. Invoke Change Order dialog from the context menu over the Object Types node.
    • EXPECTED RESULT: Fixed loaders cannot be moved. In displayed Change Order dialog shouldn't be nodes marked as fixed under Object Types node.
  1. Action Instances
    1. Locate action Instances fixed Node.
    2. Check Extensions and MIME Types property.
    3. Also check Extensions and MIME Types property by another (e.g.. Image Objects) node.
    • EXPECTED RESULT: Extensions set for InstanceDataObject have to be readonly.
  1. Actions
    1. Select Textual Objects node and invoke property editor for its actions.
    2. Add System -> Exit action.
    3. In the Explorer expand sampledir -> Examples -> Clock node and invoke popup over the README file.
    • EXPECTED RESULT: The context menu should contain Exit axtion as the last item. Remove Exit action from Textual Objects actions.
  1. Extensions
    1. Select the Image Objects node under the Objects Types node.
    2. Invoke property editor of Extensions and MIME Types property.
    3. Add 'txt' to the extensions list of this Loader.
    • EXPECTED RESULT: Check $userdir/sampledir/examples/Clock/README file, it should be identified as an image now (If it is still displayed as text file, invoke Refresh action from the context menu over the $userdir/sampledir/examples/Clock/ folder. After the Refresh it should change icon to Image one).
  1. Order of Loaders I. (UniFileLoader)
    1. Invoke context menu over the Object Types node in the Options dialog.
    2. Select Change Order... action.
    3. In the Change Order dialog move the Image Objects node under the Textual Objects node.
    • EXPECTED RESULT: Check a .txt file, it should be identified again as an text file (If it is still displayed as image file, invoke Refresh action from the context menu over the $userdir/sampledir/examples/Clock/ folder. After the Refresh it should change icon to Textual one). Finally remove the 'txt' extension from the Extensions and MIME Types property of the Imager Objects.
  1. Order of Loaders II. (MultiFileLoader)
    1. In the a project create Java Form object.
    2. Check if newly created object is recognized as Java Form object.
    3. Invoke context menu over the Object Types node in the Options dialog.
    4. Select Change Order... action.
    5. In the Change Order dialog move the RMI Sources node under the Java Sources Objects node.
    • EXPECTED RESULT: Check RMI Activatable object, there should be couple of java sources objecs instead (If it is still displayed as RMI object, invoke Refresh action from the context menu over the $userdir/sampledir/examples/ folder. After the Refresh there should appear java objects and RMI should disappear). Finally move the RMI Sources node back over the Java Sources Objects node. All changes made previously should be reverted.



Test suite: Loader Pool

Purpose:

       Check basic operations over LoaderPool.
        

Setup:

       Implement e.g. UniFileLoader (say UL) recognizing 'txt' files and create simple module simple_test_module (This loader will be declared in the manifest.).
       In some folder place two textual files (say file1.txt and file2.txt).
        


  1. Constructing DataObject instance I
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo