51Testing软件测试论坛

标题: OA系统如何测试发送公文的性能呢? [打印本页]

作者: moyudong    时间: 2012-10-29 17:29
标题: OA系统如何测试发送公文的性能呢?
本帖最后由 moyudong 于 2012-11-2 10:06 编辑

OA系统如何测试发送公文的性能呢?
还是像“查询”、“登录”事务一样么?
录制了在点击发送按钮时,发送公文事务的脚本
lr_rendezvous("send");
lr_start_transaction("send");
web_submit_data("waittingDoc.do",
  "Action=http://172.16.28.9/missive/waittingDoc.do",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://172.16.28.9/missive/waittingDoc.do?op=process&type=common&workitemId=578976&instId=78554&isSms=0",
  "Snapshot=t11.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=checkRtx", "Value=", ENDITEM,
  "Name=checkSms", "Value=", ENDITEM,
  "Name=checkMail", "Value=", ENDITEM,
  "Name=workitemId", "Value=578976", ENDITEM,
  "Name=instId", "Value=78554", ENDITEM,
  "Name=type", "Value=common", ENDITEM,
  "Name=sendtarget", "Value=60115;345,杨旭辉,2;:", ENDITEM,
  "Name=op", "Value=send", ENDITEM,
  EXTRARES,
  "Url=../common/styles/default/images/Gwcl_TopBarBg.gif", "Referer=http://172.16.28.9/missive/processing/workitem/Form.do?action=docInstToolsView&docInstId=0&workItemId=0&formSetId=2&nextWorkItemId=0", ENDITEM,
  "Url=../common/styles/default/images/gwcl_toolbarbg.gif", "Referer=http://172.16.28.9/missive/processing/workitem/Form.do?action=docInstToolsView&docInstId=0&workItemId=0&formSetId=2&nextWorkItemId=0", ENDITEM,
  "Url=../common/styles/default/images/SendBgline.gif", "Referer=http://172.16.28.9/missive/processing/workitem/Form.do?action=docInstToolsView&docInstId=0&workItemId=0&formSetId=2&nextWorkItemId=0", ENDITEM,
  "Url=../common/styles/default/images/Gwcl_TopBarBlock.gif", "Referer=http://172.16.28.9/missive/processing/workitem/Form.do?action=docInstToolsView&docInstId=0&workItemId=0&formSetId=2&nextWorkItemId=0", ENDITEM,
  LAST);
lr_end_transaction("send",LR_AUTO);

我觉得能录到脚本,说明已经捕捉到了发送这个功能传给服务器的请求了,是不是?
但是,我回放和运行这个脚本的时候,发送者的发件箱是有很多发送的公文,但是收件箱里面只有我录制时产生的那一份而已,怎么解释?

觉得这个“发送”和“下载”是不是有点儿类似?
作者: ljj149850508    时间: 2012-10-31 14:30
需要关联一下~!
作者: moyudong    时间: 2012-11-2 10:03
回复 2# ljj149850508


    关联?具体是什么?讲解下思路好么?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2