SAP GUI Protocol LR Function Help

101 views
Skip to first unread message

perft...@gmail.com

unread,
Jul 13, 2015, 9:01:22 AM7/13/15
to LR-Loa...@googlegroups.com
Hello,
I am new to SAP GUI Protocol and learning/ trying to understand few things regarding the SAP GUI LR functions.


In most of the SAP GUI LR functions, syntax contains either object ID or Control ID or Grid ID. Where/How can I find the Object or Control ID? Can some one explain on this?

For Ex:

sapgui_table_get_text as below. But I am confused, on how to figure out the table ID or Object ID or COntrol ID.

int sapgui_table_get_text( const char *description, const char *tableID, const char *row, const char *column, const char *paramName, [args,] LAST );


description User entered text to aid in understanding script
tableID Object ID Strings
row Row number. The first data row is numbered zero (0). If there is a header row it is numbered (-1).
column Column number. The first column is numbered zero (0).
paramName Output parameter for the retrieved text
args Optional Arguments
LAST

A marker indicating the end of the argument list. Not required if Optional Arguments are used.



Similarly for


int sapgui_get_text( const char *description, const char *controlID, const char *outParamName, [args,] LAST );


description User entered text to aid in understanding script
controlID Object ID Strings
outParamName Parameter to store the retrieved text
args Optional Arguments
LAST A marker indicating the end of the argument list. Not required if Optional Arguments are used.

Pradhyumna Gupta

unread,
Jul 14, 2015, 8:52:42 AM7/14/15
to LR-Loa...@googlegroups.com

Each button, text box etc on a SAP application is identified with an object ID. In your LR installation folders you should find a tool called sapguispy. Use that to find out the object id of anything on the sap page.

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at http://groups.google.com/group/LR-LoadRunner.
To view this discussion on the web visit https://groups.google.com/d/msgid/LR-LoadRunner/b6101ad9-93d7-45f6-8763-fbb24da3cd16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages