51Testing软件测试论坛

标题: 插入事物运行时错误 [打印本页]

作者: tom3114    时间: 2009-4-16 17:14
标题: 插入事物运行时错误
各位好,我是新手,最近在学习LR。

脚本如下:
lr_start_transaction("Login");

web_submit_data("Login.aspx",
    "Action=http://172.24.12.227/EMS/Logi
    "Method=POST",
    "RecContentType=text/html",
    "Referer=http://172.24.12.227/EMS/",
    "Snapshot=t2.inf",
    "Mode=HTML",
    ITEMDATA,
    "Name=__LASTFOCUS", "Value=", ENDITEM
    "Name=__EVENTTARGET", "Value=btnLogin
    "Name=__EVENTARGUMENT", "Value=", END
    "Name=__VIEWSTATE", "Value=/wEPDwULLT
    "Name=txtAssocID", "Value=700001088888",
    "Name=txtPassword", "Value=test
    "Name=__EVENTVALIDATION", "Value=/wEW
    EXTRARES,
    "Url=Styles/LeftNav.css", "Referer=ht
    "Url=Styles/brand.css", "Referer=http
    "Url=Styles/Message.css", "Referer=ht
    "Url=Images/bg2.jpg", "Referer=http:/
    "Url=WebResource.axd?d=bVLDd2DI-Iejue
    "Url=Images/title2.jpg", "Referer=htt
    "Url=Images/satyamLogo.jpg", "Referer
    "Url=Images/Login/leftCorn_pale.gif",
    LAST);


lr_end_transaction("End_Login", LR_AUTO);

执行部分log:如下:

Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Error: Vuser started transaction "Login", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "Login" ended with "Fail" status (Duration: 4.4225).
Ending action vuser_end.

是何问题?duration设置问题吗?在哪设置呢?
作者: tom3114    时间: 2009-4-16 17:20
明白了,原来事物名称不一致。
作者: iori    时间: 2009-4-16 17:37
对,插入事务的时候名称一定要相同




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