user manual
SilkPerformer Java Explorer User Guide iii
ContentsContents
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 15
Overview . . . . . . . . . . . . . . . . . . . . 15
Creating a New Project . . . . . . . . . . . . . 16
Defining a Test . . . . . . . . . . . . . . . . . 18
Understanding Test Cases . . . . . . . . . . . 23
Chapter 3
Setting Up Tests 25
Overview . . . . . . . . . . . . . . . . . . . . 26
Design View . . . . . . . . . . . . . . . . . . . 26
Code View. . . . . . . . . . . . . . . . . . . . 30
Output View . . . . . . . . . . . . . . . . . . . 31
Customizing Input Parameters . . . . . . . . . 33
Storing Output Values in Variables . . . . . . . 34
Manually Adding Global Variables . . . . . . . 35
Defining Output Value Verifications . . . . . . . 36
Adding & Updating Method Calls . . . . . . . . 40
Complex Input/Output Data . . . . . . . . . . . 40
Random Variable Wizard . . . . . . . . . . . . 45
Enterprise JavaBeans & RMI Over IIOP . . . . 49
Testing RMI . . . . . . . . . . . . . . . . . . . 64
Testing Java Archives . . . . . . . . . . . . . . 67
Testing Secure Web Services . . . . . . . . . . 68
Negative Testing . . . . . . . . . . . . . . . . 71
Chapter 4
Animation Runs 73
Overview . . . . . . . . . . . . . . . . . . . . 73
Animated Runs . . . . . . . . . . . . . . . . . 73
Ignoring Expected Exceptions. . . . . . . . . . 76
Chapter 5
Analyzing Tests 77
Overview . . . . . . . . . . . . . . . . . . . . 77
User Report . . . . . . . . . . . . . . . . . . . 78
Error Report . . . . . . . . . . . . . . . . . . . 81
Animation Log . . . . . . . . . . . . . . . . . . 81
Exploring Object Properties . . . . . . . . . . . 82
Exploring Method Properties . . . . . . . . . . 83
Chapter 6
System & Project Settings 85
Overview . . . . . . . . . . . . . . . . . . . . 85
Java Explorer Processes . . . . . . . . . . . . 86
System Settings . . . . . . . . . . . . . . . . . 86
Project Settings . . . . . . . . . . . . . . . . . 94
Chapter 7
Exporting Projects 97
Overview . . . . . . . . . . . . . . . . . . . . 97
SilkPerformer Java Projects . . . . . . . . . . . 98
JUnit Test Cases . . . . . . . . . . . . . . . . 99
Standalone Console Applications . . . . . . . 101
Index 103