tom3114 发表于 2009-4-16 17:14:04

插入事物运行时错误

各位好,我是新手,最近在学习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:27

明白了,原来事物名称不一致。

iori 发表于 2009-4-16 17:37:42

对,插入事务的时候名称一定要相同
页: [1]
查看完整版本: 插入事物运行时错误