Share this page

# SAP GUI protocol

The SAP GUI Vuser script typically contains several SAP transactions which make up a business process. A business process consists of functions that emulate user actions. Open the Step Navigator to see each user action as a Vuser script step.

In a typical recording of an SAP GUI client, include the opening of the connection and login in the first section, vuser_init This section is not repeated.

Note: The Open Connection step uses one of the connection names in the SAP Logon Descriptions list. If the specified connection name is not in the list, the Vuser looks for a server with that name.

In the Actions section, the recorded API functions represent typical user operations such as menu selection and the setting of a checkbox.

In a typical recording, the final section, vuser_end, contains the logging off steps.

When recording a multi-protocol script for both SAP GUI and Web, VuGen generates steps for both protocols. In the Script view, you can view both sapgui and web functions.

The following example illustrates a multi-protocol recording in which the SAP GUI client opens a web control. Note the switch from sapgui to web functions.

Example:

    sapgui_tree_double_click_item("Use as general WWW browser, REPTITLE",
        "shellcont/shell",
        "000732",
        "REPTITLE",
        BEGIN_OPTIONAL,
            "AdditionalInfo=sapgui1020",
        END_OPTIONAL);
    ...
    sapgui_set_text("",
        "http:\\\\yahoo.com",
        "usr/txtEDURL",
        BEGIN_OPTIONAL,
            "AdditionalInfo=sapgui1021",
        END_OPTIONAL);
    ...
    web_add_cookie("B=7pt5cisv1p3m2=;b=2; DOMAIN=www.yahoo.com");
    web_url("yahoo.com",
            "URL=http://yahoo.com/",
            "Resource=0",
            "RecContentType=text/html",
            "Referer=",
            "Snapshot=t1.inf",
            "Mode=HTML",
            EXTRARES,
    "URL=http://srd.yahoo.com/hpt1/ni=17/ct=lan/sss=1043752588/t1=1043752575385/d1=1251
              /d2=1312/d3=1642/d4=4757/0.4097009487287739/*1",
              "Referer=http://www.yahoo.com/", ENDITEM,
            LAST);

Back to top
https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 25.1-25.3 All View Local Help Center View Online Help Center Version: