|
custom, web_custom_request, web, 关联, 高手
我用自动关联找到jsessionid的变量,但是对于web_custom_request中的'session-id',始终没有关联成功。
目前尝试的方法:
1:自动关联,但只能找到jsessionid的关联,找不到web_custom_request的。
2:手动关联,尝试在“web_custom_request("js-endpoint.xsp",”前加代码
web_reg_save_param("sessionID",
"LB='session-id'>",
"RB=<",
"Search=Body",
LAST);
返回错误信息:
Action.c(76): Error -26377: No match found for the requested parameter "sessionID". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(76): web_custom_request("js-endpoint.xsp") highest severity level was "ERROR", 73942 body bytes, 156 header bytes, 69 chunking overhead bytes [MsgId: MMSG-26387]
请坛内各位兄弟姐妹帮忙看看,非常感谢。
下面附着Vuser的代码:注意红色字体的session-id.另event-id也是变量也没有自动生成关联,不知何解?
Action()
{
web_add_cookie("org.springframework.web.servlet.i18n.CookieLocaleResolver.LOCALE=en_US; DOMAIN=10.100.0.2");
web_add_cookie("locale=en_US; DOMAIN=10.100.0.2");
// [WCSPARAM WCSParam_Diff1 24 3x958g8eeduarwg5knj98rn7] Parameter {WCSParam_Diff1} created by Correlation Studio
web_reg_save_param("WCSParam_Diff1",
"LB=jsessionid=",
"RB=?",
"Ord=1",
"RelFrameId=1",
"Search=Body",
"IgnoreRedirections=Yes",
LAST);
web_url("10.100.0.2",
"URL=http://10.100.0.2/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=https://10.100.0.2/cas/images/lf.jpg", "Referer=https://10.100.0.2/cas/login?service=http%3A%2F%2F10.100.0.2%3A80%2Fcrm%2F", ENDITEM,
"URL=https://10.100.0.2/cas/images/shad.gif", "Referer=https://10.100.0.2/cas/login?service=http%3A%2F%2F10.100.0.2%3A80%2Fcrm%2F", ENDITEM,
LAST);
web_submit_form("login;jsessionid={WCSParam_Diff1}",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=admin", ENDITEM,
"Name=password", "Value=123", ENDITEM,
"Name=submit", "Value=Login", ENDITEM,
EXTRARES,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/qtip/tip-sprite.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/grid/grid-blue-split.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/ajax-loader.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/logo.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/toolbar/btn-arrow.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/form/text-bg.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/form/trigger.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/s.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/toolbar/bg.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/modules/dashboard-small.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/new_add.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/switch-view.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/zoom.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/layout/mini-left.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/panel/light-hd.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/panel/tool-sprites.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/dd/drop-no.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/modules/mail-small.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/modules/appointment-small.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/modules/task-small.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/tab_add.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/tabs/tab-strip-bg.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/tabs/tabs-sprite.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/application_view_list.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/report.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/chart_curve.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/widget_add.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/img/icons/tab_edit.png", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/panel/top-bottom.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/panel/corners-sprite.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/panel/left-right.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/grid/grid3-hrow.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
"URL=http://10.100.0.2/crm/client/ext/resources/images/default/grid/group-expand-sprite.gif", "Referer=http://10.100.0.2/crm/", ENDITEM,
LAST);
web_custom_request("js-endpoint.xsp",
"URL=http://10.100.0.2/crm/services/js-endpoint.xsp",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://10.100.0.2/crm/",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=",
"Body=<request><events><event name='load'/></events></request>",
LAST);
web_custom_request("js-endpoint.xsp_2",
"URL=http://10.100.0.2/crm/services/js-endpoint.xsp",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://10.100.0.2/crm/",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=",
"Body=<request><variables><var id='session-id'>571331d9-f944-4854-836d-04ee33b71a84</var><var id='language-id'>en</var></variables><events><event id='591629767192138224' name='getitems'></event></events></request>",
LAST);
web_custom_request("js-endpoint.xsp_3",
"URL=http://10.100.0.2/crm/services/js-endpoint.xsp",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://10.100.0.2/crm/",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=",
"Body=<request><variables><var id='session-id'>571331d9-f944-4854-836d-04ee33b71a84</var><var id='language-id'>en</var></variables><events><event id='591629767192138240' name='getitems'></event></events></request>",
LAST);
web_custom_request("js-endpoint.xsp_4",
"URL=http://10.100.0.2/crm/services/js-endpoint.xsp",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://10.100.0.2/crm/",
"Snapshot=t6.inf",
"Mode=HTML",
"EncType=",
"Body=<request><variables><var id='session-id'>571331d9-f944-4854-836d-04ee33b71a84</var><var id='language-id'>en</var></variables><events><event id='591629767192138256' name='getitems'></event></events></request>",
LAST);
return 0;
} |
|