8-Test Automation Framework 20160729
8-Test Automation Framework 20160729
8-Test Automation Framework 20160729
This presentation outlines our general product direction and should not be relied on in making a
purchase decision. This presentation is not subject to your license agreement or any other agreement
with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and SAP’s
strategy and possible future developments are subject to change and may be changed by SAP at any
time for any reason without notice. This document is provided without a warranty of any kind, either
express or implied, included but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally of grossly negligent.
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 2
SAP Solution Manager – Test Suite
Capabilities
Solution Documentation Test Plan Management Test Execution Test Management Analytics
• Executable Library • Test Plan • Manual Test Execution • Gap reports
• Process Step Library • Test Packages • Automated Test Execution • Status reports
• Business Processes • Test Sequences • Defect Management • Progress reports
• Test Cases • Tester assignment • Dashboard
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 4
Automated Tests
Test Configuration and its building blocks
Composite Tests for E2E business processes covering SAP and non-
SAP process steps CBTA 1 CBTA 2 HP UFT 3 CBTA 4
SAP customers have a choice of test automation tools integrated with SAP Solution
Manager through the Test Automation Framework
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 5
Test Automation with CBTA
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 6
Typical pain points with test automation
Requires high effort and expert skills to repair Re-use of test components allow automated update of test
scripts that use same components
Test Data variant get outdated due to changes in SUT Test data management via central Test Data Container
master data assigned to test script allows central update of data without
the need to change each test data variant.
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 7
Advantage via re-use of test data via TDC
Test Data
Test Configuration 1
Variant 1 Test Script SAP ERP
DEV
Test Configuration 3
Test Data
Variant 3 Test Script
Test Data
Test Configuration 4
Variant 4 Test Script
1. ‘Material ID’ has been changed in managed system
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 8
Advantage via re-use of test data via TDC
Test Data
Test Configuration 1
Variant 1 Test Script SAP ERP
DEV
ABC 13 100
Test Data
Test Configuration 4
Variant 4 Test Script
1. ‘Material ID’ has been changed in managed system
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 9
Advantage via re-use of test data via TDC
Test Data
Test Configuration 1
Variant 1 Test Script SAP ERP
DEV
ABC
ABC-1 13 100
Test Data
Test Configuration 4
Variant 4 Test Script
1. ‘Material ID’ has been changed in managed system
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 10
Test Data Assignment Wizard
to assign test data stored in TDC data to Test Configuration
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 11
Test Data Management
Example how to use Test Data Container for multiple tests
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 12
Test Data Management – Step by Step
Test Data Design Identify Test Configurations that uses same or similar test data parameters
Create Test Data Container (TDC)
Import parameters from Test Scripts or create them manually
Test Data Definition
Get test data variants based on current data in System under Test
Enter data variants in Test Data Container or upload via spread sheet
Good naming convention for TDCs and variants will help for later assignment
Test Data
Assign Test Data Container to Test Configuration
Assignment
Mapping of parameters between Test Data Container and Test Configuration
Assign TDC variants to Test Configuration variants
Execute tests
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 13
Advantage via re-use of screen components
Screen-Header 1
Test Data
Test Configuration 1 Test Component 1
Variant 1 Test Script
Sub-Screen 1
Test Component 2
Test Configuration 2
Test Data
Variant 2 Test Script
Test Component 3
Test Configuration 3
Test Data
Variant 3 Test Script
Test Component 4
Test Data
Test Configuration 4
Test Component 5
Variant 4 Test Script
1. ‘Subscreen 1’ has been changed in managed system
2. Multiple test scripts that process this Subscreen get outdated Test Component 6
Test Configuration 5
Test Data
Variant 5 Test Script
Test Component 7
Screen Components are available for SAP GUI, CRM Web UI, ABAP WebDynpro
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 14
Advantage via re-use of screen components
Screen-Header 1
Test Data
Test Configuration 1 Test Component 1
Variant 1 Test Script
Sub-Screen 1
Test Component 2
Test Configuration 2
Test Data
Variant 2 Test Script
Test Component 3
Test Configuration 3
Test Data
Variant 3 Test Script
Test Component 4
Test Data
Test Configuration 4
Test Component 5
Variant 4 Test Script
1. ‘Subscreen 1’ has been changed in managed system
2. Multiple test scripts that process this Subscreen get outdated Test Component 6
Test Configuration 5
Test Data
Variant 5 Test Script
3. For Test Script 1 inspection is triggered and Test Component
2 and all related test scripts are updated
Test Component 7
Screen Components are available for SAP GUI, CRM Web UI, ABAP WebDynpro
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 15
New simplified adjustment of existing CBTA scripts
Execute To Step and Record additional steps to be inserted or replace existing steps
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 16
Improved Test Composition for CBTA scripts
New possibility to reference existing CBTA scripts as child in a parent CBTA script
Allows to use IF and LOOP Default Components for CBTA not only inside CBTA scripts but also
on top of CBTA scripts.
Composite Test Scripts are still required to compose scripts with different test tools (e.g. 3rd party)
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 17
Test Automation Framework in SAP Solution Manager
Steps to create automated test script using HP UFT
Test Configuration
Test Script Test Data System Data Test System
Convenient test script creation through seamless integration between SAP Solution
Manager and partner test automation tools
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 18
Test Execution
Execution of automated Tests
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 19
Test Automation Framework
Typical approach to execute unattended Automated Tests
Frontends
- Physical Client PCs, Laptops
- Windows Terminal Server / Citrix clients / virtual machines
with installed SAPGUI , Internet Explorer, CBTA, optional 3rd party tool
Execution performed
unattended e.g.
during night
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 20
© 2016 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 or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company 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.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop
or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time
for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-
looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place
undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Early Knowledge Transfer Customer 21