SAP TAO 2.0 Live
SAP TAO 2.0 Live
SAP TAO 2.0 Live
www.testing-onlinetraining.com
Agenda
Prerequisites for TAO 1.0 TAO Architecture overview Installation TAO Connection settings Configuring TAO Generating components in TAO Building Test Scripts Consolidating Test Scripts Importing and Exporting Components Executing Tests
TAO workflow
Prerequisites
In addition to the software Installation and Configuration, you will need to import the Component Library into Quality Center for the first time. The Component Library is a set of Custom Components created for interfacing with the SAP GUI and is located within the SAP TAO Run Time Library (RTL) You will need to use the SAP TAO Import/Export tool to import these components from the RTL to Quality Center.
On local TAO client system: X drive on the local system should be mapped to the shared folder (RTL) on the QC server.
X drive on the local system should be mapped to the shared folder (RTL) on the QC server.
4. Navigate to the Configuration link on the top right menu. 5. Select the Import/Export tab 6. Under Local Components Path: navigate to the location of the RTL Component Library and click on the Save button.
Component Library: Buttons Body Screen Buttons Header buttons Application Toolbar Standard Toolbar Common Functions Actions GUI Functions Buttons Text_Box Verifications
Allication ToolBar
Script Validation
Script Validation
Before you begin automating the test case, Test Case validation Ensure that you are accessing the correct system and client Ensure that you are able to follow the test case flow Ensure that the test case is detailed enough and resolve any questions you have with the flow. Data validation Ensure the data provided is working with the test case flow in the system and client you will be using to test. After you validate the test case, you are ready to create the Transaction Components associated with the test case.
Create Components
Create Components
There are 2 ways to automatically create components: 1. Inspect tool: Enables you to select multiple SAPGUI screens and transactions for testing in an easy to use interface. It then determines whether these screens and transactions are valid and sends the valid screens to HP Quality Center. 2. UI Scanner: a plug-in module for HP QuickTest Professional, enables you to collect information from one screen at a time, and sends the screen objects to HP Quality Center as a component. The UI Scanner scans all objects in the screen including dynamically generated objects.
Add T-Codes
If screens fail the inspection method, we recommend you use the UI Scanner to scan those screens. Though you can see which screens have been imported through the Report, be sure to check in Quality Center to validate that the components have been created and imported. The naming convention of the Component created in Quality Center for the Inspector is: TCode_ScreenNumber_Name Eg. VA01_0101_SalesdocInitialscreenCreate
Import/Export Components
Components in QC
Create Test
Create Test
This section will outline the steps a tester should perform in order to create a Business Process Test script. 1. Navigate to the Test Plan module in Quality Center.
Create Test
2. Select the appropriate folder from the folder tree and create a new blank test. This is done either by clicking the New Test button above the test plan tree or by right clicking on a folder in the Test Plan tree and selecting New Test. New Test button 3. In the Create New Test pop-up window. The name given to the test should correspond with the business process naming convention used. For example,
TS004.01.VA01_Create Sales Order.
Create Test
4. Navigate to the Details tab if it is not already selected. The Details tab should contain information on the test, the most important of which is the description of what the test process is. Other information that should be added includes notes for other testers developing similar scripts, or special execution conditions that someone executing the test would need to watch out for. Any data requirements should also be included here. Attached is an example:
Details Example
5. Navigate to the Test Script view tab. This is where the BPT test will be built out using Business Components. 6. Click the Select Component button, located in the upper left corner of the Test Script view, to display the Component Tree on the right side of the screen.
Create Test
7. Locate and drag the necessary components across from the component folder tree into the test script.
Create Test
8. Set the necessary parameters values. Each component dragged into the Test Script area will show its list of parameters under the Input column. Clicking these parameter links brings up the dialog box as shown below, where values can be set for each parameter. Leave blank any parameters that will not be used by the script.
Create Test
To the right is a sample outline of the components you would use for a simple VA01 test. The next slides will walk you through step by step in creating this test script.
Create Test
After you create the test script, you are ready to Consolidate the test script.
Consolidate
Consolidate
Executing a script in this state will be time consuming, since each component needs to be loaded separately, and the libraries are loaded for every single component. In order to optimize the execution time, we need to use the Consolidator. The Consolidator takes a Test Script, and generates a master component that includes all the QTP code of every component, into a single one. Quality Center, using QTP, only loads the libraries a single time, at the beginning of the component, and then executes the whole set of instructions without switching between components.
Consolidate
1. Open the TAO Client 2. Navigate to the Consolidate screen by clicking on the Consolidate button on the left hand menu. 3. Navigate to your test case and select the test case. 4. Click on the Consolidate button.
Consolidate
Once created, the Master Component can be found in the Business Components tree, in the Business Components module of QC. In order to execute the test, it is necessary to create a new Test Script in the Test Plan, having the Master Component as its only component. Use this newly created test to execute the Business Process in the Test Lab module.
After you consolidate the test case, you are ready to execute the test case in Quality Center.
Execute Test
Execute Test
1. In Qualtiy Center, navigate to the Test Lab. 2. Navigate to the Test Set and add your Test Case to the existing Test Set. 3. Select the Test Case and click on the Run button. 4. Click Run again to execute the test.
Execute Test
Even though creating Business Processes Test Script using TAO might seem like a simple task, there are multiple factors and caveats that need to be taken into account: 1. The initial Components base might prove complete for some BPs, but there will surely be the need to create new components in order to complete all the scripts. 2. Though the UI Scanner will automatically generate the required components, it might be required to manually modify the QTP code, or even to manually create a whole component. 3. VB Script knowledge is welcomed, since sometimes, there might even be the need to create new functions in the libraries, or modify the existing ones. 4. Make sure you always use the most up to date versions of the BCIE, UI Scanner and Consolidator tools. 5. Before starting the scripting, try to manually navigate the Business Process, so every step involved is clear and complete.
Execute Test
We can parameterize data in three ways: In the Business Component. In the script directly. In a data table 1. Use MS Excel to create a data table 2. For every field in the component, create a column with name DT_<variable_name>. This variable name should match the name of the parameter that was specified in the component 3. Save the file in a folder 4. Point the data table path in the Initialize script prebuilt component to the file created in steps 1-3.