【软件自动化测试-QTP实战技能 17】== QTP_Compare local sheet values with run time data table values

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

 

你可能感兴趣的:(【软件自动化测试-QTP实战技能 17】== QTP_Compare local sheet values with run time data table values)