LoadRunner stores the properties of the objects used in the script in lr_strings.h header file
Usage of the tool is explained using the following Code snippet
The below is a sample code which presses 'Yes' button in a pop up window. and the script failed to press the button during execution.
sapgui_select_active_window("wnd[1]");
sapgui_press_button("Yes",
btnSPOP1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1036",
END_OPTIONAL);;
Property for button btnSPOP1 is defined in lr_strings.h as below
const char* btnSPOP1=
"usr/btnSPOP-OPTION1";
Property of the btnSPOP1 button is replaced with the below property in lr_strings.h after verifying the using SAPGUI Spy tool as shown the snapshot below
const char* btnSPOP1=
"/app/con[0]/ses[0]/wnd[1]/usr/btnSPOP-OPTION1";
SAP GUI |
Tool can be found under the following path