|
使用LoadRunner 9.1(使用AJAX(Click and Script))进行ArcGIS Server 9.2的负载测试,仅录制了放大、平移2个操作,脚本如下:
Action()
{
web_browser("default.aspx",
DESCRIPTION,
ACTION,
"Navigate=http://gistest/tzc/default.aspx",
LAST);
web_static_image("Zoom In",
"Snapshot=t1.inf",
DESCRIPTION,
"Alt=Zoom In",
"Name=",
ACTION,
"FireEvent=onmouseover",
LAST);
web_static_image("Zoom In_2",
"Snapshot=t2.inf",
DESCRIPTION,
"Alt=Zoom In",
"Name=",
ACTION,
"ClickCoordinates=10,14",
LAST);
lr_think_time(4);
web_static_image("Pan",
"Snapshot=t3.inf",
DESCRIPTION,
"Alt=Pan",
"Name=",
ACTION,
"FireEvent=onmouseover",
LAST);
web_static_image("Pan_2",
"Snapshot=t4.inf",
DESCRIPTION,
"Alt=Pan",
"Name=",
ACTION,
"ClickCoordinates=9,15",
LAST);
web_image_link("MapTileImage_Map1_3_3_tzc",
"Snapshot=t5.inf",
DESCRIPTION,
"Alt=",
"Name=MapTileImage_Map1_3_3_tzc",
ACTION,
"FireEvent=onmouseover",
LAST);
web_image_link("MapTileImage_Map1_3_3_tzc_2",
"Snapshot=t6.inf",
DESCRIPTION,
"Alt=",
"Name=MapTileImage_Map1_3_3_tzc",
ACTION,
"ClickCoordinates=83,354",
LAST);
return 0;
}
但脚本播放始终不成功,在播放到平移提示错误如下:
Action.c(48): Error -26227: Image not found [MsgId: MERR-26227]
Action.c(48): Found 8 Image Link object(s) in the browser/frame: [MsgId: MMSG-26177]
Action.c(48): [1] Name="", Id="", Alt="Skip Navigation Links", Src="http://gistest/tzc/WebResource.axd?d=5rhEbLyWkqGqvaY6PLvJbQ2&t=633449745932598056", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [2] Name="", Id="", Alt="", Src="http://gistest/tzc/WebResource.axd?d=tqgZuGW3X5g2I08U8S67toKXbsDOX5DEQMPTxGpEeT9TFUJyeUCT1HfJZKdUz32ugrOdfHl8UtG3BXruc5gQ4Nc2nwX_Pc1fTaR8el7RCy9GD10KBuDpdf_O9axb5Fv9BdbxCCNU8jOsPABEZ8QIvwozmoWSZs7dxtaqTV4nhfA1&t=633450837118523121", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [3] Name="MapTileImage2_Map1_0_0_tzc", Id="MapTileImage2_Map1_0_0_tzc", Alt="", Src="http://gistest/tzc/ESRI.ArcGIS.ADF.Web.MimeImage.ashx?ImgID=16dd7053-0194-4133-be82-890c112d828a&CacheTime=1&kc=1", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [4] Name="MapTileImage2_Map1_1_0_tzc", Id="MapTileImage2_Map1_1_0_tzc", Alt="", Src="http://gistest/tzc/WebResource.axd?d=tqgZuGW3X5g2I08U8S67toKXbsDOX5DEQMPTxGpEeT9TFUJyeUCT1HfJZKdUz32ugrOdfHl8UtG3BXruc5gQ4Nc2nwX_Pc1fTaR8el7RCy9GD10KBuDpdf_O9axb5Fv9BdbxCCNU8jOsPABEZ8QIvwozmoWSZs7dxtaqTV4nhfA1&t=633450837118523121", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [5] Name="MapTileImage2_Map1_0_1_tzc", Id="MapTileImage2_Map1_0_1_tzc", Alt="", Src="http://gistest/tzc/WebResource.axd?d=tqgZuGW3X5g2I08U8S67toKXbsDOX5DEQMPTxGpEeT9TFUJyeUCT1HfJZKdUz32ugrOdfHl8UtG3BXruc5gQ4Nc2nwX_Pc1fTaR8el7RCy9GD10KBuDpdf_O9axb5Fv9BdbxCCNU8jOsPABEZ8QIvwozmoWSZs7dxtaqTV4nhfA1&t=633450837118523121", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [6] Name="MapTileImage2_Map1_1_1_tzc", Id="MapTileImage2_Map1_1_1_tzc", Alt="", Src="http://gistest/tzc/WebResource.axd?d=tqgZuGW3X5g2I08U8S67toKXbsDOX5DEQMPTxGpEeT9TFUJyeUCT1HfJZKdUz32ugrOdfHl8UtG3BXruc5gQ4Nc2nwX_Pc1fTaR8el7RCy9GD10KBuDpdf_O9axb5Fv9BdbxCCNU8jOsPABEZ8QIvwozmoWSZs7dxtaqTV4nhfA1&t=633450837118523121", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [7] Name="MapTileImage_Map1_0_0_tzc", Id="MapTileImage_Map1_0_0_tzc", Alt="", Src="http://gistest/tzc/WebResource.axd?d=tqgZuGW3X5g2I08U8S67toKXbsDOX5DEQMPTxGpEeT9TFUJyeUCT1HfJZKdUz32ugrOdfHl8UtG3BXruc5gQ4Nc2nwX_Pc1fTaR8el7RCy9GD10KBuDpdf_O9axb5Fv9BdbxCCNU8jOsPABEZ8QIvwozmoWSZs7dxtaqTV4nhfA1&t=633450837118523121", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): [8] Name="", Id="", Alt="Skip Navigation Links", Src="http://gistest/tzc/WebResource.axd?d=5rhEbLyWkqGqvaY6PLvJbQ2&t=633449745932598056", IsMap="0" [MsgId: MMSG-26000]
Action.c(48): web_image_link("MapTileImage_Map1_3_3_tzc") highest severity level was "ER |
|