Sap Tutorial
Sap Tutorial
SilkPerformer ®
2006 Release 2
Borland Software Corporation
20450 Stevens Creek Blvd., Suite 800
Cupertino, California 95014 USA
http://www.borland.com
Borland Software Corporation may have patents and/or pending patent applications covering subject
matter in this document. Please refer to the product CD or the About dialog box for the list of applicable
patents. The furnishing of this document does not give you any license to these patents.
Copyright © 1992-2007 Borland Software Corporation and/or its subsidiaries. All Borland brand and
product names are trademarks or registered trademarks of Borland Software Corporation in the United
States and other countries. All other marks are the property of their respective owners.
January 2007
PDF
Contents
Introduction 1
Overview . . . . . . . . . . . . . . . . . . . . . 1
Client/Server Requirements . . . . . . . . . . . . 5
Available Functions . . . . . . . . . . . . . . . . 5
Chapter 1
Recording SAPGUI Test Scripts
7
Overview . . . . . . . . . . . . . . . . . . . . . 7
Generating Test Scripts . . . . . . . . . . . . . . 7
Exploring Recorded Scripts . . . . . . . . . . . 17
Chapter 2
Customizing SAPGUI Test
Scripts 21
Overview . . . . . . . . . . . . . . . . . . . . 21
SAPGUI TrueLog Structure . . . . . . . . . . . 22
Customizing Input Parameters . . . . . . . . . 24
Customizing SAPGUI User Input Data . . . . . 27
Analyzing Result Files. . . . . . . . . . . . . . 32
Further Steps for Load Testing . . . . . . . . . 33
Chapter 3
SAP eCATT Integration With
SilkPerformer 35
Overview . . . . . . . . . . . . . . . . . . . . 35
Setting Up Integration . . . . . . . . . . . . . . 36
Interacting with eCATT from SilkPerformer . . . 40
Interacting with SilkPerformer from eCATT . . . 44
Limitations. . . . . . . . . . . . . . . . . . . . 49
Index 51
About this manual This tutorial provides the information you need to record and customize
SAPGUI test scripts.
This chapter contains the following sections:
Section Page
Overview 1
Client/Server Requirements 5
Available Functions 5
Overview
SilkPerformer offers recording and replay support for the load testing and
functional testing of SAP® systems that use the SAPGUI Scripting interface.
SilkPerformer’s unique content verification feature enables you to verify
application functionality even under real-world load conditions—and thereby
intercept application errors that occur only under load.
Test scripts created for functional testing can be reused for load testing purposes,
without requiring any changes.
Together with its outstanding support for the load testing of Web applications,
SilkPerformer supports load and functional testing of SAP R/3 4.6C, SAP R/3
Enterprise (4.7), and mySAP Business Suite (and higher) via SAPGUI Client
6.2 (and higher) for Windows and HTML, as well as with mySAP Enterprise
Portal.
Note This tutorial offers only a brief overview of the functionality
that is available with SilkPerformer and TrueLog Explorer. Please
see the SilkPerformer User Guide and the TrueLog Explorer User
Guide for full details of available functionality.
Scripting In addition to a powerful BDL API for SAP that enables programmers to
effectively customize SAP test scripts, SilkPerformer 2006 R2 also provides
TrueLog technology for SAP—offering easy visual script analysis and
customization.
TrueLogs provide complete visual representation of all actions and results that
are generated by test scripts. Screenshots are captured during test runs and
details regarding all visible GUI controls are logged. Using TrueLog Explorer’s
intuitive point-and-click interface, you can visually customize all user-input data
and create content verification checks for return data. Simply select the input
values that you wish to customize, or the result values that you wish to verify,
and then choose any appropriate parsing, parameterization, or verification
functions. All customization and verification functions are then automatically
generated and inserted into your BDL script. No manual scripting is required.
Functional testing SilkPerformer provides functional and load testing with a single tool. Simply
reuse your scripts as both functional and load testing scripts using the same
script API.
Front-end analysis Using SilkPerformer’s TrueLog On Error functionality for SAP, you can
visually inspect the actions of SAP virtual users and SAP system responses that
result in error conditions. In this way, you can visually analyze error conditions
from the virtual-user perspective (the front-end).
SAP monitoring SilkPerformer offers five Performance Explorer monitors that enable you to
query SAP server-side performance values.
SAP eCATT SAP’s eCATT (Extended Computer Aided Test Tool) facility allows you to create
test scripts in SAP using the scripting language of your choice. eCATT allows
you to use external test tools such as SilkPerformer while utilizing eCATT as a
repository for your test scripts. See “SAP eCATT Integration With
SilkPerformer” for details.
Enabling SAP SAPGUI record/replay technology is based on the SAPGUI Scripting API,
scripting which must be enabled on both the server and client side.
The SAPGUI Scripting API is not available in all SAPGUI client versions;
therefore you must confirm your patch level. Please refer to Enable SAP
Scripting in SilkPerformer Online Help for details.
Checking SAP patch SAPGUI Scripting is not supported by all versions of SAP. Therefore it is
level necessary that you confirm that your installation offers this support. You can do
this by checking your current patch level. The patch level needs to be at least 44.
Procedure To confirm server patch level:
1 Launch the SAPGUI logon window (Start/Programs/SAP Front End/
SAPLogon) and choose the About SAP Logon menu item from the
window menu.
2 The SAP version information dialog box appears. Confirm that the patch
level is at least 44. It is however recommended that you use patch level
50 or higher as some memory related issues have been found with
previous patches.
Profile settings SilkPerformer SAP GUI support is configurable via SilkPerformer profile
settings.
Recording settings The following recording settings can be configured on the profile settings’
Recording tab:
Script logon as single function
When enabled, the logon procedure is scripted as a SapGuiLogon API call.
When disabled, multiple API calls (e.g., setting username, setting password,
hitting ENTER are scripted).
Script low level functions
Rather than scripting high-level API functions (e.g., SapGuiSetText) low-level
API functions are scripted (e.g., SapGuiInvokeMethod, SapGuiSetProperty).
Script timers
Most SAPGUI API functions take an optional timer parameter. When such a
parameter is defined, measures are generated during replay. When this option is
enabled, the SAPGUI recorder automatically scripts appropriate timer names for
each function.
Attach to existing SAP session
When enabled, the SAPGUI recorder attaches to an existing SAPGUI session
without recording the SapGuiOpenConnection statement.
Record window title verification
When enabled, the SAPGUI recorder scripts SapGuiSetActiveWindow with the
window title so that the title can later be verified during replay.
Common Settings
The following settings are common to both recording and replay.
Log level
Defines the logging level. For troubleshooting, Debug should be used.
Otherwise Normal should be used. When running large load tests, logging can
be Disabled to reduce memory consumption.
Capture screenshots
When enabled, screenshots are captured for each new window that is activated.
This option is only available when Show SAP GUI during replay is enabled
during script replay.
Capture screenshots for every action
When enabled, screenshots are captured for each user action that causes a
round-trip to the SAP server. This option is only available when Capture
screenshots is enabled.
Client/Server Requirements
On the Server
• Required patch level for SAPGUI support must be installed
• Sapgui/user_scripting:
- Profile parameter must be set to True. This can be changed using the
transaction RZ11.
On the Client
• SAPGUI Client 620 or 640
• Latest patch level
• SAPGUI Scripting must be installed and enabled
- To enable SAPGUI Scripting:
o Start the SAPGUI client.
o Open the Options dialog.
o Select the Scripting tab.
o Select Enable Scripting and deselect the two security check
boxes.
Available Functions
SilkPerformer uses a testing interface called SAPGUI Scripting API, which has
been introduced by SAP for SAPGUI Windows clients.
To record and replay SAPGUI scripts, some pre-requirements must be met. To
prepare your environment for SAP testing, please refer to Checking your SAP
Patch Level and Enable SAP Scripting in SilkPerformer Online Help.
SilkPerformer offers both a low- and high-level API for testing SAP systems.
The following high-level function groups are offered:
• Connecting functions
• Control functions
• Parsing functions
• Verifying functions
• Window functions
Please see the SilkPerformer Online Help for a complete list of functions and
function descriptions.
Introduction This chapter explains how to generate a SAPGUI test script by recording a
SAPGUI application and how to analyze a replayed test script via a TryScript
run.
What you will learn This chapter contains the following sections:
Section Page
Overview 7
Generating Test Scripts 7
Exploring Recorded Scripts 17
Overview
SilkPerformer offers record and replay support for the load testing and
functional testing of SAP systems that use the SAPGUI Scripting interface.
This chapter shows you how to generate a test script by recording a SAPGUI
application and then how to analyze the resultant test script by replaying it in a
TryScript run.
On the Advanced Options dialog, deselect Default codepage and select your
preferred language. Click OK to accept the change.
12 Right-click a time frame and select Create Appointment from the context
menu to create a new appointment.
15 Click the Delete button (trash can icon) to delete the appointment. A
confirmation dialog appears. Click Yes to confirm deletion of the
appointment.
16 Click Exit (the yellow circular button) to exit the calendar application.
Both recorded and replayed test scripts can be opened in TrueLog Explorer.
TrueLog Explorer supports the visualization of SAPGUI requests and responses
in the same way it supports the visualization of HTTP client requests and HTTP/
HTML server responses. See “Customizing SAPGUI Test Scripts” and the
TrueLog Explorer User Guide for full details regarding TrueLog Explorer.
Executing TryScripts
The default option settings for TryScript runs include live display of data
downloaded during testing and the writing of log and report files.
With TryScript runs, only a single virtual user is run and the stress test option is
enabled so that there is no think-time or delay between transactions.
Procedure To execute a TryScript run:
1 Click the Try Script button on the SilkPerformer Workflow bar. The Try
Script dialog appears. The active profile is selected in the Profile drop-
down list and the script you created is selected in the Script drop-down
list. The VUser virtual user group is selected in the Usergroup area.
2 To view rendered page transitions during a TryScript run, select the
Animated checkbox.
3 Click Run.
Note You are not running an actual load test here, only a test run to
see if your script requires debugging.
Exploring TrueLogs
Once you have executed a TryScript run, you can explore the TrueLog that was
generated by the script run by right-clicking the TryScript user and selecting
Explore TrueLog from the context menu. This launches TrueLog Explorer
loaded with the TrueLog from the recent TryScript run.
Introduction This chapter explains how to customize a SAPGUI load test script based on the
results of a TryScript run.
What you will learn This chapter contains the following sections:
Section Page
Overview 21
SAPGUI TrueLog Structure 22
Customizing Input Parameters 24
Customizing SAPGUI User Input Data 27
Analyzing Result Files 32
Further Steps for Load Testing 33
Overview
Once you’ve recorded a test script and identified session-specific errors through
a TryScript run, use TrueLog Explorer to customize the test script so that it can
handle session-specific strings (e.g., user IDs, password,).
Note TrueLog Explorer is a powerful test script customization tool
that offers much more functionality than is demonstrated in this
tutorial. Please see the TrueLog Explorer User Guide for details
regarding content verifications, content parsing, comparison of
record/replay TrueLogs, and much more.
Once you’ve generated a load test script with SilkPerformer and executed a
TryScript run, TrueLog Explorer can help you customize the script by:
• Adding content verifications - Using the Add Verifications tool,
you can gain tremendous insight into data that’s downloaded during
load tests—enabling you to verify that the content that is to be sent
by the server is correct. Verifications remain useful after system
deployment for ongoing performance management. See the TrueLog
Explorer User Guide for details.
• Adding parsing functions - TrueLog Explorer allows you to insert
SAPGUI parsing functions visually in Source screengrab view and
on the Controls view tab. Manual code writing isn’t required—
TrueLog Explorer automatically generates parsing functions in
scripts. See the TrueLog Explorer User Guide for details.
• Parameterizing input data - With user data customization you can
make your test scripts more realistic by replacing static recorded
user input data with dynamic, parameterized user data that changes
with each transaction. Manual scripting isn’t required to create such
“data-driven” tests.
For each SAPGUI function call that changes input data, you can verify return
values, parse values, and customize input data. These operations can be
executed from both Source screengrab view (by right-clicking within a control)
and the Controls tree view.
SAPGUI TrueLog Two of the main SAPGUI function types that TrueLog Explorer relies on are:
functions
SapGuiActiveSetWindow - These are top-level API nodes that indicate the
generation of new GUI windows. All actions taken on windows are grouped
below their corresponding SapGuiActiveSetWindow functions.
SapGuiRoundTrip - These are virtual nodes; there are in fact no API calls
called SapGuiRoundTrip that are sent to the server. These nodes are used to
group all client-side actions that occur in the course of each server round-trip.
Both the before and after states of round-trips can be viewed. Multiple round-
trip nodes may be included under each SapGuiSetActiveWindow node.
7 Define a meaningful Name for the new parameter and enter your user
password as the string Value.
4 With the Parameter Wizard you can modify script values in one of two
ways. You can either use an existing parameter that’s defined in the
dclparam or dclrand section of your script, or you can create a new
parameter (based on either a new constant value, a random variable, or
values in a multi-column data file). Once you create a new parameter,
that parameter is added to the existing parameters and becomes available
for further customizations.
Note This example demonstrates the process of creating a parameter
based on a new random variable. See the SilkPerformer User Guide
for complete details regarding the functionality of the Parameter
Wizard.
5 Select the Create new parameter radio button and click Next to create a
new parameter.
6 The Create New Parameter dialog appears. Select the Parameter from
Random Variable radio button and click Next.
7 The Random Variable Wizard appears with the Individual strings random
variable type selected. A brief description of the highlighted variable
type appears in the lower window.
8 Click Next.
9 The Name the variable and specify its attributes screen appears. With
SAPGUI applications, all available list-box values are pre-loaded with
weight values of 1. Enter a name for the variable in the Name field and
click Next.
11 Click Finish to modify the BDL form declaration of your test script so
that it uses the random variable for the given form field in place of the
recorded value. The new random variable function appears below in
BDL view.
12 Initiate a TryScript run with the random variable function in your test
script to confirm that your script runs without error.
Note Controls that have been customized appear with green
highlighting.
Additional You may find that additional customizations are useful (e.g., randomizing
customizations username and appointment-time input parameters for load testing purposes).
Customization is possible for nodes that involve changes of text, combo boxes,
checkboxes, and radio-button controls. See the TrueLog Explorer User Guide
for full details regarding available script customizations.
Note It’s recommended that you not verify or parse values that
occur in the last nodes of round-trips. This is because functions are
scripted after selected API calls. For example, if you verify a
SAPGuiPressButton function that closes the current window, the
Introduction This chapter explains how to make the most of SilkPerformer’s integration with
SAP® eCATT (Extended Computer Aided Test Tool).
This chapter contains the following sections:
Section Page
Overview 35
Setting Up Integration 36
Interacting with eCATT from SilkPerformer 40
Interacting with SilkPerformer from eCATT 44
Limitations 49
Overview
SAP eCATT (Extended Computer Aided Test Tool) has been integrated with
SilkPerformer. SAP’s eCATT facility allows you to create test scripts in SAP
using the scripting language of your choice. eCATT allows you to use external
test tools (i.e., SilkPerformer) while utilizing eCATT as a repository for your test
scripts. eCATT also serves as a basic test management solution for triggering
script executions. Not only can both internal and external scripts be executed
individually, they can also be combined and executed in sequence.
eCATT offers import arguments, a mechanism for calling scripts with special
input values. Scripts can not only receive input values, scripts can also set output
values when they are executed—scripts can be executed in sequence, using
input values derived from the output values of earlier script executions.
Setting Up Integration
This section includes detailed instructions for each of the steps that must be
completed to make use of SilkPerformer’s eCATT integration.
Procedure To configure SilkPerformer’s eCATT integration:
1 On your SAP server, register SilkPerformer as an external tool for
eCATT.
2 On your SAP server, create a new user account.
3 On the client machine where you will be using SilkPerformer in
combination with eCATT, install both SilkPerformer and the SAPGUI
client.
4 If you access your SAP server via a SAP gateway, you must create a
registry key on the client that defines your default SAPGUI connection.
5 Within SilkPerformer system settings, configure SAP eCATT server
connection data.
6 Within SilkPerformer system settings, define a SAP eCATT directory for
extended SilkPerformer test results.
Registering SilkPerformer must be registered in the ECCUST_ET SAP table. This is done
SilkPerformer in by calling the SET_EXTERNAL_TOOL function module, which creates the
eCATT necessary entries in the ECCUST_ET table. You need to method using the
following values for the parameters:
Parameter Value
TOOL_NAME SilkPerformer
PROG_ID SAPeCATTPlugIn.BorlandSPeCATT
TOOL_DESC SilkPerformer for eCATT
TOOL_DATABASE <blank>
TOOL_RUN_DB <blank>
TOOL_NO_PWD ‘X’
TOOL_NO_DB ‘X’
You can call this method using the SE37 transaction. On the first screen, enter
the function module name SET_EXTERNAL_TOOL. Then select Test / Single
Test from the Function Module menu.
In the following window, enter the parameter values as described above and
press the Execute button (F8).
Creating a specific To take advantage of eCATT integration using external tools, a standard user
user account must be generated in your system by your system administrator. This is done by
executing the ECATT_GENERATE_ET_USER program in SE38 (once per
system).
After running the report, the following steps should be executed to activate the
newly created user role:
1 In transaction PFCG, enter role SAP_ECET, and select Change. Ignore
the subsequent warning that appears.
2 Switch to the Authorizations tab and select Change Authorization Data.
3 Place your cursor over the top node of the tree display (SAP_ECET) and
select Authorizations / Generate.
4 Click Back to return to the role maintenance screen.
5 Click Save.
Installing the client On the machine where you plan to use SilkPerformer with the eCATT
software integration, you must first install your SAPGUI client and afterward apply the
SilkPerformer installation. Whenever eCATT initiates the integration between
SilkPerformer and eCATT, SilkPerformer installs a COM object on the agent
that is called by SAP eCATT.
Setting the registry If you are accessing your SAP system via a SAP gateway, you must create a
from behind a SAP registry key for the communication between SilkPerformer and eCATT. eCATT
gateway forwards the connection that is to be used to SilkPerformer, but it is unaware of
gateways. Therefore the connection string that is passed from eCATT cannot be
used if you are behind a gateway.
You have to create a registry key under HKLM\Software\Silk. The key must be a
string value with the name SAPeCATTLogonID; the value must be the SAP
login ID that you use when logging in to your system (i.e., the name of your
SAP connection that you specify in SAPLOGON).
Configuring SAP Connection details for SilkPerformer's communication with SAP eCATT must
eCATT connection be specified in SilkPerformer system settings. There are two options for
connecting to SAP—you can either specify a SAPLOGONID or you can specify
AS Host, RFC Type, and SystemNr settings. With either option you must specify
client, language, username, and password details. Note that when you select a
SAPLOGONID the AS Host, RFC Type, and SystemNr fields are grayed out.
12 Click the OK button once you have completed configuring SAP eCATT
connection settings.
Configuring eCATT To enable the viewing of SilkPerformer result files from within SAPGUI, you
extended results can specify a UNC path to a public file share in which extended SilkPerformer
test results can be stored and accessed by users (e.g., \\fileserver\ecattresults).
SilkPerformer will use the specified directory to store the results of
SilkPerformer test executions initiated via SAP eCATT. Users can easily access
test results by clicking a link in the SAP eCATT GUI.
Procedure To configure eCATT extended results:
1 Select the System command from SilkPerformer’s Settings menu.
2 On the System Settings – Workbench dialog, select the SAPGUI group
icon.
3 Select the eCATT Results tab.
4 Select the Use SAP extended results checkbox.
5 In the SAP extended results directory field, browse to and select the
directory that is to be used for SAP extended results.
The first step prompts you for the SAP server connection that is to be used for
uploading the project:
The second wizard step prompts you for the BlobId and Version:
In the third step you have to define the user type that is to be the primary user
type in the script. As you may have multiple user types configured in your
project, you must define the user type that is to be executed by default when
eCATT executes scripts:
Opening a project The menu entry Open Project from eCATT from the File / SAP eCATT menu
from eCATT allows you to open an existing project from SAP eCATT.
When opening a project, the project is downloaded to a temporary directory and
then imported to SilkPerformer Workbench. A downloaded project is identified
by the BlobId and Version that you define in the Open Project from SAP eCATT
wizard.
The first step in the wizard prompts you for the SAP server connection that is to
be used to download the project:
The second step prompts you for the BlobId and Version of the project that is to
be downloaded.
Now you can make changes to the project. If you want to update the project in
eCATT after you have completed your changes, simply upload the project using
the Upload Project into SAP eCATT command on the SAP eCATT menu.
Defining import/export eCATT offers import arguments, a mechanism for calling scripts with special
arguments input values. Scripts can not only receive input values, scripts can also set output
values when they are executed—scripts can be executed in sequence, using
input values derived from the output values of earlier script executions.
To define import and export arguments, SilkPerformer project attributes are
used. Project attributes that serve as input arguments must have the prefix
SAPIMPORT_. Project attributes that serve as output arguments must have the
prefix SAPEXPORT_.
Note Only project attributes of type string are accepted, since SAP
only allows string data types.
Following is an example that defines two input arguments and one output
argument:
Creating a new Within SAP eCATT (SECATT transaction) you can create a new SilkPerformer
SilkPerformer script script by specifying a test script name (blobID), a version, and SilkPerformer for
eCATT as the external tool, as shown below:
Now click the Create Object button (or press F5). This creates an empty
SilkPerformer script and stores it in the eCATT repository. On the following
screen you must enter all required fields before you can edit the script with
SilkPerformer. Once you have completed all required fields, click the Script
toolbar button. SilkPerformer then opens and downloads the newly created
project in Edit mode (for other available options, please see the next chapter).
Editing/viewing an Within SAP eCATT (SECATT transaction) you can both edit and view an
existing SilkPerformer existing SilkPerformer script by specifying the test script name (blobID) and the
script version, as shown below:
Now you can either click the Display Object (F7) button or the Change Object
(F6) button to view or edit the eCATT script. On the following screen you can
click the Script button to either view or edit the script in SilkPerformer.
If you are only viewing the script, SilkPerformer downloads the project from
SAP eCATT and opens it in Read-Only mode. You can go back to eCATT by
selecting Close Project without Save from the SAP eCATT menu.
If you are opening the script in Edit mode, SilkPerformer downloads the project
from SAP eCATT so that you can modify the script. Once you have completed
your modifications you have three options for returning to SAP eCATT—select
one of the following from the SAP eCATT menu:
• Save Project into SAP eCATT
The project is saved to SAP eCATT and you can continue working in
SAP eCATT.
• Save Project into SAP eCATT and Continue
The project is saved to SAP eCATT, but remains open in SilkPerformer
so that you can perform further modifications.
• Close Project without Save
The project is closed without saving your changes and you can continue
working in SAP eCATT.
Executing a Within SAP eCATT (SECATT transaction) you can execute a SilkPerformer
SilkPerformer script script by specifying a test script name (blobID) and version, as shown below:
Once you have entered these values, click the Execute button (F8) to go to the
execution dialog where you can specify start options for the script:
Depending on the Mode for Ext. Tool selection, the test will either be executed
without SilkPerformer Workbench (Normal), with SilkPerformer Workbench
(With Surface of External Tool), or in the attended debug mode with
SilkPerformer Workbench (Debug Mode).
In With Surface of External Tool mode, SilkPerformer launches and
immediately executes the primary user type. After executing, SilkPerformer
closes.
In Debug mode, SilkPerformer opens the Baseline test dialog and waits for the
user to begin the test. The user can perform some modifications to the project
before the test is actually executed. When the test is finished, the user can use
the Finish and Return Results command on the SAP eCATT menu to report back
the results of the most recently executed test run.
As with other eCATT scripts, SilkPerformer scripts can be executed from other
eCATT scripts and executed in sequence with other scripts.
To do this, create a simple eCATT script that calls an external script using the
REFEXT method. Once you have specified the blobId and version of the script
that you want to execute, double-click the second parameter of REFEXT and
explore the external project (see the example below):
You will see the various scripts that are there-one should be marked is_main.
You will also see all import and export arguments.
Limitations
The following points should be considered when working with SilkPerformer’s
eCATT integration.
Script name length When uploading a SilkPerformer project, you must specify the primary script.
This is the user type that will be executed by default and marked as the main
script within eCATT. The name of the user type is a combination of the BDL
script name, user group, and profile (e.g., a script called test1.bdf that defines a
user group called VUser, and a profile called Profile1, results in an internal
representation of the user type as test1.bdf__VUser__Profile1).
When SAP triggers SilkPerformer to execute a script, SAP specifies the name of
the primary script as shown in the example above, (test1.bdf__VUser__
Profile1).
A bug in the current versions of SAP eCATT truncates such passed values to 32
characters. Though SAP will likely address this issue in future patches, it is quite
possible that you are running a SAP system with this limitation.
The problem with the 32-character limitation is that during execution in normal
mode, SilkPerformer can not find the passed user type because the name has
been truncated. Therefore you will receive an error indicating that the script can
not be found.
To work around this problem, make sure that the combination of script name,
user group, and profile does not exceed 32 characters—28 characters in fact as 4
underscore characters are used to separate the values.
So save your script files with short names, use short names for user groups, and
use short names for profiles.
Default values for During testing efforts with various SAP systems, a problem with default values
arguments in eCATT arguments has been identified. With some older patch levels of SAP
eCATT, default values are not passed to SilkPerformer when running script
executions from external eCATT scripts. If you experience a problem of default
values not being passed for arguments, update your SAP eCATT patches.
Recording in edit- When recording a SAPGUI script in SilkPerformer while in the “edit” mode of
mode an eCATT script triggered from within SAP eCATT, you run into the following
problem: When you begin a new session during recording you actually have two
SAP connections open on your system—the connection that you are recording
on and the connection that is still open from eCATT. Therefore you will see two
SapGuiOpenConnection calls scripted in your script, and the
SapGuiSetActiveConnection contains a connection ID of 1. This is what you
will see in your recorded script:
gsConnID := SapGuiOpenConnection(" ecatt connection",
"SapGuiOpenConnection");
SapGuiOpenConnection(" recorded connection",
"SapGuiOpenConnection");
SapGuiSetActiveConnection("/app/con[1]");
You must remove the first SapGuiOpenConnection entry and change the
SapGuiSetActiveConnection to use the return value of the 2nd
SapGuiOpenConnection. After this modification, the script should look like
this:
gsConnID := SapGuiOpenConnection(" recorded
connection", "SapGuiOpenConnection");
SapGuiSetActiveConnection(gsConnID);
F S
SAP applications
Front-end analysis 2 Customizing test scripts 22
Functional testing 2 TrueLog structure 18
Functions, SAPGUI 5 SAP eCATT 35
Creating a new SilkPerformer script 45
G Creating a user account 37
Defining import/export arguments 43
Generating test scripts 7 Editing/viewing an existing SilkPerformer
script 46
I Executing a SilkPerformer script 47
Installing the client software 37
Interacting with eCATT from SilkPerformer 40
Input data
Interacting with SilkPerformer from eCATT 44
Parameterization 22
Limitations 49
Input data, customization 27
Opening a project from eCATT 42
Input parameter, customizing 24
Registering SilkPerformer in eCATT 36
Setting registry behind a SAP gateway 37
L Setting up integration 36
Uploading a project to eCATT 40
Load test scripts SAP monitoring 2
Customizing 21, 27 SAP patch level, checking 2
Load testing, further steps 33 SAP scripting, enabling 2
SAPGUI applications
O TrueLog structure 22
Settings
Overview Report 32 Profile 3
Recorder 3
Replay 4
P
Parameter Wizard 25, 27
T
Parameters
Creating new 29 Test scripts 27
U
User data
Customization 22, 27
Parameterized 22
User data customization 27
V
Variables, random 29
Verifications
Adding 22