51Testing软件测试论坛
标题:
loadrunner+sapgui,回放成功,但是无法并发,求助
[打印本页]
作者:
781188610
时间:
2015-9-29 10:32
标题:
loadrunner+sapgui,回放成功,但是无法并发,求助
Action()
{
lr_rendezvous("begin");
sapgui_set_ok_code("se37",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2013",
END_OPTIONAL);
sapgui_send_vkey(ENTER,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2014",
END_OPTIONAL);
sapgui_set_text("Function Module",
"ZCIC_PROCESS_CMARK_API",
ctxtRS38L2,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2017",
END_OPTIONAL);
sapgui_press_button("Test/Execute (F8)",
btn3,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2019",
END_OPTIONAL);
sapgui_status_bar_get_text("paramStatusBarText",
BEGIN_OPTIONAL,
"Recorded status bar text: 重新生成 ZCIC_PROCESS_CMARK_API 的测试环境",
"AdditionalInfo=sapgui2022",
END_OPTIONAL);
sapgui_window_scroll_to_row("0",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2024",
END_OPTIONAL);
sapgui_set_focus(lbl2,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2023",
END_OPTIONAL);
sapgui_send_vkey(F2,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2027",
END_OPTIONAL);
lr_think_time(26);
sapgui_window_scroll_to_row("0",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2031",
END_OPTIONAL);
sapgui_set_text("txt[1,3]",
"b2c",
txt8,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2030",
END_OPTIONAL);
sapgui_set_text("txt[22,3]",
"b2c01",
txt9,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2032",
END_OPTIONAL);
sapgui_set_text("txt[43,3]",
"{guid}",
txt10,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2034",
END_OPTIONAL);
sapgui_set_text("txt[84,3]",
"192.168.1.1",
txt11,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2036",
END_OPTIONAL);
sapgui_set_text("txt[125,3]",
"start",
txt12,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2038",
END_OPTIONAL);
sapgui_set_text("txt[136,3]",
"16851894997",
txt13,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2040",
END_OPTIONAL);
sapgui_set_text("txt[157,3]",
"5555",
txt14,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2042",
END_OPTIONAL);
sapgui_set_focus(txt14,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2044",
END_OPTIONAL);
sapgui_press_button("返回 (F3)",
btn4,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2048",
END_OPTIONAL);
lr_start_transaction ("fuck");
sapgui_press_button("执行 (F8)",
btn3,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui2051",
END_OPTIONAL);
lr_end_transaction("fuck",LR_AUTO);
return 0;
}
在线等,求助
作者:
jingzizx
时间:
2015-9-29 14:28
建议把详细报错贴出来,让大家看看
作者:
781188610
时间:
2015-9-29 15:37
犯了个低级错误,已解决,谢谢
站内哪些大神lr的帖子不错,求推荐(半新手)
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2