标题: 无效的调用MID函数 [打印本页] 作者: wuminru_01 时间: 2013-10-31 14:21 标题: 无效的调用MID函数 请大家帮忙看看执行QTP时系统提示如下错误
Dim strText
Dim Cus_Count_String
Dim Cus_Count_Pos
Dim Cus_Count_Len
Dim Cus_Count_Num
Cus_Count_String="Total Customer Count"
Dim Total_Tickets_String
Dim Total_Tickets_Pos
Dim Total_Tickets_Len
Dim Total_Tickets_Num
Total_Tickets_String="Total Tickets Count"
Dim Total_Sales_String
Dim Total_Sales_Pos
Dim Total_Sale_Len
Dim Total_Sale_Num
Total_Sales_String="Total Sales"
window("Flight Reservation").Activate
window("Flight Reservation").WinMenu("Menu").Select"Analysis;Reports..."
If window("记事本").Exist Then
reporter.ReportEvent micPass,"报告","报告生成并被打开"
strText=window("记事本").WinEditor("Edit").GetROProperty("text")
Reporter.ReportEvent micPass,"报告文本","报告文本是:"&strText