Wednesday, July 3, 2013

SAP (Click and Script) Protocol in Load runner

VuGen can create test 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 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.

VuGen supports recording for the following SAP controls: button, checkbox,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.
Example: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 a SAP (Click and Script) session, VuGen generates standard Web (Click and 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.

1 comment:

Kumar said...

Hi Ravi,
I am recording a script using SAP click and script protocol and see the events count during scripting but when I stop recording , I don't see anything being recorded. below is all I see.

Action()
{


LAST);

web_browser("portal",
DESCRIPTION,
ACTION,
"Navigate=https://xxx.com/irj/portal",
LAST);

lr_start_transaction("1_transaction");

lr_end_transaction("1_transaction",LR_AUTO);

lr_start_transaction("2_transaction");

lr_end_transaction("2_transaction",LR_AUTO);

lr_start_transaction("3_transaction");

lr_end_transaction("3_transaction",LR_AUTO);

return 0;
}