Manager
Learn a step-by-step procedure for defining and transferring test requirements from SAP Solution Manager to SAP Quality Center by HP. Create test components in SAP Test Acceleration and Optimization and execute the test cases in SAP Quality Center.
Key Concept
The business process testing model supports the workflow of the user interface design that allows non-technical experts to work on tests with automation engineers. In doing so, they can design quality assurance tests early in the development cycle that can allow you to maximize the quality and efficiency of the testing process.
An automated testing solution requires configuration and system integration to run smoothly. While this can take a lot of work, the end result is fewer errors, fewer manual procedures, and less cost in fixing system issues. I’ve been showing you how to configure and set up just such an automated testing solution using SAP Solution Manager and other systems, starting with my two previous articles, “Connect SAP Solution Manager to SAP Quality Center as Part of Your Automated Testing Solution” and “Install and Set Up SAP TAO and HP QuickTest Professional as Part of your Automated Testing Solution.”
In the first article, I showed you step by step how to create a project in SAP Solution Manager and SAP Quality Center by HP and how to connect projects to both applications. In the second article, I showed you how to install and configure SAP Test Acceleration and Optimization (SAP TAO) on your client and to set up HP QuickTest Professional. I also walked through how to transfer preconfigured components from SAP TAO to SAP Quality Center.
In this article, I will show you how to define and transfer test requirements from SAP Solution Manager to SAP Quality Center and how to create test components through SAP TAO. I also will show you step by step how to execute tests in SAP Quality Center and transfer test results from SAP Quality Center to SAP Solution Manager.
Prerequisites include:
- SAP Solution Manager enhancement package 1 Support Package 25 or later
- SAP TAO 2.0 or later
- SAP Quality Center by HP 10 or later
- HP QuickTest Professional including SAP Add-In
In my previous two articles, I walked you through these seven steps:
- Step 1. Create a project in SAP Solution Manager
- Step 2. Create a project in SAP Quality Center
- Step 3. Connect the SAP Solution Manager project to SAP Quality Center
- Step 4. Install and configure SAP TAO on your client
- Step 5. Configure SAP TAO settings
- Step 6. Transfer preconfigured components from SAP TAO to SAP Quality Center
- Step 7. Create an application area in HP QuickTest Professional
To perform automated testing, you need to follow seven more steps:
- Step 8. Define test requirements in the Business Blueprint to SAP Quality Center
- Step 9. Transfer requirements from SAP Solution Manager to SAP Quality Center
- Step 10. Create test components via SAP TAO
- Step 11. Verify the SAP TAO script is uploaded and transferred to SAP Quality Center
- Step 12. Consolidate the create sales order transaction in SAP TAO
- Step 13. Execute a test transaction in SAP Quality Center
- Step 14. Transfer test results from SAP Quality Center to SAP Solution Manager
Step 8. Define Test Requirements in the Business Blueprint to SAP Quality Center
SAP Quality Center and SAP Solution Manager together cover the testing process from test requirements where you can transfer requirements from the business blueprint (such as test objects, business requirements documents, transactions, and specifications) to SAP Quality Center. Then SAP TAO inspects SAP GUI screens and transactions and uploads components and tests in SAP Quality Center that are going to be tested in SAP Quality Center.
First you define test objects and business requirements from the Business Blueprint to transfer to the SAP Quality Center project. Use transaction SOLAR01 and press Enter. In the Business Blueprint Structure screen, navigate to Business Scenarios > Sales and Service Processes in ERP > Business Processes > Standard Sales Order Processing in ERP. Click the Transfer to SAP QC by HP tab (Figure 1). Select a row and click the insert several lines icon (circled, with the green plus sign). A new dialog box appears; check the Assign Object as Test Object box and then click the green check mark icon.

Figure 1
Assign a test object
The test object window appears (Figure 2). Check the box to select which test transactions you want to transfer to SAP Quality Center and then click the green check mark icon.

Figure 2
Select the test transaction to transfer to SAP Quality Center
The test objects now appear on the Transfer to SAP QC by HP tab (Figure 3). Perform the same step as before to define the business requirements. On the Transfer to SAP QC by HP tab, click the insert several lines icon. A new dialog box appears and this time you check the Assign Document as Business Requirement Document box. Click the green check mark icon.

Figure 3
Assign a document as a business requirement document A
The test object window appears (Figure 4). Check the box next to the documents that you want to transfer to SAP Quality Center (e.g., the Standard Sales Order entry) and click the green check mark icon.

Figure 4
Select documents to transfer to SAP Quality Center
Step 9. Transfer Requirements from SAP Solution Manager to SAP Quality Center
Once all test objects and documents are assigned on the Transfer to SAP QC by HP tab, you need to transfer test requirements from SAP Solution Manager to SAP Quality Center. Select all Business Requirements and Test Objects under Transfer Type, then follow Business Blueprint > Send Data to Quality Center... (Figure 5).

Figure 5
Send data to SAP Quality Center
The Select Substructure window appears (Figure 6). Select all elements by expanding the structure tree, then click the green check mark icon to start the transfer from SAP Solution Manager to SAP Quality Center. Depending on the number of test requirements, this process might take few minutes. Click the save icon to confirm all the settings performed.

Figure 6
Transfer requirements
Display the Test Requirement in SAP Quality Center
Verify that test requirements are transferred from SAP Solution Manager to SAP Quality Center by going to the SAP Quality Center home page. Enter the login name and password, click Authenticate, and then enter the domain and project name and log in. Go to the Requirements section and follow menu path Requirements > Solution Manager Blueprints > Functional Testing-SolMan,QC and TAO > Business Scenarios > Sales and Service Processes in ERP > Business Processes > Standard Sales Order Processing in ERP to see the test transactions and documents transferred from SAP Solution Manager to SAP Quality Center (Figure 7).

Figure 7
Display transferred requirements
To open the test documents that were transferred from SAP Solution Manager on the left side, click the attachment and the Requirement Details window opens. Double-click the link. You then need to log in to the SAP Solution Manager server so you can view the test documentation. Note that SAP Solution Manager is the central documentation repository and only the link for test documents is sent from SAP Solution Manager to SAP Quality Center.
Step 10. Create Test Components via SAP TAO
You can then use SAP TAO to test ERP processes. SAP TAO allows you to streamline draft test cases and test components of business process testing by uploading test scenarios and components to SAP Quality Center. To create test components, you must connect the managed SAP system and the SAP Quality Center server.
Connect the SAP Managed System and SAP Quality Center Server
Launch the SAP TAO client and select Connect in the navigation menu. In the Managed SAP System screen, enter the Client number, User ID, Password, and Language. Then click the Test SAP Connection button (Figure 8). Then click the Save button. In the SAP Quality Center by HP screen, enter the Server URL, User ID, and Password and click the Login button. Then enter the Domain and Project name and click the Connect to Project button. Save again.

Figure 8
Connect to a managed system and the SAP Quality Center server
Self-Check
The purpose of the Self-Check function is to verify a correct installation and configuration of SAP TAO. To do this, click the Self-Check button and click the Start All button (Figure 9). The results are shown in a new tab page. All the checks should be green and should pass with or without warnings.

Figure 9
Self-check the installation
Create Sales Order Test Scripts Using SAP TAO
A sales order contains the details of the customer, customer address, delivered materials, price of the materials, requested delivery date, and shipping date. It is used by organizations to approve, track, and process the shipment orders of customers. Transaction VA01 represents sales orders in the SAP system. To test a sales order, use process flow analyzer (PFA) in SAP TAO. PFA generates and records transaction and screen sequences of a complete business flow. Go to the Process Flow Analyzer tab in SAP TAO, click the add transaction icon and enter VA01 in the pop-up screen that appears (Figure 10). Click OK.

Figure 10
Add transaction VA01
Transaction code VA01 appears in the Transaction List (Figure 11). Select VA01 and write the name Create Sales Order in the New Analysis box. Then click the Start button.

Figure 11
Create a sales order transaction
The PFA Control window appears (Figure 12). This means that recording started for transaction VA01. Do not stop the PFA until you are done creating the sales order in SAP ERP.

Figure 12
Set PFA control
SAP TAO automatically launches SAP ERP and the Create Sales Order screen appears (Figure 13). Enter the appropriate values for Order Type, Sales Organization, Distribution Channel, and Division. Then press Enter.

Figure 13
Create a new sales order screen
The Create Standard Order screen appears (Figure 14). Enter the appropriate values for Sold-To Party, Ship-To Party, Material, and Quality. Then press Enter.

Figure 14
Create a standard order
All the information for blank fields in the Create Standard Order screen (e.g., for the Sold-to Party value you see the name of the organization, at the Material you see the description of the material) automatically fills in. On the top of the screen, click the save icon. At the bottom of the screen a message appears saying the Create Sales Order transaction and the sales order number were successfully created. Open the PFA Control window and click the Stop the PFA button (Figure 15).

Figure 15
Stop PFA control
SAP TAO then creates the analysis and ERP screens used to create the VA01 transaction. To view the VA01 structure flow, follow these steps. In the PFA, on the right side in Existing Analysis select the Create Sales Order transaction that you just created. Click View Structure and the PFA Report window appears (Figure 16). For more details, you can expand the screens and subscreens of the process flow. Then click the Close button.

Figure 16
View structure summary
Upload Transaction VA01
To upload the Create Sales Order transaction in SAP Quality Center, in the Existing Analysis screen select Create Sales Order and click the Upload button (Figure 17). You get this screen by going to the PFA tab in SAP TAO. After you create transaction VA01, you can upload it.

Figure 17
Upload the create sales order transaction
The SAP TAO message appears to confirm the upload analysis to SAP Quality Center (Figure 18). Click the Yes button.

Figure 18
Confirm the upload analysis to SAP Quality Center
Step 11. Verify the SAP TAO Script Is Uploaded and Transferred to SAP Quality Center
After the upload is completed you get a message at the bottom of the screen saying the PFA upload completed successfully. You can also verify that Create Sales Order (VA01) strips are inspected and uploaded to SAP Quality Center by going to View Upload Report on the right side at the bottom of the page (not shown). In the pop-up window that appears, check the status in the Inspected and Uploaded columns (Figure 19).

Figure 19
Upload a report in SAP TAO
To verify if the Create Sales Order transaction scripts are transferred to SAP Quality Center, go to the SAP Quality Center home page at https://sapv1:8086/qcbin/start_a.htm (Figure 20). Enter the Login Name and Password and click the Authenticate button. Then enter the Domain and Project name and click the Login button.

Figure 20
Login screen
Go to the Test Plan section and under the PFA folder you see that the Create Sales Order test case was transferred (Figure 21). Click the Create Sales Order test and select Test Script. This displays the name, status, and input and output component parameters, and indicates whether the test will continue if that component fails during the run.

Figure 21
Upload the test scripts report
Step 12. Consolidate the Create Sales Order Transaction in SAP TAO
After verifying the transaction test is transferred to SAP Quality Center, you need to consolidate the create sales order test case in SAP TAO. Consolidating the create sales order test case makes the test execution run faster and allows you to group a number of tests into one test.
To do so, go back to SAP TAO and select the Consolidate tab. In the All Tests tab, follow Subject > PFA > Create Sales Order and select the check box next to it (Figure 22). Click the Add to consolidation list button at the bottom of the screen (not shown).

Figure 22
Perform test consolidation
After adding a create sales order test the Consolidation List is displayed in a new tab. Go to the Consolidation list tab, select the Create Sales Order test, and click the Consolidate button.
Verify the Components Are Consolidated in SAP TAO
After the consolidation process is finished successfully, verify the test component consolidation by clicking the View Report button (Figure 23). This brings up the consolidation results in Figure 24.

Figure 23
Click the View Report link

Figure 24
Consolidation results
Verify the Components Are Consolidated in SAP Quality Center
To verify if the test components are consolidated in SAP Quality Center, go back to the SAP Quality Center home page. Go to the Business Components section under the SAP_Full_BPs folder and click Create Sales Order test to see detailed consolidated test component results (Figure 25).

Figure 25
Consolidated test component results in SAP Quality Center
Link the Create Sales Order Test Case to Test Requirements in SAP Quality Center
To link the Create Sales Order test to test requirements in SAP Quality Center, click the Test Plan button and then follow menu path Subject > PFA (Figure 26). Select the Create Sales Order test case and click the Req Coverage tab. Then click the Select Req button and expand the Requirements folder. Select the Create Sales Order test and click the back icon.

Figure 26
Link test cases to test requirements
The Create Sales Order test requirements then move to the Requirements Coverage table, and the Create Sales Order test case is automatically linked with test requirements.
Step 13. Execute a Test Transaction in SAP Quality Center
To execute the Create Sales Order (VA01) test case, go back to the SAP Quality Center home page. Go to the Test Lab section and select the Root folder (Figure 27). Then click the create folder icon and name it TAO_Execution_Test. Click OK.

Figure 27
Create a folder
Under the TAO_Execution_Test folder, click the new test set icon. Name the test set Create Sales Order and click OK (Figure 28).

Figure 28
Build a test set
After the test set is created, select the Create Sales Order test set and go to the Execution Grid tab (Figure 29). Then click the Select Tests button and on the right side of the screen in the Test Plan Tree tab click the Create Sales Order option. Move it to the Execution Grid by clicking the add tests to test set icon. The test moves to the Execution Grid and you can see that the Status of the test is No Run (Figure 30).

Figure 29
Define a test set

Figure 30
View test set status
To execute the test on the Execution Grid, select the Create Sales Order row and click Run. The Automatic Runner window opens (Figure 31). Select the Run All Tests Locally and Enable Log check boxes and then click the Run All button.

Figure 31
Test set execution
When the execution of the test is done the test status changes to Passed. You can close the Automatic Runner window and on the Execution Grid the Create Sales Order test status has changed to Passed (Figure 32).

Figure 32
Test set execution passed
View the Results of the Test in SAP Quality Center
To view the result of the test in SAP Quality Center, on the Execution Grid double-click Passed under the status of the test. The Test Instance Properties window appears (Figure 33). You can see the test results such as Status, Duration, Exec Date, and Exec Time.

Figure 33
Test set results
You can also view the test results by going to the Requirements section (Figure 34). Expand the Requirements folder and select the Create Sales Order test. You can see that the status is Passed. By double-clicking the Passed status, the Coverage Analysis window pops up showing the test coverage chart results of the test.

Figure 34
Test coverage chart results
Test Results in HP QuickTest Professional
To check HP QuickTest Professional test results logs, at the bottom of the page of the previous window double-click Passed under the Status. The pop-up screen in Figure 35 appears with a results summary.

Figure 35
HP QuickTest Professional test results logs
Test Results in SAP TAO
The RTL generates an SAP TAO report for each test case execution. To view the report, go to SAP TAO. In the top-right corner choose the Configuration tab and the Configuration screen opens (Figure 36). Then click the RTL tab. The current RTL location is defined to go to that location.

Figure 36
RTL location
Click Logs > TestSet_Create Sales Order folder. Click the next folder named 2011-05-04_12-54-36_ Create Sales Order (the date and time of create sales order execution).
After that, click the ReportLog.xml document and the SAP TAO report opens in which you can view the Create Sales Order test case report (Figure 37). At the bottom of the page you can see the Overall Test Results.

Figure 37
Test case report in SAP TAO
Step 14. Transfer Test Results from SAP Quality Center to SAP Solution Manager
After viewing test results in SAP Quality Center, HP QuickTest Professional, and SAP TAO, you need to transfer the test results from SAP Quality Center to SAP Solution Manager. Go to the SAP Quality Center home page at https://sapv1:8086/qcbin/start_a.htm and enter your login name and password and click Authenticate. Then enter the Domain and Project name and log in. Follow menu path Tools > SAP Tools > Update Solution Manager… (Figure 38).

Figure 38
Transfer test results
The Update Solution Manager window appears (Figure 39). Click the refresh icon and select the Blueprint Title, which is also the name of your Project Title in SAP Solution Manager. Click the Update Blueprint Quality button. In the resulting window, choose the Complete update type and click OK (Figure 40).

Figure 39
Send test results to SAP Solution Manager

Figure 40
Blueprint update options
Note
Once the update is done, click the refresh icon and you can see the results under the Status that the update process is passed and test results are transferred successfully to SAP Solution Manager. Then you can close the window by clicking Close.
Brikena Berisha
Brikena Berisha graduated with a degree in finance and international business from California State University of San Bernardino in 2006. She has more than five years of consulting experience in project management, including project implementations and upgrades, testing with SAP Solution Manager 7.0 and 7.1, SAP Quality Center by HP, QTP by HP, and SAP TAO. Brikena is a consultant at CoreALM Consulting Company, specializing in SAP consulting, in particular application lifecycle management, SAP solutions, and third-party solutions that are integrated with SAP Solution Manager.
To contact the editor, click here.
You may contact the author at brikena.berisha@corealm.com.
If you have comments about this article or publication, or would like to submit an article idea, please contact the editor.