TS 65 ThirdPartyLibraryManager

3rd Party JavaScript Library Plugin Test Specification for NetBeans 6.5 (post M1)

Author: Cathy Mucci
Version: 1.0
Last update: 07/09/2008
Supporting Documents:
Latest Revision of Functional Specification
JavaScript Library Bundles
Comments: Initial Draft Composed 6/4/2008
This spec was updated slightly on 7/7/08 for M2 deliverables.

Introduction: The 3rd Party JavaScript Library Manager provides the ability to register and manage JavaScript Libraries so that they are accessible globally inside the IDE. This allows for the consumption of these libraries in different projects.

At the writing of this spec, the 3rd Party JavaScript Library Manager includes the following libraries. The method of obtaining the libraries has also been included (MAIN = pre-packaged, or UC = available via the Update Center):
dojo (Main)
jQuery (Main)
prototype (Main)
script.aculo.us (Main)
Woodstock (Main)
YahooUI (Main)
mochikit (UC)
Adobe spry (UC)
mootools (UC)


Contents


Test suite: Installation of 3rd Party JavaScript Library Manager Modules

Purpose: There are a couple of way one can install the 3rd Party Libraries. This can be done via NetBeans's plugin manager (listed above as (UC)) or by selecting to add a pre-packaged (registered automatically in the IDE, as indicated above with the (Main) indicator) library to your project. Running the scenarious outlined # Uninstall and reinstall pre-packaged a 3rd Party JavaScript Library from Netbeans 6.5

    1. Go to Tools->Libraries, look for the pre-packaged library, Woodstock, for example.
    • EXPECTED RESULT: Go back to the Libraries Dialog and confirm the 3rd Party Library is no longer visible.
      in this test suite will confirm the successful installation of the libraries via these means.

Setup: NetBeans 6.1 or Higher is installed and running.

  1. : Confirmation that the pre-packaged 3rd Party JavaScript Library Modules are bundled with Netbeans 6.5 M2 or greater
  2. Uninstall JavaScript Library from an existing Project
    1. Open a Project (continuation of Test 2 above)
    2. Go to the properties dialog for your project (highlight project, right click, choose Properties).
    3. Under Categories, highlight JavaScript Libraries. Highlight the library you wish to remove (Woodstock for example). Click Remove followed by OK.
    4. Your project is updated and saved.
    • EXPECTED RESULT: Confirm under WebPages for your project, that the Library has been removed.
      ## Install Netbeans 6.5 M2 or a newer nightly build. Launch NetBeans. Open or create a Project.
    1. Select Tools->Libraries
    2. In the left hand frame, look under JavaScript Libraries. The pre-packaged 3rd Party JavaScript Libraries are visible here.
    • {{result|EXPECTED RESULT: The pre-packaged 3rd Party JavaScript libraries selected are now available to your project by default. These are: Woodstock, YahooUI, jQuery, dojo, script.aculo.us and prototype.
  3. : The pre-packaged 3rd Party JavaScript Libraries are visible to your project
    1. Bring up the Project's Properties window
    2. Under Categories, on the left, there will be a new sub-category entitled "JavaScript Libraries". When you select it, a dialog is displayed showing you the pre-registered libraries available. You can either highlight one and click add.
    • {{result|EXPECTED RESULT: The pre-packaged 3rd Party JavaScript libraries will be displayed in this 'Add Library" dialog window. These are: Woodstock, YahooUI, jQuery, dojo, script.aculo.us and prototype.
  4. : Installation of 3rd Party JavaScript Library Modules (nbms) via NetBean's Plugin Wizard
    1. Launch NetBeans. Select Tools->Plugins->Available Plugins
    2. Sort the list by Category or by Name. Look under Web & Java EE, or if sorted by Name, look for items prefaced with "JavaScript Library:"
    3. Select the wanted 'JavaScript Library: XXX' items, Click Install. Follow the instructions found on the Netbeans Installer Wizard. Restart the IDE.
    4. Enter the correct path to the nbms, ctrl-click to select all the nbms. click Install. Run through the NB IDE Installer. Restart NetBeans.
    • EXPECTED RESULT: The 3rd Party JavaScript libraries are available to your project.
      Launch the IDE. Go to Tools->Add JavaScript Library to Project.
      Confirm the newly added 3rd Party JavaScript Libraries are available for selection with the pre-packaged libraries. Therefore, mootools, mochkit and Adobe spry were added to the list. Confirm in your project under Libraries,
  5. Add the Woodstock 4.3 JavaScript Library to an existing project
    1. Open a Project
    2. Bring up the Project's Properties window.
    3. Under Categories, select JavaScript Libraries. An Add Library Dialog is displayed. Select the library you need, and click OK.
    4. The library you selected now shows up on the right hand side of this dialog. You may add another, or remove this one. Close this dialog by clicking OK. Notice your project is saved.
    • EXPECTED RESULT: The Woodstock Widgets will be displayed here.
      A woodstock sub-directory has been created.
      A Woodstock4_3_p1 sub-dir (under Web Pages) and supporting javascript files has been created.
      Without modifying the source code, build and run your project. This should deploy error free.
  6. Uninstall pre-packaged a 3rd Party JavaScript Library from Netbeans 6.5 using the Install Plugin Dialog
    1. Go to Tools->Libraries
    2. In the Left 'Libraries' frame, select the library to delete under JavaScript Libraries (Woodstock for example).
    3. Click Remove just below this frame.
    4. Click OK to dismiss the dialog.
    • EXPECTED RESULT: Go back to the Libraries Dialog and confirm the 3rd Party Library is no longer avialable. Be sure to verify this is also not seen in the Project Properties JavaScript Libraries List.
  7. Reinstall pre-packaged a 3rd Party JavaScript Library from Netbeans 6.5 using the Install Plugin Dialog
    1. Go to Tools->Plugins->Available Plugins
    2. TO BE DETERMINED BASED ON UC BEHAVIOR
    • EXPECTED RESULT: Go back to the Libraries Dialog and confirm the 3rd Party Library is now visible.


Test suite: Use the JavaScript Libraries

Purpose: Confirmation that once the 3rd Party Library has been added, your project can consume and utilize the corresponding javascript.
Setup: NetBeans 6.1 or Higher is installed and running. All supported 3rd Party Library NBMs have been added.

  1. Confirm your project can utilize 3rd party JavaScript
    1. Create a new project
      Select Tools->Add JavaScript Libraries to Project
      Choose the Project you wish to add this library to from the drop down list of open Projects.
      Next, select one of the 3rd party libraries (Scriptaculous Library for example (hint: The default copy-to location for web projects is /web/resources)).
    2. Highlight the project's WebPages, right click and select New ->HTML. An index.html is created.
    3. Code up your app, or copy / paste DEMO code from the 3rd party lib websites into this index.html (calling scriptaculous javascript).
    4. build and run your project
    • EXPECTED RESULT: A fully functional javascript app is created and usable.
  2. Repeat Test Case 1 for all other 3rd Party JavaScript Libraries
    • EXPECTED RESULT: A fully functional javascript app is created and usable.


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