Download Borland Software Water System silk perforator java explorer 2006 release 2 User's Manual

Transcript
Contents
Introduction
1
How to Use this Guide . . . . . . . . . . . . . . 1
SilkPerformer SOA Edition Overview . . . . . . . 1
Tools Provided by SilkPerformer SOA Edition . . 3
Sample Applications for SilkPerformer SOA Edition6
Sample Test Projects . . . . . . . . . . . . . . . 9
Chapter 1
Java Framework Testing with
SilkPerformer
11
Testing Java Components. . . . . . . . . . . . 11
Chapter 2
Setting Up Java Explorer
Projects
Overview . . . . . . . . .
Creating a New Project . .
Defining a Test . . . . . .
Understanding Test Cases
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
15
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Overview . . . . . . . . . . . . . . . .
Design View . . . . . . . . . . . . . . .
Code View. . . . . . . . . . . . . . . .
Output View . . . . . . . . . . . . . . .
Customizing Input Parameters . . . . .
Storing Output Values in Variables . . .
Manually Adding Global Variables . . .
Defining Output Value Verifications . . .
Adding & Updating Method Calls . . . .
Complex Input/Output Data . . . . . . .
Random Variable Wizard . . . . . . . .
Enterprise JavaBeans & RMI Over IIOP
Testing RMI . . . . . . . . . . . . . . .
Testing Java Archives . . . . . . . . . .
Testing Secure Web Services . . . . . .
Negative Testing . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Chapter 3
Setting Up Tests
15
16
18
23
25
26
26
30
31
33
34
35
36
40
40
45
49
64
67
68
71
Chapter 4
Animation Runs
73
Overview . . . . . . . . . . . . . . . . . . . . 73
Animated Runs . . . . . . . . . . . . . . . . . 73
Ignoring Expected Exceptions. . . . . . . . . . 76
Chapter 5
Analyzing Tests
77
Overview . . . . . . . . . .
User Report . . . . . . . . .
Error Report . . . . . . . . .
Animation Log . . . . . . . .
Exploring Object Properties .
Exploring Method Properties
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Chapter 6
System & Project Settings
Overview . . . . . . . .
Java Explorer Processes
System Settings . . . . .
Project Settings . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
77
78
81
81
82
83
85
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Overview . . . . . . . . . . . .
SilkPerformer Java Projects . . .
JUnit Test Cases . . . . . . . .
Standalone Console Applications
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 97
. 98
. 99
101
Chapter 7
Exporting Projects
85
86
86
94
97
Index
SilkPerformer Java Explorer User Guide
103
iii