VuGen can create Vuser scripts for SAP Enterprise portal7 and SAP ITS 6.20/6.40 environments using specialized test objects and methods that have been customized for SAP. The objects are APIs based on HP QuickTest or Unified Functional Testing support for SAP.
As you record a test or component on your SAP application, VuGen records the operations you perform. VuGen recognizes special SAP Windows objects such as frames, table controls, iViews, and portals.
For an overview on the Click and Script protocols, see Click & Script Protocols - Overview.
VuGen supports recording for the following SAP controls: button, check box, drop-down menu, edit field, iview, list, menu, navigation bar, OK code, portal, radio group, status bar, tab strip, table, and tree view.
VuGen uses the control handler layer to create the effect of an operation on a GUI control. During recording, when encountering one of the supported SAP objects, VuGen generates a function with an sap_xxx prefix.
In the following example, a user selected the User Profile tab. VuGen generated a sap_portal function.
web_browser("Close_2", "Snapshot=t7.inf", DESCRIPTION, "Ordinal=2", ACTION, "UserAction=Close", LAST); lr_think_time(7); web_text_link("Personalize", "Snapshot=t8.inf", DESCRIPTION, "Text=Personalize", ACTION, "UserAction=Click", LAST); lr_think_time(6); sap_portal("Sap Portal_2", "Snapshot=t9.inf", DESCRIPTION, "BrowserOrdinal=2", ACTION, "DetailedNavigation=User Profile", LAST);
Note: When you record an SAP (Click & Script) session, VuGen generates standard Click & Script functions for objects that are not SAP-specific. You do not need to explicitly specify the Web protocol. In the example above, VuGen generated a web_text_link function when the user clicked the Personalize button.