Local_val = DataTable("colname",dtLocalSheet)
RunTime_val = DataTabel("colname",dtGlobalSheet)
if(trim(Local_val)=trim(RunTime_val)) Then
' 去掉空格
MsgBox "Validation success"
Reporter.reportevent 0, "values comparison","validation is passed"
Else
MsgBox "Validation unsuccesssfull"
Reporter.reportenent 1, "values comparison","validation is failed"
End if

本文介绍了一种比较两个不同来源表格中指定列数据一致性的方法。通过读取本地表和运行时表中的列数据并进行对比,实现数据验证。如果两组数据相同,则验证成功;反之,则验证失败。

被折叠的 条评论
为什么被折叠?



