on 07-05-2013 9:41 AM
Dear all --
We are doing a performance testing for SAP applications.
On our test machine (DL380 Xeon 6 cores with 8GB being equally split into 2 VMs), we have:
SAPGUI 7.30
LoadRunner 11.51 with updated patches
We wrote 4-5 scripts simulating users doing MM (ME51, ME21, MIGO, etc), FI (F43, F51, etc), PM (IW31, IW32, etc).
There had been some troubles with SAP grids, enjoy screens -- but we managed to work around those using old interfaces.
All scripts run fine thru Replay/Run in VU Generator. Until we do it via the controller; we start to see errors like can't see so-and-so button.
We are really frustrated and couldn't find an answer or what to try out or any modification to make. Totally lost.
We tried fudging think_time 100, 150, 200% -- to no avail.
We tried one users, a few users -- didn't work; still hit errors.
Lost and desperate, we left out scripts aside and tried recording something really easy -- no editing, adding, modifying anything. Just plain browsing.
And [sigh] it still failed when run thru the controller -- even with one user. (of course, it runs fine using Replay/Run in VU Generator. All green. No error.)
Sample errors that we see..
Action.c(57): Error: Failed to find SapGui component by ID "sbar"
Action.c(57): Error: Failed to set property "Position" of SapGui component Scroll...
Action.c(190): Error: Failed to select active window "wnd[1]"
Action.c(57): Error: Failed to get the status bar text
Action.c(57): Error: Table - failed to set focus on "(0, 'Short Text')
Action.c(184): Error: Failed to press button "Release + Save"
...and more...
Here is the sample scripts to browse things in SAPGUI...
sapgui_set_ok_code("/nmb52",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1013",
END_OPTIONAL);
sapgui_send_vkey(ENTER,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1014",
END_OPTIONAL);
lr_think_time(6);
sapgui_set_text("WERKS-LOW",
"CNT0",
ctxtWERKS1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1017",
END_OPTIONAL);
sapgui_set_focus(ctxtWERKS1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1018",
END_OPTIONAL);
sapgui_press_button("Execute (F8)",
btn1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1020",
END_OPTIONAL);
lr_think_time(8);
sapgui_set_ok_code("/nmmbe",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1023",
END_OPTIONAL);
sapgui_send_vkey(ENTER,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1024",
END_OPTIONAL);
sapgui_select_active_session("ses[1]");
sapgui_select_active_window("wnd[0]");
sapgui_window_resize("145",
"26",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui204",
END_OPTIONAL);
sapgui_set_text("MS_MATNR-LOW",
"3000003219",
ctxtMS_MATNR1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui205",
END_OPTIONAL);
sapgui_press_button("Execute (F8)",
btn1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui207",
END_OPTIONAL);
lr_think_time(5);
sapgui_set_text("IO_MATERIAL",
"3000009375",
ctxtIO_MATERIAL1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2010",
END_OPTIONAL);
sapgui_press_button("New Selection (Shift+F5)",
btn2,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2011",
END_OPTIONAL);
lr_think_time(6);
sapgui_set_ok_code("/nmb51",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2014",
END_OPTIONAL);
sapgui_send_vkey(ENTER,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2015",
END_OPTIONAL);
sapgui_select_active_session("ses[2]");
sapgui_select_active_window("wnd[0]");
sapgui_window_resize("145",
"26",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui304",
END_OPTIONAL);
lr_think_time(4);
sapgui_set_focus(ctxtWERKS1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui305",
END_OPTIONAL);
sapgui_press_button("Execute (F8)",
btn1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui307",
END_OPTIONAL);
sapgui_press_button("Detail List (Ctrl+Shift+F12)",
btn3,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui3010",
END_OPTIONAL);
Any pointer is appreciated.
GUI730 support is officially introduced in LoadRunner 11.52(11.50 with SP2 applied)
Please first install 11.52 patch and install a later SAPGUI client release such as SAPGUI 7.30 Patch 4 to resolve these replay errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Taweesak.
Good day.
I'm having also same error in LoadRunner Controller. Have you managed to resolved it?
Thanks.
Virgilio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.