SAP Web protocol

The SAP Web Vuser script typically contains several SAP transactions which make up a business process. The business process consists of functions that emulate user actions. For information about these functions, see the Web functions in the Function Reference (select the relevant version).

Note: You can generate an SAP Web Vuser script by analyzing an existing network traffic file (capture file). This method may be useful for creating Vuser scripts that emulate activity on mobile applications. For details, see Create a Vuser script by analyzing a captured traffic file.

Functionality supported for SAP Web Vuser scripts includes:

Data Format Extensions (DFE), using the predefined DFE for SAP: SAPEventQueue. See Data format extensions (DFEs) overview
Automatic generation of the Recording Report at the end of a recording session. See Recording Report
Asynchronous communication. See VuGen support for asynchronous communication
Save the traffic information to a HAR file after script replay. See Replay Summary pane
Insert JavaScript code snippets into the C code in an SAP - Web Vuser script. See Using the VuGen JavaScript engine


The following example shows a typical recording for an SAP Portal client:

    web_reg_find("Text=SAP Portals Enterprise Portal 5.0", 
           , ENDITEM, 

The following section illustrates an SAP Web and SAP GUI multi-protocol recording in which the Portal client opens an SAP control. Note the switch from web_xxx to sapgui_xxx functions.

    sapgui_open_connection_ex(" /H/Protector/S/3200 /WP", 
    /*Before running script, enter password in place of asterisks in logon function*/

Back to top