51Testing软件测试论坛

标题: 录制的脚本运行下来很顺利,可是最后的report却报failed,怎么回事啊? [打印本页]

作者: Sophie.zhang.cs    时间: 2007-4-6 17:19
标题: 录制的脚本运行下来很顺利,可是最后的report却报failed,怎么回事啊?
求助各位大虾啦, 我录制的脚本使用了参数,table显示如下:其中第一列为常量,第二列是四个变量。




当脚本跑完了以后窗口自动关闭,report如下:




实际上整个过程中只有设置check point的地方(C_USER_ID)failed,我看不出来哪里错了,而且很奇怪,为什么四次的value显示的都是我123,而我设置的四个变量的值都是不一样的。

作者: sidneylover    时间: 2007-4-6 17:32
设置run all rows 了没
作者: 迷雾精灵    时间: 2007-4-6 17:32
把脚本贴上来看看
作者: Sophie.zhang.cs    时间: 2007-4-6 17:59
原帖由 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

请大家教我一下如何从脚本中看出问题啊,不胜感激阿!!
作者: Sophie.zhang.cs    时间: 2007-4-6 18:10
刚刚发现了自己犯的错误了,
checkpoint应该加在参数化的text后面,我加在 前面了。
不过更改了顺序后第一循环过去了,后面三个循环却显示失败了。




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