51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 4184|回复: 4
打印 上一主题 下一主题

[原创] 关于spring的webflow怎么做压力测试

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-9-17 15:59:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现在有一个系统,有一部分是用spring的webflow进行取值的。例:
http://192.186.1.3:8080/agentApplying/selectProduct.do?_flowExecutionKey=_cDD01CB5F-8CEB-F811-8148-6BFE68D8B17A_kA661204E-0D37-BF77-9CE5-923336144F60
那个flowExecutionKey参数的值,是通过webflow自动生成的,每次生成的参数值都不同,这种情感的压力测试应该在怎么做呀?loadrunnern能进行这种测试?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2007-9-17 16:01:02 | 只看该作者
你看看关联是不是能搞定?
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2007-9-17 18:22:38 | 只看该作者
原帖由 haiquan180 于 2007-9-17 16:01 发表
你看看关联是不是能搞定?

我做了两个关联:
  1. web_reg_save_param("flowExecutionKey","LB=","RB=", LAST);
  2.         web_link("新增投保单",
  3.                 "Text=新增投保单",
  4.                 "Snapshot=t3.inf",
  5.                 EXTRARES,
  6.                 "Url=images/top-bg.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  7.                 "Url=images/webback.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  8.                 "Url=images/banner.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  9.                 "Url=images/left-bg.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  10.                 "Url=images/foot.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  11.                 "Url=images/user-server.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  12.                 "Url=images/meu-title.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  13.                 "Url=images/meu-help.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  14.                 "Url=images/button_small.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}", ENDITEM,
  15.                 LAST);

  16.         web_submit_data("selectProduct.do",
  17.                 "Action=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}",
  18.                 "Method=POST",
  19.                 "RecContentType=text/html",
  20.                 "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={flowExecutionKey}",
  21.                 "Snapshot=t4.inf",
  22.                 "Mode=HTML",
  23.                 ITEMDATA,
  24.                 "Name=s1", "Value=0644", ENDITEM,
  25.                 "Name=_flowExecutionKey", "Value=${flowExecutionKey}", ENDITEM,
  26.                 "Name=insuranceProductId", "Value=0644", ENDITEM,
  27.                 "Name=applyPolicyOpType", "Value=1", ENDITEM,
  28.                 "Name=_eventId", "Value=display", ENDITEM,
  29.                 EXTRARES,
  30.                 "Url=images/webback.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  31.                 "Url=images/top-bg.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  32.                 "Url=images/banner.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  33.                 "Url=images/left-bg.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  34.                 "Url=images/up_line.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  35.                 "Url=images/right-up-jiao.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  36.                 "Url=images/title-bg.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  37.                 "Url=images/left-up-jiao.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  38.                 "Url=images/right-line.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  39.                 "Url=images/left-line.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  40.                 "Url=images/right-down-jiao.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  41.                 "Url=images/down-line.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  42.                 "Url=images/left-down-jiao.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  43.                 "Url=images/user-server.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  44.                 "Url=images/foot.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  45.                 "Url=images/meu-title.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  46.                 "Url=images/meu-help.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  47.                 "Url=images/button_small.gif", "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cE5943383-AE01-8B87-F621-61B48D64CF6B_k95C9A4BE-4D66-D57F-2181-0C7062548E76", ENDITEM,
  48.                 LAST);
复制代码


但是loadRunner报错:
Error -26631: HTTP Status-Code=400 (Bad Request) for "http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5ETag: W/"114-1174119376000"Last-Modified: Sat, 17 Mar 2007 08:16:16 GMTContent-Type: image/gifContent-Length: 114Date: Mon, 17 Sep 2007 09:58:41 GMTGIF89a?          [MsgId: MERR-26631]
是不是这个关联不能出现在两个过程里面?
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2007-9-17 19:39:03 | 只看该作者
web_reg_save_param("flowExecutionKey","LB=","RB=", LAST);

这能取出什么值来???连边界都没有。
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2007-9-18 09:12:18 | 只看该作者
原帖由 Zee 于 2007-9-17 19:39 发表
web_reg_save_param("flowExecutionKey","LB=","RB=", LAST);

这能取出什么值来???连边界都没有。


请问这个flowExecutionKey它的边界应该怎么写呢?它只是一个地址的参数flowExecutionKey的值,就像这样:
  1. http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_cB2B1496A-811F-2E63-0D2E-F43DAE4AD5E0_k9CF8B8B6-AF92-6185-415C-B60739EA0B8B
复制代码


我可以这样写吗:web_reg_save_param("flowExecutionKey","LB=_flowExecutionKey=","RB=", LAST);
但是它没有右边界应该怎么写呢?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-11 05:36 , Processed in 0.076047 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表