求求各位帮我看看,急死我了
Error -16985 : Failed to end Transaction http://localhost:8080/app/ExpenseTypeList.action (by name). Please check that you made a call to start transaction operation.为什么会出这个错,允许多个用户用同一个用户和密码登陆的,录制的不是不用加事物吗?可是为什么会出这个错,是我设循环出的错吗,该怎么做
Services.StartTransaction "login"
'Browser("Untitled Document").Page("Untitled Document").WebEdit("username").Set "sa" '~
'Browser("Untitled Document").Page("Untitled Document").WebEdit("password").SetSecure "422d4b6dbc28c4b8" '~
'Browser("Untitled Document").Page("Untitled Document").Image("dla2").FireEvent "onmouseover" '~
'Browser("Untitled Document").Page("Untitled Document").Image("dla2").Click '~
Services.EndTransaction "login"
Browser("Untitled Document").Page("Untitled Document").Sync
Browser("Untitled Document").Navigate "http://localhost:8080/app/Login.action", "", "username=sa&password=sasa", "Content-Type: application/x-www-form-urlencoded"+vbCrLf+""
'Browser("Untitled Document").Page("html page").Frame("menu").Link("ϵͳ¹ÜÀí").Click'~ '~'Browser("Untitled Document").Page("html page").Frame("menu").Link("ϵͳ¹ÜÀí").Click'-
'Browser("Untitled Document").Page("html page").Frame("menu").Link("ÔÚÏß±íµ¥").Click'~ '~'Browser("Untitled Document").Page("html page").Frame("menu").Link("ÔÚÏß±íµ¥").Click'-
'Browser("Untitled Document").Page("html page").Frame("menu").Link("¿ªÖ§ÀàÐÍ").Click'~ '~'Browser("Untitled Document").Page("html page").Frame("menu").Link("¿ªÖ§ÀàÐÍ").Click'-
Browser("Untitled Document").Page("html page").Sync
Services.StartTransaction "list"
Browser("Untitled Document").Navigate "http://localhost:8080/app/ExpenseTypeList.action", "main"
Services.EndTransaction "list"
'Browser("Untitled Document").Page("html page_3").Frame("main").Link("н¨").Click'~ '~'Browser("Untitled Document").Page("html page_3").Frame("main").Link("н¨").Click'-
Browser("Untitled Document").Page("html page_3").Sync
Browser("Untitled Document").Navigate "http://localhost:8080/app/ExpenseTypeEditDisplay.action?expensetypeid=-1", "main", "pageno=&sort=null&direction=1¤tPage=1¤tURL=ExpenseTypeList.action", "Content-Type: application/x-www-form-urlencoded"+vbCrLf+""
'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("expensetype").Click'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("expensetype").Click'-
'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("expensetype").Set "34"'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("expensetype").Set "34"'-
'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("description").Click'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("description").Click'-
'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("description").Set "er"'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("description").Set "er"'-
'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("residstr").Click'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("residstr").Click'-
'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("residstr").Set "e45"'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").WebEdit("residstr").Set "e45"'-
'Browser("Untitled Document").Page("html page_4").Frame("main").Link("´æµµ").Click'~ '~'Browser("Untitled Document").Page("html page_4").Frame("main").Link("´æµµ").Click'-
Browser("Untitled Document").Page("html page_4").Sync
Services.StartTransaction "update"
Browser("Untitled Document").Navigate "http://localhost:8080/app/ExpenseTypeUpdate.action", "main", "expensetype=34&description=er&residstr=e45&expensetypeid=-1&timeStamp=0&URLStack=ExpenseTypeList.action¤tURL=&linkURL=ExpenseTypeEditDisplay.action%3Fexpensetypeid%3D-1", "Content-Type: application/x-www-form-urlencoded"+vbCrLf+""
Services.EndTransaction "update"
'Browser("Untitled Document").Page("html page_5").Frame("main").Link("¹Ø±Õ").Click'~ '~'Browser("Untitled Document").Page("html page_5").Frame("main").Link("¹Ø±Õ").Click'-
Browser("Untitled Document").Page("html page_5").Sync
Browser("Untitled Document").Navigate "http://localhost:8080/app/ExpenseTypeList.action", "main", "expensetypeid=206&timeStamp=0¤tURL=&URLStack=", "Content-Type: application/x-www-form-urlencoded"+vbCrLf+""
Browser("Untitled Document").Page("html page_6").Sync 我到底哪里没加结束事物呀~
求求你们帮帮我呀 Error -16985 : Failed to end Transaction http://localhost:8080/app/Login.action (by name). Please check that you made a call to start transaction operation.
又换成这个错了,为什么,为什么~ 我也想知道哎,我现在也是这个错,就是不知道哪里出错了。。。 重新录制个脚本就不可以了吗? 貌似这脚本是QTP?
页:
[1]