Professional Documents
Culture Documents
Move Smoothly Into Production After Software Maintenance and Upgrades
Move Smoothly Into Production After Software Maintenance and Upgrades
Table of Contents
4
Start with SAP Solution Manager and SAP Enterprise Support Looking to SAP Enterprise Support Services
Automating Tests Building Automated Tests with the Test Automation Framework Facilitating Test Creation for Business Analysts Supplying Test Data Analyzing the Impact of Change and Optimizing Test Scope
12
Adding Up the Benefits Examining Specific Approaches to Test Management Realizing Increased Efficiencies Exploring Related SAP Enterprise Support Services Summarizing SAP Enterprise Support Services Learning More
Software landscape documentation SAP CRM Development Test Production SAP ERP Development Test Production Non-SAP business applications SAP Solution Manager providing the single source of truth
SAP Enterprise Support services help you implement and maintain a careful test management program that meets your needs for accuracy, completeness, and efficiency.
Figure 3: Easy Access to Test Scripts in SAP Solution Manager for Manual Testers
Automating Tests
Automation of functional testing brings you significant savings in cost and time while reducing the risk of human error inherent in manual testing. SAP and its partners offer a variety of test automation applications for the functional testing of business processes. The test automation framework in the current release of SAP Solution Manager provides an infrastructure that allows you to integrate the test automation application of your choice. See Figure 5 for examples.
SAP Solution Manager 7.1 Test planning Test case assignment Business blueprint Work center test management Test plan generation Tester assignment Test data provisioning SAP Test Data Migration Server Test execution Work center test management Manual tests Automated tests Test status reporting Work center test management Test workbench Reports from SAP NetWeaver BW Partner logs and reports
Test automation framework Test script creation Test system assignment Test data assignment Component-based test automation (CBTA) HP QTP Worksoft Certify Extended computer-aided test tool (eCATT) Other third-party test automation tools
Automation of functional testing brings you significant savings in cost and time while reducing the risk of human error i nherent in manual testing.
Building Automated Tests with the Test Automation Framework The test automation framework in SAP Solution Manager currently supports integration of the SAP and third-party applications listed in Table 1. Additional vendors of test automation tools are currently certifying their applications with the test automation frame work in SAP Solution Manager. See http:/ /service.sap.com /testing on the SAP Support Portal destination for details on the testing tools listed in the table.
You can choose a combination of SAP and partner test automation applications to cover business processes from start to finish in software landscapes that include both SAP and non-SAP solutions. For example, you can use component based test automation (CBTA) to automate transactions that use the SAP GUI and the Web client user interface of SAP CRM. And you can use HP QTP to automate testing for other steps in your business process that are based on non-SAP solutions, applications you developed in-house, or SAP solutions with user interfaces other than SAP Solution Manager. Figure 6 shows a typical integrated approach to test automation.
Table 1: SAP and Third-Party Applications eCATT The extended computer-aided test tool (eCATT) from SAP covers the SAP GUI user interface and applications developed in the Web Dynpro development environment and ABAP programming language. This tool is appropriate for technical experts and requires no extra license with an SAP Enterprise Support agreement. Component-based test automation (CBTA) functionality provided by SAP Solution Manager covers the SAP GUI as well as the Web client user interface for the SAP Customer Relationship Management (SAP CRM) application. This tool is appropriate for business analysts and technical experts and requires no extra license with an SAP Enterprise Support agreement. HP Quick Test Professional (HP QTP) covers SAP and non-SAP user interface technologies. This tool is appropriate for business analysts and technical experts. Two licenses are included with an SAP Enterprise Support agreement. This test automation application from Worksoft covers SAP and non-SAP user interface technologies. This tool is appro priate for business analysts and technical experts. The SAP Enterprise Support agreement does not include licenses.
CBTA
SAP Solution Manager Test configuration Test script Test data System data
HP QTP
Test system SAP software Non-SAP software 2 Test script recording during business process execution
1 Start of HP QTP recorder 4 Test script with parameters stored in SAP Solution Manager 3 Automatic parameter creation for input fields of the business transaction
Facilitating Test Creation for Business Analysts No matter which tool you choose, SAP Enterprise Support can help keep the creation of an automated test a straightforward task well within reach of a business analyst. The process begins with SAP Solution Manager in its work center for test management. The user first selects a step from the business process to be tested. After providing a few attributes, he or she launches the test automation software to create the test script. The user typically executes the business process directly in the assigned test system. The test software then records the steps performed and data entered and creates the test scripts auto matically. SAP Solution Manager provides the repository for all test scripts. Modern test tools can even generate input parameters for fields of the business transaction that require data input. These parameters help the test engineer assign appropriate test data later. You can assign test scripts, along with suitable test data and information about the software being tested, to the appropriate business process or step in SAP Solution Manager (see Figure 7). This approach helps spotlight required test scripts when a testing manager defines the test scope using standard or risk-based approaches.
Supplying Test Data Selecting and delivering suitable test data have traditionally been complex and time-consuming tasks. SAP Solution Manager helps you address these major challenges in the preparation of automated regression tests. Selecting Appropriate Data The first step is updating the test system with suitable master data and configuration data. Then you must select appropriate transactional data. SAP Test Data Migration Server software helps you refresh data quickly from selected source systems, such as your production or quality assurance systems. You can also update the test system manually with required data. Either way, your test system stays lean and efficient. Provisioning Data in Configurations with Automated Tests For test configurations that include automated test scripts, you must assign test data according to specified input param eters. Test data containers (TDCs) in SAP Solution Manager help your test engineers structure the data properly. Business analysts can plan or upload test data into TDCs to satisfy the input parameters of your automated test scripts.
Business process Test script CBTA, eCATT HP QTP Other third-party test automation tools Test data Test data container
A centralized approach using TDCs, as illustrated in Figure 8, offers a high degree of reuse, since multiple test configurations can consume test data from the same TDC. This approach also facilitates efficient change management, since you adjust data only once centrally and the software propagates the change to all occurrences of the affected records.
Executing Tests The tester can launch an automated test directly from the tester work list in SAP Solution Manager. As shown in Figure 9, test configuration functionality selects the test data and transmits it to the test automation application. The test script then runs, logging on to the test system and starting the business process controlled by the test script. Test results and logs are stored in SAP Solution Manager.
2TDC: Test data planning Test data entry Test data upload
Who: Test engineer How: Create TDC parameter for all input fields of your business process used in test script
Who: Business analysts How: Use test data stored in a TDC for multiple test configurations
Tester work list in SAP Solution Manager 5Test results and logs
Test script / HP QTP 4 Logon and automated business process execution
1User starts test execution Test configuration Test script Test data System data
SAP software
Non-SAP software
3 Test execution: handover of test script, test data, system under test (SUT) info
SAP and its partners offer a variety of test automation applications for functional testing of business processes.
Analyzing the Impact of Change and Optimizing Test Scope The effort for regression testing rises significantly when you deploy large software changes, as with a major custom development or an SAP support or enhancement package. Such a change can impact virtually all your critical business processes. The business process change analyzer (BPCA) in SAP Solution Manager provides a risk-based approach to identifying test scope, helping your test managers control resource usage efficiently to provide full coverage. An initial change impact analysis helps you trace the potential effect of the change on your core processes. Then the business process change analyzer illustrated in Figure 10 helps you
ptimize test scope by ranking process steps according to o their impact. The BPCA also recommends a sequence of steps that reduces the amount of testing effort while enabling coverage of critical processes. Instead of testing all impacted business processes, the test manager can narrow the scope to test all changed SAP soft ware objects at least once. The manager can also select lower test coverage, for example 99%, which significantly reduces the testing effort. To mitigate risk, the manager can rely on a procedure that forces all critical business processes and assigned tests that are identified in the must-include area into the test scope. The BPCA in SAP Solution Manager automatically generates a test plan that includes the reduced set of test cases. Figure 10 outlines this approach.
Figure 10: Test Scope Optimization with the Business Process Change Analyzer
11
Summarizing SAP Enterprise Support Services SAP Enterprise Support services for test management include: Methodologies for test management Applications for test planning, management of manual and automated tests, test data management, and test execution Applications for status analysis and reporting, as well as change impact analysis and test-scope optimization Services for road-map identification, knowledge transfer, and accelerated application setup and configuration Reference information For a list of online Meet the Expert sessions and guided implementations, please log on to SAP Support Portal at http:/ /service.sap.com/esacademy. Learning More For more information, contact your SAP representative, visit SAP Support Portal at http:/ /service.sap.com/support, or download these documents: Best Practice/Next Practice: Regression Testing of SAP-centric Business Processes containing five customer use cases and nine best-practice recommendations at www.sdn.sap.com/irj/sdn/alm-testmanagement on SAP Community Network Application Lifecycle Management at http:/ /service.sap.com/alm on SAP Support Portal Test Management at http:/ /service.sap.com/testing on SAP Support Portal SAP Enterprise Support Overview under SAP Enterprise Support on the SAP Service Marketplace extranet
Best Practices for Regression Testing Design a more effective test management program by integrating the following best practices: Lean documentation of important business processes Creation of lean test systems Automation of tests for critical business processes Comprehensive test data for automated regression tests Creation of step-by-step manual tests Change impact analysis and risk-based test-scope determination Unattended execution of automated regression tests Manual test execution with guidance for business users Orderly change management
You can choose a combination of SAP and partner test automation applications to cover business processes from start to finish in software landscapes that include both SAP and non-SAP solutions.
13
www.sap.com/contactsap