Beruflich Dokumente
Kultur Dokumente
Acceleration and
Optimization 11
Runtime Library
Document version: 1.0 – August 7, 2008
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf
Germany
T +49/18 05/34 34 24
F +49/18 05/34 34 20
www.sap.com
© Copyright 2008 SAP AG. All rights reserved. Java is a registered trademark of Sun Microsystems, Inc.
No part of this publication may be reproduced or transmitted in any JavaScript is a registered trademark of Sun Microsystems, Inc., used
form or for any purpose without the express permission of SAP AG. under license for technology invented and implemented by Netscape.
The information contained herein may be changed without prior
notice. MaxDB is a trademark of MySQL AB, Sweden.
Some software products marketed by SAP AG and its distributors SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, PartnerEdge,
contain proprietary software components of other software vendors. ByDesign, SAP Business ByDesign, and other SAP products and
services mentioned herein as well as their respective logos are
Microsoft, Windows, Outlook, and PowerPoint are registered trademarks or registered trademarks of SAP AG in Germany and in
trademarks of Microsoft Corporation. several other countries all over the world. All other product and
IBM, DB2, DB2 Universal Database, System i, System i5, System p, service names mentioned are the trademarks of their respective
System p5, System x, System z, System z10, System z9, z10, z9, companies. Data contained in this document serves informational
iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, purposes only. National product specifications may vary.
OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM,
Power Architecture, POWER6+, POWER6, POWER5+, POWER5, These materials are subject to change without notice. These materials
POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System are provided by SAP AG and its affiliated companies ("SAP Group")
Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, for informational purposes only, without representation or warranty of
OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, any kind, and SAP Group shall not be liable for errors or omissions
WebSphere, Netfinity, Tivoli and Informix are trademarks or with respect to the materials. The only warranties for SAP Group
registered trademarks of IBM Corporation. products and services are those that are set forth in the express
warranty statements accompanying such products and services, if any.
Linux is the registered trademark of Linus Torvalds in the U.S. and Nothing herein should be construed as constituting an additional
other countries. warranty.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either
trademarks or registered trademarks of Adobe Systems Incorporated in Disclaimer
the United States and/or other countries. Some components of this product are based on Java™. Any
code change in these components may cause unpredictable
Oracle is a registered trademark of Oracle Corporation. and severe malfunctions and is therefore expressively
prohibited, as is any decompilation of these components.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the
Open Group. Any Java™ Source Code delivered with this product is
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, only to be used by SAP’s Support Services and may not be
VideoFrame, and MultiWin are trademarks or registered trademarks of modified or altered in any way.
Citrix Systems, Inc.
Documentation in the SAP Service Marketplace
HTML, XML, XHTML and W3C are trademarks or registered You can find this documentation at the following address:
trademarks of W3C®, World Wide Web Consortium, Massachusetts http://service.sap.com/<xxxxxxxx>
Institute of Technology.
(hereinafter: Customer)
Contents
1 Document Purpose ...........................................................................13
2 Adding Functionality ........................................................................14
2. 1 Where to add your functionality......................................................... 14
2. 2 Sample of a Wrapper........................................................................... 14
3 Function Reference...........................................................................15
Function SAP_get_Checkbox_Value (CheckboxName) ...................15
Function SAP_get_Checkbox_Enabled (CheckboxName) ..............15
Function SAP_get_Text_Value (TextName).......................................15
Function SAP_get_Text_Enabled (TextName) ..................................15
Function SAP_get_Radio_Value (RadioName) .................................15
Function SAP_get_Radio_Enabled (RadioName) .............................15
Function SAP_get_ComboBox_Value (ComboBoxName) ...............15
Function SAP_get_ComboBox_KeyValue (ComboBoxName) ........15
Function SAP_get_ComboBox_Enabled (ComboBoxName) ..........16
Function SAP_get_ComboBox_ItemCount (ComboBoxName).......16
Function SAP_get_Label_Value (LabelID).........................................16
Function SAP_get_Label_Value_Location (LabelID, labelIndex) ....16
Function SAP_get_Checkbox_Value_Location (CheckboxName,
CheckBoxIndex) ...................................................................................16
Function SAP_get_Checkbox_Enabled_Location
(CheckboxName, CheckBoxIndex).....................................................16
Function SAP_get_Text_Value_Location (TextName,
TextBoxIndex) ......................................................................................16
Function get_Text_Enabled_Location (TextboxName,
TextBoxIndex) ......................................................................................17
Function SAP_get_Radio_Value_Location (RadioName,
RadioIndex)...........................................................................................17
Function SAP_get_Radio_Enabled_Location (RadioName,
RadioIndex)...........................................................................................17
Function SAP_get_ComboBox_Value_Location
(ComboBoxName, ComboBoxIndex) .................................................17
Function SAP_get_ComboBox_Enabled_Location
(ComboBoxName, ComboBoxIndex) .................................................17
Function SAP_get_ComboBox_KeyValue_Location
(ComboBoxName, ComboBoxIndex) .................................................17
Function SAP_get_ComboBox_ItemCount_Location
(ComboBoxName, ComboBoxIndex) .................................................17
Function SAP_get_Text_Property (TextName, TextIndex,
PropertyName) .....................................................................................18
1 Document Purpose
1 Document Purpose
This document is meant to explain all the SAP specific wrappers contained inside the SAP Test
Acceleration and Optimization Runtime Library (RTL).
2 Adding Functionality
2 Adding Functionality
2. 1 Where to add your functionality
In the SAP Test Acceleration and Optimization RTL folder called CBASE there is a file called
CBASE_Custom_Wrappers.vbs
2. 2 Sample of a Wrapper
@Documentation Brief description of Wrapper’s action
Sub TAO_WrapperName(ObjectName, ObjectValue, ObjectReportingName)
End Sub
Dim OBJ,LocalVariables
On error resume next
OBJ.Method ObjectValue
CheckErrorHandler
End sub
3 Function Reference
3 Function Reference
Function SAP_get_Checkbox_Value (CheckboxName)
Description: Gets the value (ON|OFF) of the <CheckboxName>
checkbox
Parameters: CheckboxName
located in <ComboBoxIndex>
Parameters: ComboBoxName
ComboBoxIndex
CheckboxName
CheckboxIndex
sub initializeSAP ()
Description: Initialize SAP
Parameters:
Description: Captures a snapshot from the actual SAP screen and add
the description <StepDescription> for the reporter
Parameters: StepDescription
Sub Log_Off ()
Description: Log out of SAP
Parameters:
Sub SAPLogon_Exit ()
Description: Closes SAP Logon
Parameters:
Sub Exit_Multiple_Logons_Warning ()
Description: If a license popup window appears, end previous sesssion
Parameters:
Sub ConfirmSave ()
Description: Save record and put result into <Field> in Datatable
Parameters: Field
Sub Verify_Quantity_Delivered ()
3 Function Reference
Function Save_Delivery_Info ()
Description: Save the information received after the creation of a
delivery
Parameters:
Function Save_Group_Number ()
Description: Save the group number received after the creation of the
Billing Due List
Parameters:
Function SAP_Get_Active_Screen ()
Description: Return Active Screen either pop up or Main Screen
Parameters:
Function Get_StatusBar_Info ()
Description: Gets the message displayed in the status bar of SAP
Parameters:
Sub Detect_StatusBar_Error_Message ()
Description: Detects if an error message is displayed in the status bar of
SAP and aborts the BP
Parameters:
Sub Detect_StatusBar_Warning_Message ()
Description: Detects if an warning message is displayed in the status
bar of SAP and presses enter to continue
Parameters:
Sub Open_Stock_Transport_Order ()
Description: Opens row containing the stock transport order # created
shown in the label area
Parameters:
Sub Select_Group_Number_Row ()
Description: Selects the row containing the group # created shown in
the label area
Parameters:
Function SAP_CloseSessions ()
Description: Closes the Session
Parameters:
Sub Verify_Err_Content_isEmpty ()
Description: Verify <Err> is empty as expected value, which means
transaction passed
Parameters: Err
Table
Expected_Value
Description: Looks up on the table <TableName> the row that has the
value <RefVal> in the column <RefCol> And then compares
the value of the found cell to the expected value <TargVal>
Parameters: TableName
RefVal
RefCol
TargVal
Sub SAP_Press_Enter ()
Description: Press Enter key
Parameters:
box
Parameters: FieldValue
FieldName
Sub Go_Back ()
Description: Go back to previous page
Parameters:
Table
Sub Expand_All_Sections
Description: Expand all collapsed sections
Parameters:
Sub SAP_Press_Save ()
Description: Press the Save Button
3 Function Reference
Parameters: