Vous êtes sur la page 1sur 15

SAP Test Acceleration and Optimization

PDF download from SAP Help Portal:


http://help.sap.com/saphelp_tao30_sp02/helpdata/en/59/c592cf76844fbbadc7bd8c914cfcc5/frameset.htm
Created on May 08, 2015

The documentation may have changed since you downloaded the PDF. You can always find the latest information on SAP Help Portal.

Note
This PDF document contains the selected topic and its subtopics (max. 150) in the selected structure. Subtopics from other structures are not included.

2015 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose
without the express permission of SAP SE. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE
and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by
SAP SE and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be
liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express
warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP and other
SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE in Germany and other
countries. Please see www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

Table of content

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 1 of 15

Table of content
1 SAP Test Acceleration and Optimization
1.1 Changes and New Features in SAP Test Acceleration and Optimizati
1.2 Setting Up SAP Test Acceleration and Optimization
1.3 Connecting SAP Test Acceleration and Optimization to SAP Solutio
1.4 Connecting to a System Under Test and SAP Quality Center by HP
1.5 Downloading and Uploading a Test Component
1.6 Performing Self-Checks
1.7 Composing a Test
1.7.1 Creating an Executable Object
1.7.2 Creating a PFA Recording
1.7.3 Further Options for Test Creation
1.7.3.1 Creating or Updating a Test Manually
1.7.3.2 Viewing and Locating Objects with the Object Spy
1.7.3.3 Creating Screen Components by Inspection
1.7.3.4 Creating Screen Components with UI Scanner
1.7.4 Uploading the Test to SAP Quality Center by HP
1.8 Consolidating a Test
1.9 Executing a Test
1.9.1 Using the Run and Report Module in TAO
1.9.2 Using SAP Quality Center by HP
1.9.3 Displaying Execution Reports
1.10 Repairing Tests and Components with Change Analyzer
1.11 Displaying Components and PFA Recordings in Repository

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 2 of 15

1 SAP Test Acceleration and Optimization


Product Information
Product

SAP Test Acceleration and Optimization

Release

3.0 SP02

Based on

SAP Solution Manager 7.1 SP10

Documentation published

November 2013

SAP Test Acceleration and Optimization (TAO) generates automatic tests during regression testing of SAP solutions, quickly. SAP Test Acceleration and
Optimization creates tests and components from the screens of a transaction or the views of a CRM or Web Dynpro ABAP web application, and parameterizes
them. These tests are for a single transaction or web application and can be combined into a scenario test. SAP Test Acceleration and Optimization also
maintains components and tests by integration into the Business Process Change Analyzer in SAP Solution Manager.

Note
SAP TAO supports the following UI technologies:
SAP GUI
CRM Web UI
Web Dynpro ABAP, Web GUI (on SAP ABAP servers)
SAP Portal, Java Web Dynpro and Web (on SAP Java systems or third-party servers)
For detailed information on supported versions, see the compatibility matrix at http://service.sap.com/solutionmanager under
Test Management Compatibility Matrix SAP Sol Man, SAP QC, Adapter & SAP TAO .

Processes

Media Library

A test is made of test components:

The graphic illustrates the basic elements of which a test consists.

There are three types of test components:


Default components: They are delivered with TAO and must be uploaded to the HP Quality Center when TAO is initially installed or updated. They are
used to perform basic actions like clicking a button, entering text in a text field, or selecting a tab. You can reuse default components for several tests. for
more information, see Downloading and Uploading a Test Component.
Screen components: They are generated by the inspection either manually or at the end of the Process Flow Analysis (PFA) recording. A screen
component corresponds to one UI screen (and not page), which is a reusable entity of a screen. A screen component has one parameter per editable
control on a UI. So, when you assign a certain value to a parameter, this value is entered in the corresponding field of the screen at execution time. Screen
components are reusable by several tests and can be re-inspected when an update is necessary. For more information, see Creating Screen Component
by Inspection.
Consolidated components: They are created to speed up execution. One consolidated component contains the parameters and code of all the
components of a selected test. So, you can perform a test by executing only one component, instead of executing many components. For more information,
see Creating Screen Component by Inspection.
Components contain a set of parameters, a description, and Visual Basic scripting code.

Integration
Landscape Component

Used for:

SAP Solution Manager

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Verifying the license, which is required for using TAO.


Using the Business Process Change Analyzer to identify the tests that are affected
by a change to the business process.
Storing data that is required to create, optimize, and maintain tests and
components.

Page 3 of 15

Giving access to the systems under test.


Managed system (system under test)

Executing business processes to be tested.

SAP QuickTest Professional by HP

Executing tests in SAP Quality Center by HP.


Using UI Scanner to record user interactions (optional).

SAP Quality Center by HP

Storing tests and components.


Manual editing.
Starting the execution.

The graphic illustrates the entities that are involved in the SAP TAO process.

Features
SAP TAO with SAP Quality Center by HP has the following features:
Test creation
You can record and execute tests easily. You can use the default SAP TAO components to build tests. The business expert of a product has to spend less
time explaining the business process to quality professionals. For more information, see Composing a Test.
Test consolidation
You can consolidate a test into a component and use it in a scenario test, to speed up test execution. For more information, see Consolidating a Test.
Test execution
You can execute individual tests, or a list of consecutive tests. For more information, see Executing a Test.
Regeneration of affected components
You can regenerate any screen components whenever there is a change to the business process. Exception: You cannot regenerate components that were
generated with the UI scanner.
You can also create or update Technical Bills of Material (TBOMs) for associated SAP Solution Manager items. This is necessary to run Business Process
Change Analysis (BPCA) to detect tests and components that are impacted by an update of the tested business processes. For more information, see
Repairing Tests and Components with Change Analyzer.

1.1 Changes and New Features in SAP Test Acceleration and


Optimization 3.0 SP02
This section provides an overview of new and changed functions in SAP Test Acceleration and Optimization (TAO) 3.0 SP02.
Function

Type of change

Description

More information

Creating a Test Using Process Flow


Analysis (PFA)

Enhanced

SAP TAO 3.0.2 supports testing of


business processes of additional SAP and

Creating a PFA Recording

non-SAP html-based user interfaces.


Now, testing of business processes of the
following UI technologies is supported:
SAP GUI
SAP CRM Web Client
new: SAP Web Dynpro ABAP, Web
GUI, Java Web Dynpro (version

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 4 of 15

7.31 and higher), BSP running on


SAP ABAP systems
new: SAP Portal, HTML-based Web
(no flash, no Java applet, etc.)
running on SAP Java systems or
third-party servers
Connection

Enhanced

The connection panel has been enhanced:

Connecting to a System Under Test and

Definition of Web as system under SAP Quality Center by HP


test is supported.
Usage of absolute or relative URLs
is supported.
Enhanced logon capabilities for
customized or third-party servers.
Design

Enhanced

Definition of additional executable object

Creating an Executable Object

types is now possible.

1.2 Setting Up SAP Test Acceleration and Optimization


The setup of SAP Test Acceleration and Optimization (TAO) is described in the Administrators Guide at http://service.sap.com/instguides under
Components
SAP Test Acceleration and Optimization .

SAP

Check especially, if the default components are available already. For more information, see Downloading and Uploading a Test Component.

1.3 Connecting SAP Test Acceleration and Optimization to SAP


Solution Manager
Procedure
SAP Test Acceleration and Optimization (TAO) uses information from SAP Solution Manager, such as the Business Process Change Analysis (BCPA).
Therefore, you need to setup the connection to SAP Solution Manager.
When you first start SAP TAO, select a SAP Solution Manager system in a dialog box. Then enter your user credentials and log on to the system.
If the list of selectable systems in SAP TAO is different from those that are defined in your SAP Logon window, choose Change System List to change the
configuration of the saplogon.ini file where the list of systems is described. You can find the file in SAP Logon by choosing the settings icon
( SAP Logon settings ).

1.4 Connecting to a System Under Test and SAP Quality Center


by HP
This procedure connects the SAP Test Acceleration and Optimization (TAO) client to an SAP managed system (system under test, SUT) and SAP Quality
Center by HP server.

Prerequisites
You have the user credentials for the system under test and SAP Quality Center by HP.

Procedure
In the navigation area of SAP TAO, choose Connect .

Connecting to a Managed System (System Under Test)


1. On the System under Test tab, select a system type.
SAP ABAP Backend: These systems are necessary for one or all of these UI technologies:
SAP GUI
SAP CRM Web Client
SAP Web Dynpro Abap, SAP Java Web Dynpro (starting from version 7.31), BSP, Web GUI
Web: Necessary for SAP Portal and third-party web applications.
2. Configure the connection to the system under test.
When choosing SAP ABAP Backend
1. Select a System Under Test system from the list
If a system is not displayed, ensure the following:
1. SAP TAO uses the SAP Logon configuration file. To copy the path to the location of the local configuration file of the system
(saplogon.ini), in the SAP Logon screen, choose

( SAP Logon Settings )

SAP Logon Options

Configuration

Files .
2. Go back to the System under Test screen area in SAP TAO.
3. Choose Change System List .
4. Enter the configuration file path.

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 5 of 15

5. Save your entries.


2. In the SAP Solution Manager Configuration work center, you have created a technical RFC destination named TST_<SID>_CLNT<Client> to
the System Under Test.
3. Enter the user credentials.
4. To verify that the user credentials are correct, choose Test User .
5. Choose Connect to validate your entries.
When choosing Web
1. Create or select an entry that references a system.
To create a new entry, choose New . Enter the description, server host, and port. If HTTPS protocol is required, set the corresponding indicator.
The server base URL will be computed using this information. The URL defined later, in the executable object under Design , will be
appended to this base URL to get the final URL used during recording and execution of tests.
Confirm with OK .

Note
It is possible that you do not select a system when the full URL is defined in the executable object of the design module.
You can also edit an existing system definition, or export selected rows to a file and import them on another machine.
2. When authentication is necessary, set the With authentication indicator.
3. Enter the user credentials that must be used at the beginning of the recording and when you execute tests.
4. Save your entries.

Connecting to SAP Quality Center by HP


1. In the SAP Quality Center by HP tab of SAP TAO, enter the required data.

Note
The server URL for the SAP Quality Center by HP depends on your landscape. Contact your system administrator if you do not know it. It often ends with
/qcbin, for example http://host:port/qcbin.
2. Choose Login .
3. Select the domain and project.
4. Choose Connect to Project .
SAP TAO automatically detects the version of SAP Quality Center by HP and SAP QuickTest Professional by HP in your system, after connecting to the
domain and project.
5. SAP TAO saves the connection settings and you do not have to enter them again. You can change this information if required.

1.5 Downloading and Uploading a Test Component


With this procedure, you can do the following in SAP Test Acceleration and Optimization (TAO):
Upload the default components to SAP Quality Center by HP, which is required in the following cases:
If you are using SAP TAO for the first time after installation.
If you have upgraded or patched SAP TAO to a higher Support Package level.
Back up components on the SAP Quality Center server, or on a hard drive
Download components from SAP Quality Center by HP

Prerequisites
You have completed the following activities:
You have logged on to SAP TAO and connected to SAP Quality Center by HP.
For more information, see Connecting to a System Under Test and SAP Quality Center by HP.
You have set up SAP TAO
For more information, see Setting Up SAP Test Acceleration and Optimization.

Procedure
Uploading Default Components from SAP TAO
This activity is required to complete the setup of SAP TAO.
1. In the navigation area of the SAP TAO client, choose Download/Upload .
2. To upload default components to SAP Quality Center by HP, choose Install Default Components to SAP Quality Center .
3. To ensure that the upload is successful, check the designated folder in SAP Quality Center by HP. This folder is specified under Configuration of SAP
TAO under PFA/Path to default components .

Uploading Components from SAP TAO


1.
2.
3.
4.
5.

In the navigation area of the SAP TAO client, choose Download/Upload .


On the left, in the tree structure of SAP TAO, navigate to the components.
Select the components.
To export components, choose Upload to SAP QC .
To ensure that the export is successful, check the corresponding folder in SAP Quality Center by HP, which is the one with the same path as the source.

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 6 of 15

Downloading Components to SAP TAO


1.
2.
3.
4.
5.
6.

In the navigation area of SAP TAO, choose Download/Upload .


On the right, in the tree structure of SAP Quality Center by HP, navigate to the components.
Select the components.
To download the components, choose Download from SAP QC .
In the Browse for Folder window, navigate to the folder in which the components are to be stored.
To create a new folder, do the following:
1. Navigate to the location where you want to create a new folder.
2. Choose Make New Folder .
3. Enter a name for the new folder.
7. In the Browse for Folder window, choose OK .
8. Ensure that the new folder exists and contains the exported components.

1.6 Performing Self-Checks


To ensure that SAP Test Acceleration and Optimization (TAO) is correctly set up and all prerequisites are met, you can perform self-checks. The system verifies,
for example, the compatibility of software versions and system connections.

Prerequisites
You have connected SAP TAO to an SAP-managed system and SAP Quality Center server.

Procedure
1.
2.
3.
4.

In SAP TAO, choose Self-Check .


On the Description tab, choose Start All .
On the Result tab, to display information about a failed self-check, in the context menu of the self-check, choose Display Help .
To find information and fix the problem, you have the following options:
To display development support for SAP TAO, choose SAP Notes 1778083 and 1733109.
To display installation instructions, check the TAO Administrators Guide at http://service.sap.com/instguides under
SAP Components
Test Acceleration and Optimization (3.0.2) .
To display log files, choose
Configuration Log View Log .
If none of the tips mentioned above could help, create a message for SAP support under component SV-SMG-TAO.

SAP

5. To restart one or more self-checks, on the Description tab in the context menu of the self-check, choose Start .

1.7 Composing a Test


Process Flow Analysis (PFA) records a business scenario and generates a new test including the required screen components. They are generated by
Inspection function. For more information, see Creating Screen Components by Inspection.
PFA automates the inspection process and retrieval of screen properties from SAP GUI, CRM Web UI, or Web Dynpro ABAP at runtime. It provides checkpoints
in the recording, which allow the verifications of display texts and properties of some controls. A PFA is based on executable objects. So it is necessary to define
an executable object, first.

Procedure
1.
2.
3.
4.

Creating an Executable Object


Creating a PFA Recording
Further Options for Test Creation
Uploading the Test to SAP Quality Center by HP

1.7.1 Creating an Executable Object


Procedure
An executable object represents an application entry point. The information it contains is used to start the PFA recording, but also to start the test execution. There
are different types of executable objects, depending on the UI technology of the application to test.
1. In SAP Test Acceleration and Optimization (TAO), choose Design .
2. If the transaction code or application that is to be tested is not in the list of executable objects, add it by clicking the new button at the top. A new window
opens. Select the type of application:
Transaction : This is a transaction code for SAP GUI systems, for example VA01. This type is available under Design if you selected SAP ABAP
Backend under Connect .
CRM Web Client Application : This is for CRM Web UI systems. Executable objects require a user role and logical link, for example MD-ACC-CR.
Use the associated buttons to retrieve possible values from the System Under Test.
Web Dynpro : This type is available under Design if you selected SAP ABAP Backend under Connect .
1. Select a Web Dynpro application via the associated button.
2. You can also select a configuration for the selected application.
3. Optionally, set the HTTPS indicator if you want to change the secure protocol (SSL).

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 7 of 15

4. Additionally, you can define parameters for this application as a set of name value pairs.

Note
The Description can be filled in automatically by the system depending on the data in the system under test. This value can be overwritten. The
Priority field is optional.
Only the transaction codes, CRM Web UI applications, and Web Dynpro ABAP applications defined in the system under test can be added to
the list of executable objects.
The system filters the list of available UI technologies according to the selected system under test that has previously been configured under
Connect .
If you have copied the full URL of the application, you can use the Get values from URL button to paste it, and get all fields filled in automatically.
Transaction, CRM Web Client Application and Web Dynpro ABAP types are available only when using the SAP ABAP Backend of the
connection module. For more information, see Connecting to a System Under Test and SAP Quality Center by HP.
ABAP Web URL : This is for BSP and Web GUI (ITS) applications. This type is available in the design module if you selected ABAP Server in the
connection module. Enter the path of your application (this is the last part of the URL of the application).
Web Application : this is for SAP Portal applications, Java Web Dynpro applications, and third-party web systems (like Internet). This type is
available under Design if you selected Web under Connect .
1. The URL type is automatically entered if a web system has been selected under Connect .
If no system has been selected, enter an absolute URL, which contains all information.
If a system has been selected, enter a relative URL, which does not include the left part (protocol, server, optional port, and sometimes
the beginning of the application part).
2. Enter the URL depending on its type and the corresponding server from the connection module. The generated URL is given below showing
what will be used for recording and test execution.
3. If authentication is enabled, specify a login schema, which defines how to login to tested application. This includes the selection by mouse
pointer of the UI controls that are used for the user name, the user password, and the validation button. Additional controls can be selected for
default actions.
You can create a login schema from here; a name must be associated to it. It is this name that must be entered in the Executable Object
Creation window.

Note
Login schema files are stored in the CBASE folder. So, they can be shared among all the testers of a team and can be read at test execution
time.
Description : This entry is optional.
Priority : This entry is optional.
3. Choose Save or Connect .
You can edit an existing executable object or delete it. The system offers also an export function to save the selected executable objects to a file that can be
imported later or on a different machine.

1.7.2 Creating a PFA Recording


Procedure
After you have created an executable object (Creating an Executable Object), you can start to record a business process flow.
1. Select the executable object of the application to be recorded.
All existing process flow analyses for the selected executable object are displayed on the Process Flow Analysis tab. To view all the PFA recordings,
independently of the selected executable object, remove the PFA by Executable Object indicator.
2. To analyze the process flow of the selected executable object, choose New on the Process Flow Analysis tab.
3. Under Details , enter a name for the new analysis. By default, it has the format PFA_<transaction name/role>_<transaction code/logical
link>_<date>_<time>. For example, PFA_CreateSalesOrder_VA01_110609_115959.
4. To start recording a business process flow, choose Start .

Note
It is possible that SAP Logon dialog boxes open for confirmation. To prevent SAP GUI scripting notification popping up during recording or running the
test, in the choose
( SAP Logon Settings ) in SAP Logon and go to
Notify when a script attaches to SAP GUI indicator.

Options

Accessibility & Scripting

Scripting

. Deselect the

A new window opens, with the application in the system under test and the PFA control window. Now you can start recording.
5. Execute the business process.
SAP Test Acceleration and Optimization (TAO) records every user interaction. On each new interaction, a row is added to the list.You can edit this list.
To check the properties of a field during the user interaction, do the following:
1. In the PFA control window, choose Add Checkpoint .
2. In the application window, select the field of interest.
3. In the Check Picker screen area, enter the required values.
For more information about how to identify values, see Viewing Properties of Objects and Locating Objects.
To insert a screen capture during execution, and thus in the execution report, choose Insert screenshot .
To remove one recorded action, select it in the list and choose Remove .
To pause the recording, choose Pause . User interactions during the pause are not recorded. You can resume recording with the same button.
6. When the business scenario to be tested is finished, choose Stop the PFA in the PFA control window.
7. To view the structure and sequence of screens or views in the recording, choose Details .
The structure and sequence of screens are displayed in the Details for Analysis <name of analysis> window. You can also view more details, such as the
technical names of objects.
8. The PFA recording is saved in the SAP TAO repository of the connected SAP Solution Manager system.

1.7.3 Further Options for Test Creation


PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 8 of 15

1.7.3 Further Options for Test Creation


It is recommended, that you create tests with Process Flow Analysis recording. However, note the following options to create or complete a test:
Creating or Updating a Test Manually
Viewing and Locating Objects with the Object Spy
Creating Screen Component by Inspection
Creating Screen Components with UI Scanner

1.7.3.1 Creating or Updating a Test Manually


Procedure
It is recommended that you use Process Flow Analysis (PFA) recording to create a test. However, if the test generated by a PFA recording is incomplete or if you
wish to generate a whole test manually, you can use the default components and screen components.
1. To do so, use the SAP Quality Center link at the top of the TAO window.
2. You can use the manual inspection to generate reusable screen components to compose the output test. For more information, see Creating Screen
Component by Inspection.
To retrieve the URI information for a special UI control, use the Object Spy . For more information, see Viewing and Locating Objects with the Object
Spy.The URI parameter is used to uniquely identify a control on the page. This is mandatory information to set on many component parameters.
For more information, see http://service.sap.com/instguides
SAP Test Acceleration and Optimization <release> Default Components SAP TAO
<release> .

1.7.3.2 Viewing and Locating Objects with the Object Spy


The Object Spy function allows you to retrieve and select properties of a UI control by directly clicking on it. This is useful in the following cases:
When you record or update a test, you can add checkpoints to check the properties of UI controls. You can identify the current object properties and values.
You can locate an object within the UI.
You can get the property values of a UI control to provide some component or test parameters. It is especially useful to get the URI (Unified Ressource
Identifier) of a control. URIs identify a UI control and are frequently used as default component parameters.

Procedure
1. Launch the session in the system under test.

Note
In the SAP GUI systems, only sessions are supported that run in systems in which SAP GUI scripting is enabled.
For information about release-specific limitations in SAP GUI systems, see the TAO Administrators Guide at http://service.sap.com/instguides
SAP Components
SAP Test Acceleration and Optimization .
2. In SAP TAO, choose Object Spy .
3. Depending on the technology type of your system under test, choose the corresponding tab.
4. Select the active session.
In an SAP GUI system, Object Spy displays the program name and screen number.
5. On the Spy tab, choose Spy .
6. To view the technical details of an object, click it in the session.
The properties of the object are displayed in a table in the Object Spy window.
For SAP GUI, you can do the following:
To search for expressions, for example the name of a component, in a text file, save the information about all objects of the current screen, as an
XML file, by choosing Dump All to File on the Advanced tab. Then, you can then use an external text editor to search.
To locate a SAP GUI object, enter the ID of the object on the Advanced tab and choose Locate . The object is highlighted on the SAP GUI.

More Information
For more information, see http://service.sap.com/swdc Release & Upgrade Info Installation & Upgrade Guides
Optimization <current release> Default Components SAP TAO <current release> .

SAP Test Acceleration and

1.7.3.3 Creating Screen Components by Inspection


Procedure
The Inspection process generates screen components that you can add to an existing test. You create a screen component from the definition of a screen or view
containing static objects, in the system under test.
Inspection is supported for SAP GUI, CRM Web Client, and Web Dynpro ABAP UI technologies. It is available in SAP Test Acceleration and Optimization (TAO)
under Design . Note that the Inspection tab is displayed or hidden, depending on the currently selected executable object type.
You can use the Inspection process for manual activities, for example:

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 9 of 15

Updating a particular screen component for which the represented screen has changed.
Within the Change Analyzer functionality, SAP TAO provides an automatic repair approach by using the inspection. For more information, see Repairing
Tests and Components with Change Analyzer.
Creating a screen component which you subsequently want to use to manually compose a test in SAP Quality Center by HP.
If the screens or views contain dynamically-generated objects and fail repeatedly during the Inspection process, you can use the default components to complete
a test. For more information, see Default Components SAP TAO <current release> at http://service.sap.com/instguides
SAP Test Acceleration and
Optimization <current release> .
1. Under Design , select the executable object.
On the Inspection tab, the system displays all screens or views for the selected transaction code, CRM Web UI, or Web Dynpro ABAP application.
If you use the Inspection process for a CRM Web UI application, you can define the nesting level of compounded components (1,2,3,4, or all).
Background: When creating a view component, a CRM Web UI application (CRM component) may use further components. For example, when creating a
business partner, an address component will subesequently be used. The nesting level indicates the number of hierarchically lower levels.
2. If a screen that is relevant to the transaction code, CRM Web UI, or Web Dynpro ABAP application is not in the list, choose New to add it.
3. Select the screens or views for the business process.
4. Choose Inspect .
5. To view the result of the Inspection process, choose View Report .
The report specifies the affected tests. These tests are only consolidated tests that use the newly updated or overwritten screen component and that might
then be obsolete due to a new result of the screen inspection.

Note
To use this report, you must have set the Overwrite Components indicator under

Configuration

Import/Export

If you have maintained a copy of components in the local path and upload components to SAP Quality Center by HP, during configuration, the system
displays OK in the field Inspection , Component Creation , and Uploaded .

1.7.3.4 Creating Screen Components with UI Scanner


Prerequisites
If possible, use the inspection process, which must be prefered to the UI Scanner. For more information, see Creating Screen Components by Inspection.
The standard UI Scanner is available only with SAP GUI. The external UI Scanner that allows some third-party vendors to generate screen components for other
UI technologies.
To use the UI Scanner, activate it in the configuration of SAP Test Acceleration and Optimization (TAO), on the Inspection tab. The UI Scanner tab appears in
the Design module.

Procedure
UI Scanner generates new screen components that can be added to an existing test. It collects information from one screen at a time and sends screen objects to
SAP Quality Center by HP, as a screen component.
You collect information from one screen at a time. The default UI Scanner allows you to create components for SAP GUI screens which are not supported by PFA
or the Inspection process.
1.
2.
3.
4.
5.
6.
7.
8.

Select the executable object.


To view the UI scanner, choose the UI Scanning for SAP GUI tab page.
Enter the required information.
Log on to an SAP system.
Ensure that all other sessions have been closed.
Start the transaction.
Navigate to the screen that you want to scan.
You have the following options:
To use the default UI Scanner process and launch SAP QuickTest Professional by HP, on the UI Scanning tab page, choose Default .
To use custom QTP tests when using with the UI Scanner process, on the UI Scanning tab page, choose External .
For more information, see the SAP TAO How-to Guide at http://service.sap.com/instguides SAP Components
SAP Test Acceleration and
Optimization .
9. Execute the UI scanner.
10. Stop the SAP Test Acceleration and Optimization UI scanner.
For more information, see the Administrators Guide http://service.sap.com/instguides

SAP Components

SAP Test Acceleration and Optimization

1.7.4 Uploading the Test to SAP Quality Center by HP


Procedure
After a recording with Process Flow Analysis (PFA), you need to generate a test and the required components from the recording and upload them to SAP Quality
Center by HP project.
1. In SAP Test Acceleration and Optimization (TAO), select the PFA recording under Design and choose Upload .
2. A data table containing the values entered by the user during the PFA is created at the location specified during TAO configuration. You can analyze the
report to identify the components that were inspected and uploaded.
The screens used during the PFA recording are inspected automatically during the upload process. The corresponding screen components are updated in
SAP Quality Center by HP.

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 10 of 15

Note
If during test execution, a screen component fails, try to select the Do not use screen components option in TAO under
However, it is recommended that you use screen components when possible.

Configuration

PFA

3. Optional: To review the recording in SAP Quality Center by HP, do the following:
1. Under Design , select the PFA recording and choose View Upload Report .
2. Choose Test Name and log on to SAP Quality Center by HP.
3. Choose the Test Script tab.

1.8 Consolidating a Test


Tests that you have generated from an uploaded PFA recording or by manual creation can be joined into a consolidated component in SAP Test Acceleration and
Optimization (TAO). You can use it in a consolidated test, to speed up test execution.

Example: Consolidated test consisting of one test with several components that are consolidated into one.

This is also convenient when you define a scenario test that contains several tests. For example, if tests test A and test B are related to a scenario, you
consolidate the tests into components and use them in the consolidated test scenario test. This makes test execution faster.

Example: Consolidated test consisting of two tests, each with several components that are consolidated into one.

Prerequisites
You have logged on to the system under test, SAP Quality Center by HP, and SAP Solution Manager, using SAP TAO.
For more information, see Connecting to a System under Test and SAP Quality Center by HP
You have saved the test in SAP Quality Center by HP.

Procedure
In the navigation area of SAP Test Acceleration and Optimization client, choose Consolidate .
Then, you can either consolidate a test directly, or consolidate a test by component.

Consolidating a Test Directly


1. On the All Tests or Invalid Tests tab, select the test.
All members of the selected tests are added to the consolidation list, automatically. All tests belonging to the same hierarchy are consolidated.

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 11 of 15

Note
You can make a note of the tests to be consolidated, using the Invalidate function. A red traffic light besides the test indicates that the test
requires consolidation on the All Tests tab.
The number of test cases that require reconsolidation is indicated beside the folder on the Invalid Tests tab.
If you want to consolidate one test at a time, enable individual selection during configuration. Avoid this option because it leaves the test hierarchy
in an unpredictable status.
2. Choose Add to consolidation list .
The Identify dependent test function views the dependent tests before they are added to the consolidation list.
3. On the Consolidation List tab, select the tests to consolidate.
4. Choose Consolidate .
5. In the SAP TAO confirmation window, choose Yes .
6. To view the consolidation report, choose View Report .
7. To view more details of the component, choose View in the consolidation report.

Consolidating a Test by Component


You can search for a test by component if you update a component and need to propagate the update to the tests that use it. For example, if you modify
component 1, which is used in 10 tests, you can select this component. The system shows the tests using this component, you can select and consolidate them.
1. On the All Components tab, select a component.
The system displays a list of tests that use the component.
2. To consolidate, select the tests.
3. Choose Add to consolidation list .
4. On the Consolidation List tab, select the tests to be consolidated.
5. Choose Consolidate .
6. In the confirmation window, choose Yes .
7. To view the consolidation report, choose View Report .
8. To view more details of the component, choose View in the consolidation report.

1.9 Executing a Test


This procedure tests a business process in SAP Test Acceleration and Optimization (TAO). You view the test execution logs that contain the status of the test
execution and provide information for fixing invalid test cases.

Procedure
1. You have the following options:
Using the Run and Report Module in TAO
Using SAP Quality Center by HP
Displaying Execution Reports

1.9.1 Using the Run and Report Module in TAO


With Run and Report module of SAP Test Acceleration and Optimization (TAO) you can execute a test and, simultaneously, generate Technical Bill Of Material
(TBOM). A TBOM contains the list of technical objects that are used during the test execution. The TBOM can then be used by the Business Process Change
Analysis (BPCA) process to detect which test and screen components are impacted by a change on the System Under Test. This reduces both test maintenance
and the test execution scope. For more information, see Repairing an Obsolete Test Component.

Prerequisites
In TAO, you have entered the required data under Run on the Run & Report tab during configuration, for normal execution.
You have consolidated the test for faster execution
To create or update the TBOM during test execution, you have completed the following activities:
Ensuring authorization for SAP Solution Manager and the SAP system under test.
Ensuring trusted RFC connections in both directions between SAP Solution Manager and the managed system on which the TBOM creation traces
are created.
Enabling SAP GUI scripting to execute tests in SAP Quality Center by HP.
Activating TBOM functionality during configuration.
Ensuring that the system details in the data table match the details in a logical component of a mapped transaction in a process step.
If you enable the TBOM functionality, at each selection of a test in SAP Quality Center by HP, the associated information and the confirmation of the
TBOM existence is retrieved from the SAP Solution Manager backend.
Creation of an appropriate business blueprint structure in SAP Solution Manager.
Verifying that the executable item is configured correctly, if you are creating a TBOM for the first time.
Ensuring that the system under test is in the logical component of the associated item in the business process hierarchy.
If you encounter problems creating a TBOM for the first time, try to create a TBOM directly from the Business Blueprint in SAP Solution Manager
(transaction SOLAR01), to see if the problem is related to BPCA or to SAP TAO.

Procedure
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 12 of 15

1. Update Iterations
1.
2.
3.
4.

In the navigation area of SAP TAO, choose Consolidate .


To update the iterations in the data table, choose Update Data Table .
Update the iterations.
To update the iterations in SAP Quality Center by HP, choose Update Iterations .

2. Associate a Test for TBOM Creation (optional)


1. In the navigation area of SAP TAO, choose Run and Report .
The tests that are available in the SAP Quality Center by HP are displayed in a tree.
2. Select the test.
3. To create or modify an association between the test and an SAP Solution Manager project, for TBOM creation, perform the following:
1. Choose Associate for TBOM creation .
2. In the TBOM Association Form window, select a project.
3. Select the item in the business process hierarchy.
4. Choose Associate .
The TBOM is available on TBOM tab and business blueprint. The test is enabled for execution.

3. Execute the Tests


To execute a single test, do one of the following:
To execute the test without updating TBOM, choose Execute .
To execute the test and update TBOM, choose Execute and Update TBOM .
The details of TBOM are displayed on the TBOM tab. The padlock after the name in the information area at the top indicates whether the run list can
be modified from SAP Test Acceleration and Optimization. Only run lists created from SAP Test Acceleration and Optimization can be modified,
otherwise data could be lost.
To execute multiple tests at the same time, do the following:
1. Choose the Tests tab page.
2. To select all the tests in a folder, select the folder, otherwise choose a test.
3. In the context menu, choose Add to Run List .
The tests are transferred to the Run List tab.
4. On the Run List tab, select the tests to be executed.
5. To create TBOM during execution, set the Create TBOM indicator.
If this is not the first time the test is executed and if there already is a TBOM, it is updated.
6. Choose Execute .

4. Analyze Test Execution


For more information, see Displaying Execution Reports.

1.9.2 Using SAP Quality Center by HP


Procedure
To execute a test, it is recommended that you use the Run and Report module in SAP Test Acceleration and Optimization (TAO). However, you can start an
individual test execution from SAP Quality Center by HP. With the Test Set definition, it also allows scheduling test execution.
1. In SAP TAO, choose SAP Quality Center .
2. Choose
Testing Test Plan
and select a test.
3. On the right hand side, select the Test Script tab and choose

( Run or Debug Test ) execute the test.

1.9.3 Displaying Execution Reports


You can display information about an executed test.

Procedure
Proceed as follows:
1. To display execution log files, choose Run and Report in SAP Test Acceleration and Optimization (TAO).
2. On the Tests tab, select the test.
A list of reports and the test execution status are displayed under Reports .
3. Double-click a report to analyze it.
A detailed report is displayed on a new tab. You can adjust the details (columns) to be displayed in a report, using the secondary mouse button. The
column Run as/in indicates whether the test was executed from the test itself or from the test set.
4. To view an HTML version of the report, choose HTML Report .
You can navigate to the log folder from the HTML report for further analysis.

1.10 Repairing Tests and Components with Change Analyzer


PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 13 of 15

You use this procedure if a component has been affected by a change in the UI or business process, because of new SAP patches or custom development.
SAP Test Acceleration and Optimization (TAO) identifies and regenerates the screen components and consolidated components if necessary.
This procedure is supported only for SAP GUI, CRM Web Client, and Web Dynpro ABAP UI technologies.

The graphic illustrates how test objects are calculated after a system software update, using Business Process Change Analysis (BPCA).

After an update or upgrade of system software, you want to reduce the effort of new test setups and only want to run those tests that are really required, that is, for
business process steps where something has changed. Which tests can you reuse and where do you need to create new tests?
During test execution in TAO, under Run and Report , you can activate the technical bill of materials (TBOM) traces to list the objects that are used by the test.
You associate the TBOM to the test that contains the relevant business process step. Business Process Change Analysis (BPCA) compares the list of objects
that were affected by the update (coming from the set of transport requests) to the TBOMs. It identifies the following:
Screen components and consolidated components that require an update
Tests that need to be updated
Tests that need to be run

Prerequisites
You have an analysis result in the BPCA of the SAP Solution Manager system that is connected to SAP TAO.
For more information, see the Business Process Change Analyzer documentation on SAP Help Portal at
release> Test Management .

http://help.sap.com

SAP Solution Manager <current

You can only regenerate components that were created by the Inspection process or Process Flow Analysis. You cannot regenerate components that were
created with the UI scanner or externally.

Procedure
1. In the navigation area of SAP TAO, choose Change Analyzer .
2. Enter the BPCA Result ID .
You can search for it by project or solution. Only one result can be selected for further processing.
3. To view the components or tests that are affected by the change, choose Change Impact Analysis .
The system displays the affected components and tests on the Affected Components and Affected Tests tabs.
4. To view details of the component, choose Action Log... in the context menu.
5. If the impact on a component is Probably Corrupt because of changes to the UI, do the following:
1. On the Affected Components tab, select the components that need to be regenerated.
2. To regenerate the components, choose Repair .

Note
If the component was created with UI scanner, use the UI scanner to regenerate it. It will be updated if it has not been renamed after creation. After
regenerating, you can change its status to Checked , in the BPCA context menu.
3. On the Repair Tasks tab, choose Start Repair Task .
You can view the result of repaired components and subcomponents.
4. Choose Affected Tests tab.
5. Perform one of the following:
Add the affected test to the run list or test set or to an existing test set from SAP Quality Center by HP.
Create a new PFA recording to create a new test set in the Test Lab of SAP Quality Center by HP.
If you are creating a new test set, SAP TAO sets the name according to the settings that were made on the Change Analyzer tab , during
configuration.
6. If the impact on a component is Probably Impacted because of changes to a business process or transaction, do the following:
1. In SAP TAO, choose Open the Component in the SAP Quality Center User Interface .
2. Validate the affected components.
3. IN SAP TAO, under Change Analyzer , set the status of the component to Checked .

1.11 Displaying Components and PFA Recordings in Repository


PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 14 of 15

1.11 Displaying Components and PFA Recordings in Repository


You use this procedure to view details of components and Process Flow Analyzer (PFA) recordings stored in the SAP Solution Manager repository of SAP Test
Acseleration and Optimization (TAO).

Prerequisites
You have logged on to the system under test, SAP Quality Center by HP, and SAP Solution Manager.
For more information, see Connecting to a System under Test and SAP Quality Center by HP.

Procedure
Displaying Details of Components
1.
2.
3.
4.

In SAP TAO, choose Repository .


Choose the Component Explorer tab.
Enter the required information.
Choose Display Components .
The system displays a list of components and their details. You can sort the list by parameters, such as component, system, or client.
5. To group the data, select Show Groups .

Displaying Details of PFA Recordings


1.
2.
3.
4.
5.

In SAP TAO, choose Repository .


Choose the PFA Explorer tab .
To add more search criteria, choose Add more .
Enter the required information.
Choose New Search .
The system displays a list of PFA recordings. You can filter this information by parameters such as the analysis name, client, and system.

PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.

Page 15 of 15

Vous aimerez peut-être aussi