Documente Academic
Documente Profesional
Documente Cultură
SilkPerformer 2008
Introduction
2 13.02.2008
1
What to Record/Replay
RMI/EJB Client
Applications
Server/
Server farm
3 13.02.2008
4 13.02.2008
2
Preparation: Profile Settings
5 13.02.2008
Java options
6 13.02.2008
3
Preparation: Profile Settings
7 13.02.2008
8 13.02.2008
4
Preparation: Application Profile for IBM JVM
Recording IBM‘s Java virtual machine requires additional
settings
9 13.02.2008
10 13.02.2008
5
Recording
11 13.02.2008
Recording
Recorded Java
Stop recording
Save the script
Overview log
12 13.02.2008
6
Recorded Result
x.java
The Java source file that contains the recorded actions
This file can be compiled from within the SilkPerformer
Workbench
The file is compiled automatically
The classpath must be specified correctly (Java Profile Settings)
x.bdf
BDL stub code that launches the Java virtual user
13 13.02.2008
Testing Applets
Recording Applets
Use Sun Java VM in the browser (not Microsoft)
Replay
Remove the recorded API calls:
JavaSetOption(JAVA_CLASSPATH and
JavaSetOption(JAVA_CMDLINE_OPTIONS from the BDL script
Obtain JAR and CLASS files from the server; copy these files to the local
machine; enter the classpath in Java Profile Settings.
Use recorded comments in the recorded Java source code to find JAR and
class files
// ###ClassPath###
// ###Applet CodeBase###
// ###Applet parameters queried by the Applet###
// codebase=…
// archive=…
// code=…
14 13.02.2008
7
Example: Product Manager
15 13.02.2008
16 13.02.2008
8
Example: Application Profile
17 13.02.2008
18 13.02.2008
9
Example: Profile Settings
19 13.02.2008
20 13.02.2008
10
Example: Model Script
21 13.02.2008
22 13.02.2008
11
Example: Recorded BDL Script
23 13.02.2008
24 13.02.2008
12
Example: Replay Script
25 13.02.2008
13