user manual

30 SilkPerformer Java Explorer User Guide
3 S
ETTING UP TESTS
Code View
Variables
Depending on variable type—either simple value type or complex object—
variables are either shown as simple types (no actions allowed) or as objects for
which you can invoke all methods on the variable object (e.g., methods on
java.lang.String).
String values are represented as complex objects that allow you to call all
methods of the java.lang.String class.
Code View
Code view displays generated code files for the current test scenario. The
following code types are available:
Test code for
standalone test
drivers
This view displays the Java code generated for the test driver. This code can be
compiled to a standalone console application. The main method for the
application contains the calls to the test cases that are defined in your current test
scenario. The test case methods contain all the calls that you have defined in
your scenario for the respective test case.
When you export a standalone console application (via the Export menu) and
then run the application, you will see output information regarding successful/
failed methods in the console window.
Test code for
SilkPerformer Java
Framework
When exporting a SilkPerformer Java Framework project, the following files
are generated:
SilkPerformer project file (.ltp)
SilkPerformer script file (.bdf)
Java test script (.java)
This view displays the Java test script code for SilkPerformer’s Java
Framework. Java Framework code run by SilkPerformer enables you to execute
Java scripts via BDL.
For each test case in your current test scenario, Java Explorer generates a
separate BDL transaction in the test script.
BDL script When exporting a SilkPerformer Java Framework project, the following files
are generated:
SilkPerformer project file (.ltp)
SilkPerformer script file (.bdf)
Java test script (.java)
This view displays the BDL script code for SilkPerformer Java Framework. The
generated BDL executes the Java test script with the settings stored in the
SilkPerformer project file.