原帖由 sidneylover 于 2007-4-6 17:32 发表
设置run all rows 了没
设过了,由于是初学,我基本上没有动过qtp中的设置。
我的脚本:
Browser("Add an Operator page").Page("Add an Operator page").WebEdit("C_BUSINESS_UNIT").Set "CSOFFICE"
Browser("Add an Operator page").Page("Add an Operator page").WebEdit("C_USER_ID").Set "superofficer"
Browser("Add an Operator page").Page("Add an Operator page").WebEdit("C_PASSWORD").SetSecure "4615e999ce9060c51412e9dff80371518a2add42786b"
Browser("Add an Operator page").Page("Add an Operator page").Image("Logon_button_hover").FireEvent "onmouseover"
Browser("Add an Operator page").Page("Add an Operator page").Image("Logon_button_hover").Click
Browser("Add an Operator page").Page("Add an Operator page_2").Link("Operator FAP").Click
Browser("Add an Operator page").Page("Add an Operator page_3").Link("Operator FAP").Click
Browser("Add an Operator page").Page("Add an Operator page_3").Link("Operator Maintain").Click
Browser("Add an Operator page").Page("Add an Operator page_3").Link("Add Operator").Click
Browser("Add an Operator page").Page("Add an Operator page_4").WebButton("CANCEL").Click
Browser("Add an Operator page").Page("Add an Operator page_5").Link("Add Operator").Click
Browser("Add an Operator page").Page("Add an Operator page_4").WebButton("CONTINUE").Click
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("C_USER_ID").Check CheckPoint("C_USER_ID")
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("C_USER_ID").Set DataTable("p_Text1", dtGlobalSheet)
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("C_USER_DESC").Set "123"
Browser("Add an Operator page").Page("Add an Operator page_6").WebList("C_UNIT_CODE").Select "sophietest2"
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("EFFECTIVE_DATE").Click
Browser("Add an Operator page").Page("Add an Operator page_6").Frame("meizzCalendarIframe").WebElement("Close").Click
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("EFFECTIVE_DATE").Click
Browser("Add an Operator page").Page("Add an Operator page_6").Frame("meizzCalendarIframe").WebElement("Close_2").Click
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("EXPIRY_DATE").Click
Browser("Add an Operator page").Page("Add an Operator page_6").Frame("meizzCalendarIframe").WebElement("Close").Click
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("C_FIRST_PWD").SetSecure "4615e9ce63b8158c0d7d2a4771b9"
Browser("Add an Operator page").Page("Add an Operator page_6").WebEdit("C_CONFIRM_PASSWORD").SetSecure "4615e9d24ba8b3e17e05e5ba0764"
Browser("Add an Operator page").Page("Add an Operator page_6").WebButton("CONFIRM").Click
Browser("Add an Operator page").Page("Add an Operator page_7").Link("Authorise Operator").Click
Browser("Add an Operator page").Page("Add an Operator page_8").WebCheckBox("_Sel_CheckBox").Set "ON"
Browser("Add an Operator page").Page("Add an Operator page_8").WebButton("APPROVAL").Click
Browser("Add an Operator page").Page("Add an Operator page_9").Frame("work").WebEdit("C_FIRST_PWD").SetSecure "4615e9dc1b89ff3b98f47a40eade"
Browser("Add an Operator page").Page("Add an Operator page_9").Frame("work").WebEdit("C_CONFIRM_PASSWORD").SetSecure "4615e9e40f81ac0d21481dbe51b0"
Browser("Add an Operator page").Dialog("Windows Internet Explorer").WinButton("OK").Click
Browser("Add an Operator page").Page("Add an Operator page_9").WebButton("CONFIRM").Click
Browser("Add an Operator page").Page("Add an Operator page_10").Link("Delete Operator").Click
Browser("Add an Operator page").Page("Add an Operator page_11").WebCheckBox("_Sel_CheckBox").Set "ON"
Browser("Add an Operator page").Page("Add an Operator page_11").WebButton("DELETE").Click
Browser("Add an Operator page").Dialog("Windows Internet Explorer").WinButton("OK").Click
Browser("Add an Operator page").Page("Add an Operator page_12").WebButton("<<BACK").Click
Browser("Add an Operator page").Page("Add an Operator page_13").WebButton("CANCEL").Click
Browser("Add an Operator page").Page("Add an Operator page_14").Link("Authorise Operator").Click
Browser("Add an Operator page").Page("Add an Operator page_4").WebCheckBox("_Sel_CheckBox").Set "ON"
Browser("Add an Operator page").Page("Add an Operator page_4").WebButton("APPROVAL").Click
Browser("Add an Operator page").Page("Add an Operator page_9").Frame("work").WebEdit("C_FIRST_PWD").SetSecure "4615ea01dcb673a74e6787cca7a2"
Browser("Add an Operator page").Page("Add an Operator page_9").Frame("work").WebEdit("C_CONFIRM_PASSWORD").SetSecure "4615ea07912c26e389dd2a7eb3fd"
Browser("Add an Operator page").Dialog("Windows Internet Explorer").WinButton("OK").Click
Browser("Add an Operator page").Page("Add an Operator page_9").WebButton("CONFIRM").Click
Browser("Add an Operator page").Page("Add an Operator page_15").WebButton("<<BACK").Click
Browser("Add an Operator page").Page("Add an Operator page_16").WebButton("CANCEL").Click
Browser("Add an Operator page").Page("Add an Operator page_17").Image("Secure Log Out").Click