Test Tools Module

... is XTest, Jemmy and JellyTools technology preview module.
Module is intended to show the way to all XTest, Jemmy and JellyTools beginners and help them to create automated tests from scratch.
It provides documentation of used technologies. It makes easy to create proper test harness directory structures, build scripts, configuration files, GUI test components and test suites for API or GUI testing.
Test Tools Module takes full advantage of other IDE modules (JUnit, JemmySupport, Ant, XML, Java, Editor).

Embedded Documentation

Module itself provides Jemmy and JellyTools documentation. JUnit module provides NbJUnit documentation.
Test Tools Module mounts all these docs into Javadoc repository to be available for Javadoc Search and for user.

Parser Databases for Code Completion

Module contains Jemmy, JellyTools and JUnit Parser Databases for Code Completion in Source Editor.

Following picture shows documentation mounted in Javadoc repository and Code Completion for JellyTools class in Source Editor.

Templates and Wizards

Module contains several templates and associated wizards. All templates are available in folder Templates/Test Tools.

Test Workspace

All the code needed for testing one module is stored in directory called "test". This directory with its content is called Test Workspace.

Test Workspace Template with associated Test Workspace Wizard helps you to create this directory and main build.xml script.

Test Type

Test Workspace can contain several Test Types. Each Test Type is represented by configuration script, build script and separate subdirectory. Scripts determine the way of compilation and execution of tests, subdirectory contains data and sources of the tests.

QA Functional Test Type Template and Unit Test Type Template are two templates of most common Test Types.
Associated Test Type Wizard helps you to create a new build script, configuration file and relevant subdirectory structure. Created subdirectory for test sources is finally mounted into filesystems repository.

Test Suite

Test Suite is represented by single source file with several Test Case Methods. For more informations see http://xtest.netbeans.org/docs.html.

Simple Test Suite Template, Jemmy Test Suite Template and Jelly Test Suite Template are three offered templates.
Associated Test Suite Wizard helps you to create a new test suite with defined list of test cases. In addition it creates proper data directory structure and empty golden file for each "golden" test case type.

Test Workspace Data Object

Test Workspace build.xml file is represented in IDE by special data object based on Ant Project.
This data object offers special Cleaning, Compilation, Building, Execution and Results Cleaning in addition to functionality provided by AntProject (like tree browsing, source editing, etc...).
XTest Compiler and XTest Executor are default for this data object.

Following picture shows XTest Build Script, all its actions available under pop up menu and its default compiler and executor.

Compiler and Executor

XTest Compiler and XTest Executor are used for compilation and execution of XTest tests directly from IDE.
Each contains several important properties for XTest execution and compilation.

Following picture shows XTest Executor properties.

Warning: XTest tests could not be compiled or executed against current running IDE but another IDE directory must be selected.

Test Type Configuration Data Object

Test Type configuration file cfg-XXX.xml is represented in IDE by special data object based on XML data object.
This data object offers basic operations like Cut, Copy, Paste, editing in colored XML text editor (in dependency on installed XML module(s)).
Added feature is Customization. It concentrates all Test Type configuration into one dialog box.

Jemmy Component Generator Extensions

Test Tools Module plugs Jelly Operators to Jemmy Component Generator and extends it to generate full-featured Jelly Components.
When Test Tools module is active, Jelly Operators are included in generation process.
If you want to eliminate Jelly dependency of generated components, just disable Test Tools Module.

Jelly Nodes'n'Actions Generator

JellyTools library supports custom test-nodes and test-action.
This feature enables automated generation of source code for these Jelly nodes and actions.
Start Jelly Nodes'n'Actions Generator from Tools menu and follow instructions.
Legal Notices