Basic Info

This module provides support for developers to create compound Jemmy components/operators for automated GUI testing. Latest binary version of module is available on NetBeans Update Center.

Main features

Jemmy Components Generator

What is Jemmy Component ?

  • Jemmy Components are connection links between automated tests and tested GUI components (Frames, Dialogs, etc...).
  • Each Jemmy Component is reflecting real GUI and offers API for automated tests.
  • Jemmy Component transforms API calls into GUI manipulation actions using power of Jemmy library.
  • Jemmy Component API contains three levels:
    1. sub-components definition (public methods returning Jemmy Operators for sub-components)
    2. low-level operations (methods performing simple operations with subcomponents, like: pushing, setting text, etc...)
    3. high-level operations (methods performing complex actions with component, like: all sub-component verification, filling form, etc...)

How Jemmy Components Generator works ?

  • It performs analysis of visible GUI component (Frame, Dialog, etc...) and creates skeleton of Jemmy Component.
  • Jemmy Components Generator does not need sources of component for analysis.
  • Created skeleton is compilable (and executable) code with API reflecting analyzed component GUI.

How can I use Jemmy Components Generator ?

  1. Open Components Generator dialog from Tools/Components Generator menu.
  2. Select destination filesystem and package for generated Jemmy Components.
  3. Start Components Generator
  4. Open and focus tested component (Window, Dialog, Frame, Internal Frame) or start tested application using IDE Internal Executor.
  5. Press CTRL-F12 and wait for Components Editor dialog (if requested).
  6. Optional - delete unwanted subcomponents or modify their names and click OK button.
  7. Java source code of Jemmy Component and optionally also PNG image with screen shot should be in destination package.

Is it possible to affect process of generation ?

Yes, changing the names of components used in generated code is optional during process of generation using Component Editor.

Resource Bundle Lookup

What is a difference between I18N Wizard and Resource Bundle Lookup ?

  • I18N Wizard provides I18N assistance using one known resource bundle.
  • Resource Bundle Lookup performs full-text search through all resource bundles in unknown source hierarchy.

I18N of Jemmy Components and automated tests pointing to the same resources as original has big advantage. Jemmy Components and automated tests does not need to be translated more and they ever match the original.

How can I use Resource Bundle Lookup?

  1. Mount all possible sources into repository.
  2. Open Resource Bundle Lookup dialog from Tools/Resource Bundle Lookup menu.
  3. Insert selection criteria and click Select button.
  4. Choose proper row in result table and copy lookup code to clipboard using pop up menu.
  5. Paste lookup code into source code instead of hard coded string.
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