03-11-2008, 10:10 AM
Hi ,
Just check with the below :
Step1. Intially read the values from local sheet...(Local_val=datatable("colname",dtLocalSheet)
step2. Read the values from runtime datatable ..(runtime_val=datatable("colname",dtGlobalSheet)
(note:here runtime datatable is nothing but a trial/duplicate copy of globalsheet)
step3. Validate the step1 & step2 and then display the results
Just check with the below :
Step1. Intially read the values from local sheet...(Local_val=datatable("colname",dtLocalSheet)
step2. Read the values from runtime datatable ..(runtime_val=datatable("colname",dtGlobalSheet)
(note:here runtime datatable is nothing but a trial/duplicate copy of globalsheet)
step3. Validate the step1 & step2 and then display the results
Code:
if (trim(Local_val)=trim(runtime_val)) then
msgbox "Validation success"
reporter.reportevent 0,"values comparison","validation is passed"
else
msgbox "validation unsuccessfull"
reporter.reportevent 1,"values comparison","validation is failed"
end if