51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1508|回复: 3
打印 上一主题 下一主题

[求助] 请问,事务 是在 web_submit_data函数前插入,还是在之后插入啊?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-12-5 16:06:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
想在我想统计 登录系统的响应时间,这个事务应该在哪个地方插入呢?是在 web_submit_data函数前插入,还是在之后插入啊?

下面的代码是插在了web_submit_data函数后面,不知对不对:
Action()
{


        lr_rendezvous("login_jh");/*插入集合点*/

        web_submit_data("login.action",
                "Action=http://192.168.8.3:8061/lims/login.action?method=goin",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.8.3:8061/lims/login.action;jsessionid=4A7617FBD8182400ECE308350EDE5839?method=login",
                "Snapshot=t8.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=loginname", "Value={username}", ENDITEM,
                "Name=loginpwd", "Value=123456", ENDITEM,
                "Name=verifycode", "Value=", ENDITEM,
                "Name=uri", "Value=", ENDITEM,
                "Name=RandomData", "Value=", ENDITEM,
                "Name=SerialNumber", "Value=", ENDITEM,
                "Name=Digest", "Value=", ENDITEM,
                "Name=logintype", "Value=0", ENDITEM,
                EXTRARES,
                "Url=js/lhgdialog/skins/chrome.css", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=Style/hzlan/css/red/index_01.jpg", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=Style/hzlan/css/red/shouye-23.jpg", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=Style/hzlan/images/main_c_bg.gif", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=Style/hzlan/css/images/rImgBg.jpg", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=js/lhgdialog/skins/chrome/lhgdg_x.gif", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=js/lhgdialog/skins/chrome/lhgdg_bg.gif", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=js/lhgdialog/skins/chrome/wait.gif", "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain", ENDITEM,
                "Url=Style/hzlan/css/images/place.gif", "Referer=http://192.168.8.3:8061/lims/topage.action?topage=main", ENDITEM,
                "Url=Style/hzlan/css/images/placeon.gif", "Referer=http://192.168.8.3:8061/lims/topage.action?topage=main", ENDITEM,
                "Url=Style/hzlan/css/images/index_46.jpg", "Referer=http://192.168.8.3:8061/lims/topage.action?topage=leftmenu", ENDITEM,
                "Url=Style/hzlan/images/bg1.gif", "Referer=http://192.168.8.3:8061/lims/topage.action?topage=leftmenu", ENDITEM,
                "Url=Style/hzlan/images/banner_ele_r1.png", "Referer=http://192.168.8.3:8061/lims/topage.action?topage=leftmenu", ENDITEM,
                "Url=Style/hzlan/images/bg2.gif", "Referer=http://192.168.8.3:8061/lims/topage.action?topage=leftmenu", ENDITEM,
                LAST);

        lr_start_transaction("login");/*插入事务,事务统计开始*/

        web_url("topage.action",
                "URL=http://192.168.8.3:8061/lims/topage.action?parunid=Jdfbbc7521264c7ea8c2b7d0a831ca9e",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain",
                "Snapshot=t9.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=Style/hzlan/css/images/index_46.jpg", "Referer=http://192.168.8.3:8061/lims/topage.action?parunid=Jdfbbc7521264c7ea8c2b7d0a831ca9e", ENDITEM,
                LAST);

        web_url("leadershouye.action",
                "URL=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain",
                "Snapshot=t10.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=Script/datePicker/WdatePicker.js", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                "Url=Script/datePicker/skin/WdatePicker.css", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                "Url=Style/hzlan/images/shouye/tit_R.jpg", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                "Url=Style/hzlan/images/shouye/tit_M.jpg", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                "Url=Style/hzlan/images/shouye/icon01.gif", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                "Url=Style/hzlan/images/shouye/midUl_bg.jpg", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                "Url=Style/hzlan/images/shouye/right_bor.jpg", "Referer=http://192.168.8.3:8061/lims/leadershouye.action?method=showLeaderpage", ENDITEM,
                LAST);

        web_url("My97DatePicker.htm",
                "URL=http://192.168.8.3:8061/lims/Script/datePicker/My97DatePicker.htm",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.8.3:8061/lims/login.action?method=showMain",
                "Snapshot=t11.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=lang/zh-cn.js", ENDITEM,
                "Url=skin/default/datepicker.css", ENDITEM,
                "Url=skin/whyGreen/datepicker.css", ENDITEM,
                "Url=skin/default/img.gif", ENDITEM,
                LAST);

        lr_end_transaction("login", LR_AUTO);/*插入事务,事务统计结束*/

        return 0;
}
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-12-5 16:09:42 | 只看该作者
另外,集合点 的插入 我放在了  web_submit_data函数之前,这样对不对啊?
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2012-12-6 08:39:24 | 只看该作者
这里放在前面
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2012-12-6 10:40:57 | 只看该作者
事务放在submit前面,集合点放在事务前面
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-7 18:44 , Processed in 0.065214 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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