cancel
Showing results for 
Search instead for 
Did you mean: 

GUI Scripting - Error logging

Former Member
0 Kudos

Gentlemen,

We are using the GUI Scripting to automate transactions. How can enable logging on the script?. How do I know if the script has completed? It goes very fast most of the times, and didn't send any response back to script if there is any error.

Any ideas?

Regards

Rajeev

Accepted Solutions (0)

Answers (2)

Answers (2)

markus_dinkel
Explorer
0 Kudos

Hello Rajeev,

depending on what you want to achieve you can also think about using the eCATT SAPGUI command for this. eCATT is SAPs own functional testing tool and is delivered in SAP BASIS as of 6.20 (at no extra charge).

The eCATT SAPGUI command is able to record and replay via the GUI Scripting Interface in almost the same way as vbs scripts are doing it. The advantage is that you will get meaningful error messages during the execution and that you will be able to read the system messages which are displayed during the execution (in the eCATT log after the execution).

So if you automate your transactions for the purpose of testing them, you should seriously think about using eCATT instead of vbs scripts.

You will find lots of information in the eCATT documentation under the link http://help.sap.com/saphelp_nw04/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm

Best regards,

Markus

Christian_Cohrs
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rajeev,

you will only receive an error message if the script can not continue, because it does not find a required object, for example. The script is not aware of error messages that may appear on the status bar. This type of check can only be added manually to the script, by writing the appropriate VBS code.

Best regards,

Christian

Former Member
0 Kudos

Thanks Christian,

That answers part of my question. Where can I find information about adding checks (manually) to script ? Is there any guide available? or a small sample VBS code will be a great help.

Regards

Rajeev