Escolar Documentos
Profissional Documentos
Cultura Documentos
Tobias Kaufmann
SAP AG Walldorf, August 2007
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
Motivation Current Situation SAP ensures correctness of standard test cases Standard test cases do not cover all customer test cases Customer test cases require testing in customer system Proposed Situation Trace Tool is used to record navigation steps and data of customerspecific Queries Trace Tool is used to compare actual data with recorded reference data Reduce manual test effort for customer
Use cases After applying Notes or Support Packages Ensure runnable Queries (no syntax error) Ensure correctness of Query results After loading Data (InfoProvider and Master Data) Ensure correctness of cache and/or BI Accelerator Warm-up OLAP cache
Automatic Test of Queries General Procedure 1. Prepare Test by recording navigation steps and reference data 2. Apply Notes or Support Packages 3. Replay Test Transaction RS Trace Tool (transaction code RSTT) Definitions
Trace is a sequence of navigation steps with Checkable Program Objects CATT Trace is a Trace with recorded Reference Data Test Package bundles several CATT Traces Test Job is a scheduled job with Test Package Trace CATT Trace Test Package Test Job
Reference Data and Focus of Test Comparison of Reference Data and actual Data
Fix Master and InfoProvider Data is required Fix Metadata (definition of Query, InfoObject, etc.) is required Restrict to specific date (e.g. restrict to 2006 or 2005) Restrict to specific characteristic values (master data)
Scope of Test
OLAP functionality (incl. figures and ABAP syntax) Productive or test system No BEx Web (ABAP and Java Runtime) functionality No BEx Analyzer (Excel) functionality Use transaction RSRT2 (HTML view) to record navigation steps
Query
Trace
1. Activate User for Tracing
Test Job
10. Analyze Log of Test Job 11. Identify erroneous CATT Trace
CATT Trace
4. Record Reference Data
Test Package
SAP AG 2007, Automatic Test of Queries / Tobias Kaufmann / 7
Trace Query CATT Trace Test Package Test Job Data Support Packages
Change System
7. Load InfoProvider or Master Data 8. Apply Notes or Support Packages
Execute Test
8. Check CATT Traces by running Test Job 9. Analyze Log of Test Job 10. Identify erroneous CATT Trace with log and reporting 11. Check erroneous CATT Trace manually
SAP AG 2007, Automatic Test of Queries / Tobias Kaufmann / 8
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
Basic Settings
Start transaction RSTT for one time initialization 1. Press Basis Settings 2. Choose Reporting, Planning and OLAP Technology as Application Area 3. Check on Trace Execution in New Roll Area
SAP AG 2007, Automatic Test of Queries / Tobias Kaufmann / 10
1 2 3
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
1 2 3 4
Optional
2
3 4 2
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
Trace Selection
1. Enter Description 2. Enter Trace ID or 3. Use Multiple Selection to choose several Trace IDs 1 Wildcards are possible and resolved into several Trace IDs at execution time, i.e. new Trace IDs will be added automatically See register Trace List
1 2
Trace List
1. Click on register Trace List List of all Trace IDs appears that fit to the selection under Trace Select See register Trace Select 2. Press button Save to store Test Package 2
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
4 1
Parameters
1. Enter Description 2. Select Test Package 3. Select Process Mode Check Mode is recommended Play Mode is only useful for ABAP syntax check 4. Check on Execute Traces in Parallel to accelerate execution 1
2 3 4
Time Settings
1. Click on register Time Settings 2. Choose Execution Mode Use Execute Immediately to check Test Job 1 3. Press button Save 2 3
Logs
1. Click on register Logs 2. Press on button Job Log to view details of Job (e.g. progress of execution) 3. Column Current shows actual step of job (press Refresh) See next section how to view Test Log Results 2 3
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
System Changes Two kind of changes to system could cause errors... 1. Data Changes
Load InfoProvider Data Load Master Data Change of Meta Data Set filter to time period Set filter to characteristic values Record Reference Data again
To avoid errors cause by changed data Define Traces with fix filter to be independent of InfoProvider and Master Data load or Record Reference Data again before applying coding changes
2. Coding Changes
Apply Notes or Support Packages Traces must be without error before to identify a coding error
3 2
Overview Prerequisites Trace CATT Trace Test Package Test Job Test Result Summary
Additional help
Documentation
Outlook
Reference Data Scope of Test
Planned Situation
Enable Trace for BEx Web (Java Runtime) functionality Record navigation steps in BEx Web Ensure correctness of layer BI Consumer Services (BICS) Ensure correctness of Java Runtime (no exceptions)
The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG. This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice. SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence. The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages.
Die in dieser Publikation enthaltene Information ist Eigentum der SAP. Weitergabe und Vervielfltigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, nur mit ausdrcklicher schriftlicher Genehmigung durch SAP AG gestattet. Bei dieser Publikation handelt es sich um eine vorlufige Version, die nicht Ihrem gltigen Lizenzvertrag oder anderen Vereinbarungen mit SAP unterliegt. Diese Publikation enthlt nur vorgesehene Strategien, Entwicklungen und Funktionen des SAP-Produkts. SAP entsteht aus dieser Publikation keine Verpflichtung zu einer bestimmten Geschfts- oder Produktstrategie und/oder bestimmten Entwicklungen. Diese Publikation kann von SAP jederzeit ohne vorherige Ankndigung gendert werden. SAP bernimmt keine Haftung fr Fehler oder Auslassungen in dieser Publikation. Des Weiteren bernimmt SAP keine Garantie fr die Exaktheit oder Vollstndigkeit der Informationen, Texte, Grafiken, Links und sonstigen in dieser Publikation enthaltenen Elementen. Diese Publikation wird ohne jegliche Gewhr, weder ausdrcklich noch stillschweigend, bereitgestellt. Dies gilt u. a., aber nicht ausschlielich, hinsichtlich der Gewhrleistung der Marktgngigkeit und der Eignung fr einen bestimmten Zweck sowie fr die Gewhrleistung der Nichtverletzung geltenden Rechts. SAP haftet nicht fr entstandene Schden. Dies gilt u. a. und uneingeschrnkt fr konkrete, besondere und mittelbare Schden oder Folgeschden, die aus der Nutzung dieser Materialien entstehen knnen. Diese Einschrnkung gilt nicht bei Vorsatz oder grober Fahrlssigkeit. Die gesetzliche Haftung bei Personenschden oder Produkthaftung bleibt unberhrt. Die Informationen, auf die Sie mglicherweise ber die in diesem Material enthaltenen Hotlinks zugreifen, unterliegen nicht dem Einfluss von SAP, und SAP untersttzt nicht die Nutzung von Internetseiten Dritter durch Sie und gibt keinerlei Gewhrleistungen oder Zusagen ber Internetseiten Dritter ab.
B
1. X
1 2 3