'@Description 获取日期所在星期数(英文格式)
Private Function GetWeekDayEn(ByRef theDate)
Select Case WeekDay(theDate)
Case 2
GetWeekDayEn = "Monday"
Case 3
GetWeekDayEn = "Tuesday"
Case 4
GetWeekDayEn = "Wednesday"
Case 5
GetWeekDayEn = "Thursday"
Case 6
GetWeekDayEn = "Friday"
Case 7
GetWeekDayEn = "Saturday"
Case 1
GetWeekDayEn = "Sunday"
end select
End Function
'判断表格中日期是否晚于当前日期
If GenerateDate(DataTable("DateOfFlight", "FlightsButtonTest")) <= Date Then
Msgbox "输入的日期不正确,执行下一条记录"
Reporter.ReportEvent micWarning, "测试数据失效", "DateOfFlight晚于当前日期"
ExitActionIteration
End If