You are on page 1of 41

Computer Aided Test Tool (CATT)

VSDK 3.0

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

CATT procedures General Usage The Computer Aided Test Tool (CATT) allows you to combine and automate business processes as repeatable test procedures. Checks
Process transactions and transaction chains automatically.
Check transaction results. Check system messages. Check database updates by performing determining values and making target/actual comparisons. Check reactions to changes in Customizing settings.

Create
Test data Training data

SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

CATT procedures - Technical Aspects CATTs are cross-client can be created and run in any client CATT uses the Batch Input interface to run transactions CATT provides flexible data management by the use of

parameters and variables


The CATT tool and the Test Workbench are Basis Applications. They are available in all ABAP based systems (R/3, CRM, APO, BW, etc.)

SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

CATT components

CATT procedure

Functions Parameters Variables

Attributes

Log

Execution

SAP AG 2005, Title of Presentation / Speaker Name / #

CATT components: Attributes

CATT procedure

Functions

management data general data restrictions CATT specific

Attributes

Parameters Variables

Log

Execution

SAP AG 2005, Title of Presentation / Speaker Name / #

CATT components: Functions

SETVAR - Set variable TCD - Start transaction TXT - Comment REF - Reference module IF ... ENDIF DO ... ENDDO ...

CATT procedure

Functions
Attributes Parameters Variables

Log

Execution

SAP AG 2005, Title of Presentation / Speaker Name / #

CATT components: Parameters, Variables

CATT procedure

Functions

import interface
Attributes

Parameters Variables

export interface local variables default values

Log

Execution

SAP AG 2005, Title of Presentation / Speaker Name / #

CATT components: Execution

CATT procedure

Functions Parameters Variables

Attributes

log type
Log

Execution

processing mode variants

import parameters

SAP AG 2005, Title of Presentation / Speaker Name / #

CATT components: Log

CATT procedure

Functions Parameters Variables

Attributes

info on test result short / detailed log archive debugging

Log

Execution

SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

Creating a CATT

1 2

Start recording (--> transaction code) Navigate through the process as it is to be tested later Stop recording

3
4

Edit the test procedure


Maintain attributes
Maintain functions (parameters and variables) Maintain variants

Test run the procedure

SAP AG 2005, Title of Presentation / Speaker Name / #

Access to CATTs and the Test Workbench

SCEM - CATT (Easy mode)

SCAT - CATT (Expert mode)

STWB_1 - Test catalogs

STWB_2 - Test plans

STWB_INFO - Status Infosystem

STWB_WORK - Perform test package

SAP AG 2005, Title of Presentation / Speaker Name / #

Maintenance Transaction code: SCAT

SAP AG 2005, Title of Presentation / Speaker Name / #

Screen Sequence

SAP AG 2005, Title of Presentation / Speaker Name / #

Field list

SAP AG 2005, Title of Presentation / Speaker Name / #

Definition of variables

SAP AG 2005, Title of Presentation / Speaker Name / #

Variables and import parameters

SAP AG 2005, Title of Presentation / Speaker Name / #

Variables filled via reports

SAP AG 2005, Title of Presentation / Speaker Name / #

Variants
If you have used import parameters for a test procedure, you can create variants for it, in which you assign values to the various import parameters.

Create test procedure: Variants


Variant 5 Variant 5

Va Va ria ria 3 nt 3 nt Variant 2

Va ria nt4 4

Parameter1 = 1997 Parameter1 = 1997 Parameter2 = -1 Parameter2 = -1 Parameter3 = 002 Parameter3 = 002 Parameter4 = 1000 Parameter4 = 1000 Parameter6 = Year Parameter6 = Year Parameter7 = 4712 Parameter7 = 4712 Parameter8 = 88,19 Parameter8 = 88,19 .. .. .. .. Parameter30= '' '' Parameter30=

Variant 6 Variant 6 Parameter1 = 1997 Parameter1 = 1997 Parameter2 = -1 Parameter2 = -1 Parameter3 = 002 Parameter3 = 002 Parameter4 = 1000 Parameter4 = 1000 Parameter6 = Year Parameter6 = Year Parameter7 = 4712 Parameter7 = 4712 Parameter8 = 88,19 Parameter8 = 88,19 .. .. .. .. Parameter30= '' '' Parameter30=

Test procedure

Import parameters Import parameters Te st mo dul e

Variant 1 1

Variant 98 Variant 98

Import parameters Transaction Export parameters

Table check Table check


SAP AG

Parameter1 = 1995 Parameter1 = 1995 Parameter2 = -1 Parameter2 = -1 Parameter3 = 002 Parameter3 = 002 Parameter4 = 1000 Parameter4 = 1000 Parameter5 = Co. cde Parameter5 = Co. cde Parameter6 = Year Parameter6 = Year Parameter7 = 4712 Parameter7 = 4712 Parameter8 = 88,88 Parameter8 = 88,88 .. .. .. .. Variant 99 Variant 99 Parameter30= cst.ctr Parameter30= cst.ctr Parameter1 = 1994 Parameter1 = 1994 Parameter2 = +1 Parameter2 = +1 Parameter3 = 007 Parameter3 = 007 Parameter4 = 1000 Parameter4 = 1000 Parameter5 = Co. cde Parameter5 = Co. cde Parameter6 = Year Parameter6 = Year Parameter7 = 4711 R Parameter7 = 4711 Parameter8 = 19,99 Parameter8 = 19,99 .. .. .. .. Parameter30= cst.ctr Parameter30= cst .ctr

SAP AG 2005, Title of Presentation / Speaker Name / #

Create variants

SAP AG 2005, Title of Presentation / Speaker Name / #

External variant maintenance in Excel


Import parameters can be downloaded to a PC TXT-File This TXT-File can be maintained locally and uploaded again

External variants - Maintain the text file in Excel


M icrosoft Excel - P3009502.TXT File Edit View Create Format Extras Data W indow

1 LAND1_GP 2 Country 3 DE 4 *** Changes 5 GB 6 US 7 8 9 10

ORT01_GP PSTLZ SPRAS STCEG City Postal code Language Sales tax ID Berlin 10855 D DE123456789 made to the above default values have no effect London 54321 E GB123456789 New York 44444 E US123456789 W alldorf 69180 ! Heidelberg 69120

SAP AG

SAP AG 2005, Title of Presentation / Speaker Name / #

Export variants

SAP AG 2005, Title of Presentation / Speaker Name / #

Execution Execution of CATT with different alternatives

SAP AG 2005, Title of Presentation / Speaker Name / #

Additional features Testing external applications Archiving


Archiving of log files

Transport
Selection of different CATTs into one transport request

Collective execution
Execution of several procedures in a background job

Troubleshooting
Rerun from log

Change Management
Re-record CATT (e.g. after upgrading)

Waiting times
between screens or modules

SAP AG 2005, Title of Presentation / Speaker Name / #

Relevant application changes


The following changes in the application usually require maintenance of associated CATT procedures:

CATT-relevant changes

New screen sequence control New screen sequence control Deletion of screen fields Deletion of screen fields Required field <-> optional field Required field <-> optional field Message changes Message changes Deletion of functions Deletion of functions Renaming of function or transaction codes Rena Renaming of function or transaction codes Standard customizing changes Standard customizing changes

SAP AG

SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

CATT Usage in Best Practices: Master Data

Creation of Master Data via Excel spreadsheet

From a spreadsheet ...

to the transaction for creating master data


SAP AG 2005, Title of Presentation / Speaker Name / #

CATT Usage in Best Practices: Master Data Creation of Master Data via Questionnaire

From a questionnaire ...

to the transaction for creating master data


SAP AG 2005, Title of Presentation / Speaker Name / #

CATT Usage in Best Practices: Installation Automation Automation of installation steps


From installation role ...
Installation Guide

Transparency through documentation

Connectivity Guide

to CATT procedure
SAP AG 2005, Title of Presentation / Speaker Name / #

Execution of CATTs in the Installation Role

Execution Types
CATT without variants or internal variants
runs immediately in the background

CATT with external variants


Options
Run with attached variants, no modification possible Run from external file, modifications possible

CATT with variants via questionnaire


CATT variables are filled via questionnaire field assignments

SAP AG 2005, Title of Presentation / Speaker Name / #

Execution of CATTs in the Installation Role: Example


Running a CATT with external variants Running a CATT with questionnaire

SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

Test Workbench Architecture

Test catalog
Test procedure 1

Test plan

User assignment
User 1

Test module 1 Test module 2 Test module 3 Test module ...

Test package 1

Test package 2

User 2

Test package 3

User 3

Test procedure 2

Test module 1 Test module 2 Test module 3 Test module ...

...
SAP AG 2005, Title of Presentation / Speaker Name / #

Test Organization

Test organization
Set of test cases
object oriented

Set of test cases by test purpose


time and purpose-oriented

Assign test cases to a tester


time and Person-oriented

Tests are carried out Perform test

Test case 1 Test what how?

Test catalog

Test plan

Test package

Testfall Test case 3 3 Test Testfall cfsel Test case 2 1 Testfall 21 Testfall 4 4 Test casel

SAP AG

SAP AG 2005, Title of Presentation / Speaker Name / #

Best Practices Test Catalogs

SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

Tips & Tricks for CATT creation

Only create test modules for transactions which you know well. Always use parameters to pass values to transactions.

Choose the parameters and screen sequence so as to make the test case as generally usable as possible.
Always modify test cases so that they remain compatible. Document all test cases. Use variants for similar test cases. Handle with care ! CATTs do database changes; never run a CATT in a productive environment without having it tested before Non-CATTable transactions

F4-selection not recordable ActiveX-Controls

Release upgrade partly re-recording necessary


SAP AG 2005, Title of Presentation / Speaker Name / #

General Usage

Technical Aspects
CATT Components

Creating a CATT Procedure


CATT Usage in Best Practices Test Workbench Tips & Tricks Exercise: CATTs

You might also like