51Testing软件测试论坛

标题: 事务该放在那啊? [打印本页]

作者: miaojun890518    时间: 2013-6-18 16:31
标题: 事务该放在那啊?
点击登录之后的action就是下面的这个,我的事务要放在哪里啊?不是应该有个成功的页面吗?


这个已经是登录成功了!

Action()
{

        lr_rendezvous("denglujihedian");/*登录集合点*/


        web_submit_data("Login.action",
                "Action=http://192.168.1.9:9090/K-PTMS/Login.action",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.1.9:9090/K-PTMS/login.jsp",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=user.loginName", "Value=37200601209", ENDITEM,
                "Name=user.password", "Value=2009", ENDITEM,
                "Name=imgCode", "Value=", ENDITEM,
                "Name=Submit2", "Value=", ENDITEM,
                EXTRARES,
        "Url=images/menu_bg.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/men_right.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/table_bg.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a4_bg.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/bg.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/right.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/li.gif", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a1.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a1_right.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/logo.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/more.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a4_title.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a3.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a3_left.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a1_left.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                "Url=images/a3_right.jpg", "Referer=http://192.168.1.9:9090/K-PTMS/Index.action", ENDITEM,
                LAST);

   
       


        return 0;
}
作者: icestick8586    时间: 2013-6-18 17:33
你在登入前添加一个,登入结束后添加一个哇,成对的,同名
作者: linneiwei    时间: 2013-6-19 18:46
最好是每个页面添加一个事务,这样通过事务的响应时间就可以知道访问该页面占用多少时间,是否在合理范围,可以参考2-5-8原则。

参考:http://kylinpet.com/docs/kylinPET_Browser.html




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