Sei sulla pagina 1di 24

e-CATT

Supported Platforms e-CATT

Installation of SAP R/3 Enterprise SAP Enterprise - Archiving

Packages and Extensions SAP System Monitoring

Software Logistics Unicode

SAP Web AS - Security SAP Solution Management

SAP AG 2002

SAP AG RTRE1W e-CATT - 1


Test Tools The Situation

CATT Computer Aided Test Tool

Available from Release 3.0

Advantages
n Shipped free with SAP Basis System
n Most effective testing method for SAP transactions

Disadvantages
n Control technology not fully supported
n No support for tabular parameters of function modules
n Only limited support for distributed system environments
n Only limited support for external applications

SAP AG 2002

n What do I have to test?


New SAP installations
Addition and integration of new components
In-house developments both functional and integration tests
Upgrades regression testing
Application of legal changes (such as in mySAP HR)
n Advantages of automated testing
Fewer testers required
Fewer test machines required
Speeds up test process
Automated test cases are easier to reproduce
n In large enterprises, handling the old CATTs can become difficult. You might loose control of which
CATT is running where and how to transport the CATT in your system landscape.

SAP AG RTRE1W e-CATT - 2


Testing Then

One centralized R/3 System

FI LO

HR

R/3

CATT

Classic screen-based SAP GUI transactions


SAP AG 2002

SAP AG RTRE1W e-CATT - 3


Testing - Now

Decentralized system environment

SAP

External Application
SEM
SAP
SAP R/3 CRM
4.6C

SAP
BW
SAP
APO

Variety of user interfaces (controls, web )


SAP AG 2002

SAP AG RTRE1W e-CATT - 4


eCATT Main Features

New transaction code: /nSECATT


Delivered with R/3 Enterprise and any other system running Web
Application Server 6.20

New concept for remote testing a 6.20 system can be used as a


central test system for administering tests that run in any system
with Release 4.6C or higher

New concept for managing and reusing test data

Full integration with the Test Workbench

SAP Web AS System


6.20 under test

Relationship described by an RFC destination


SAP AG 2002

n eCATT is shipped in the 6.20 standard. 4.6C systems receive eCATT by applying a BASIS support
package
n All eCATT objects are transportable objects with can be grouped in a package (former development class)

SAP AG RTRE1W e-CATT - 5


eCATT - Terminology

Test Script
The set of commands that forms the test

Test Data Container


Reusable sets of data that can be used to run tests

System Data Container


A list of systems that are addressed during the
execution of a test script

Test Configuration
A test script, combined with data from one or more test data containers,
plus a system data container that describes the correct system landscape

SAP AG 2002

n For setting up a test case with eCATT, a customer must pick one of his existings SAP systems as a Central
Test System
n The Central Test System is used to store the:
Test Scripts
Test Data Containers
System Data Containers
Test Configuration
n The Test Data Container:
Is a set of tables
Holds the test data on the Central Test System
n A System Data Container is a description of an SAP landscape. Usually, you will have one system data
container per project.

SAP AG RTRE1W e-CATT - 6


Constructing an Automated Test Series

1. What applications am I going to test?

2. What does my system landscape look like?

3. How can I best create an automated test for my applications?

4. What data do I need to drive the tests?

5. How can I organize my test cases? Test


data
container
System
data
container
1 4 5
2 3
Test
Test Workbench
script

SAP AG 2002

n A test case depends heavily on the application that has to be tested.

SAP AG RTRE1W e-CATT - 7


System Data Containers

A system data container consists of a list of systems used in a


particular test script. One of the systems may also be designated as
the maintenance system of a script.

System Data Container 2


Sys. Component RFC Dest
Target
System
Logical name

Existing RFC
Destination
component
SAP

Lookup

SM59
SAP AG 2002

n All systems in a test landscape need logical system names and RFC destinations in place, so that they can
connect to each other
n The System Data Container refers to these RFC destinations
n When a test case is performed on the central test system itself, use RFC destination NONE

SAP AG RTRE1W e-CATT - 8


Test Script

Test Script 3

Attributes

Script Commands

Internal External

SAP AG 2002

n eCATT has its own script language, which is similar to ABAP

SAP AG RTRE1W e-CATT - 9


Test Data Container

4
Parameters
Name Value Ref System ABAP Type Length
Airline LH S_CARR_ID
Date D 8

Variants

Variant Description Airline Date

Var1 Data AA 01.04.2002


Var2 Data LH 01.04.2002

SAP AG 2002

SAP AG RTRE1W e-CATT - 10


eCATT Script Language - Elements

Recording and playback of applications

Conditions Checks

Loops Calculations

Simulation of
Reading table values
Customizing settings

Blocks of ABAP coding

SAP AG 2002

n You dont need to remember all script language elements


n Transaction eCATT provides command patterns. To access them, choose the Pattern button and select
your command in and its parameters by using the F4 help

SAP AG RTRE1W e-CATT - 11


eCATT Script Language: Recording Applications

Recording and playback of applications

FUN calls a
function module
TCD allows you to record
and replay SAP
transactions
SAPGUI allows you
to record sequences
of screens containing
controls
An interface allows you
to integrate test tools
from third-party vendors
with SAP eCATT

SAP AG 2002

SAP AG RTRE1W e-CATT - 12


Testing Function Modules

FUN ( <function module>, <interface>, [<target>] ).

Command Interface

Importing
Exporting Function
Changing
Module
Tables
Exceptions

SAP AG 2002

SAP AG RTRE1W e-CATT - 13


The TCD Command

TCD ( transaction, interface, [sys] )

Same system

Different system

SAP AG 2002

SAP AG RTRE1W e-CATT - 14


TCD Command Parameters

SAP AG 2002

SAP AG RTRE1W e-CATT - 15


Message Handling

TCD
Command Interface Location of message
(program and screen)

Message attributes
(type, ID, number)
MSG
Internal Table
Message variables
(up to four)
You
You can
can create
create your
your
own
own message IDs and
message IDs and Full text of message
texts
texts
(in logon language)

SAP AG 2002

SAP AG RTRE1W e-CATT - 16


SAPGUI Recording Options

When to have a new SAPGUI command


(more commands = smaller command
interfaces)

Scripting
Scripting host
host in
in GUI
GUI
(Requires
(Requires SAP GUI 6.20)
SAP GUI 6.20)
Connects
Connects to eCATT in
to eCATT in
backend system
backend system

Record the initial state


of these elements
allows field checks and
value retrieval, but makes
command interfaces large

SAP AG 2002

SAP AG RTRE1W e-CATT - 17


Testing External Applications

The drivers that we have seen so far are only suitable for applications
running either on the application server or under SAPGUI

JSP
SAPGUI for
HTML
MFC
BSP

SAPGUI for
Java
ASP

HTML VB
Swing

SAP AG 2002

SAP AG RTRE1W e-CATT - 18


Testing External Applications Procedure (1)

Scripts for testing external applications are, to a large degree, normal


eCATT scripts

SAP AG 2002

SAP AG RTRE1W e-CATT - 19


Testing External Applications Procedure (2)

The main difference is that you cannot maintain the commands or


parameters of a script within eCATT itself

SAP AG 2002

SAP AG RTRE1W e-CATT - 20


External Applications: The Solution

External Test Tool

Since eCATT scripts cannot test everything itself,


it uses reference calls to other applications

SAP AG 2002

n Calling other eCATT scripts is performed by the REF command. Example:


REF ( JMTESTXX, JMTESTXX_1 )
JMTESTXX is the name of the eCATT script
JMTESTXX_1 is the name of the command interface
The command interface is used to handover INQUIRY_IN (import parameters) and OFFER_OUT
(export parameters) to the called scripts. Default values can be assigned to the command interface
n CATTs and eCATT can also be called remotely. Example:
REMOTECATT ( C1, C1_1, T) call CATT C1 via command interface C1_1 in System T (RFC
Destination)

SAP AG RTRE1W e-CATT - 21


Versioning

For different implementations of the same test (for example,


transaction with / without controls), you can create different versions
of the same script.

SAP AG 2002

n A validity of a version can also be specified.


n Example:
Version 001 of test script MS_DEMO_01 is valid for SAP_BASIS 6.20

SAP AG RTRE1W e-CATT - 22


Migration

Test System Target System


X
CATT Module
CATT Module

eCATT
Migration Function

New
NeweCATT
eCATTScript
Script
With target system X

SAP AG 2002

n Variants of Scripts and CATT Modules are possible


n Recursive Migration is also possible
n Example:
If a CATT Module (A) calls other CATT Modules (B and C) itself, you can first replace CATT Module
A by an eCATT Script
In the next step, you can replace CATT Modules (B and C) which are called by the new eCATT script

SAP AG RTRE1W e-CATT - 23


Useful links

SAP Library, Web Application Server 6.20


n mySAP Technology Components
Web Application Server
Computer Aided Test Tool
eCATT: extended Computer Aided Test Tool

SAP offers a 2 day course


n Course name: PDECAT

SAP AG 2002

SAP AG RTRE1W e-CATT - 24

Potrebbero piacerti anche