The following steps describe prerequisites to replaying SAPGUI scripts.
Replace the encrypted password in the sapgui_logon function generated during recording, with the real password. It is the second argument of the function, after the following user name
sapgui_logon("user", "pswd", "800", "EN");
For additional security, you can encrypt the password within the code. Select the password text (the actual text, not *****) and select Encrypt string from the right-click menu. VuGen inserts an lr_decrypt function at the location of the password as follows:
sapgui_logon("user", lr_decrypt("3ea037b758"), "800", "EN");
When running a script for the first time, configure VuGen to show the SAP GUI user interface during replay, in order to see the operations being performed through the UI. Select Replay > Runtime Settings > SAPGUI > General node and select Show SAP Client During Replay. During a load scenario, disable this option, since it uses a large amount of system resources in displaying the UI for multiple Vusers.