Structure of a Java Framework Project

A Java Framework project consists of at least one BDL script. Additionally, a project may contain one or more Java source files, class files (compiled Java files), and/or JAR files (collections of class files).

The structure of the BDL script follows the standard syntax. It usually consists of an Init transaction, in which the Java environment is initialized, one or several transactions defining user behavior, and an end transaction in which the Java environment is deleted. The BDL script is used as a starting point for the Java runtime initialization while later in the script. execution of virtual user behavior, or at least part of it, is transferred to the Java environment. This is done by instantiating Java objects within the VM and invoking methods on them.

A Java test class template and corresponding test script can automatically be generated by choosing File > New > Java Framework Scripts (.bdf/.java). A dialog box opens. Enter the name of the Java test class that is to be generated.

BDL scripts for invoking existing Java test classes and existing JUnit test classes can easily be created using the Java / JUnit import tool.