Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare local sheet values with run time data table values?
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Please,Can anyone tell me how can I compare local sheet data with the value in run time data table?
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
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
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
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
Thanx alot Sreekanth...I was able to execute the above script successfully ang get the expected output.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,046 11-01-2019, 10:25 PM
Last Post: jayraocourts
Sad How To Find Dropdown Object based on Values from the dropdown list mesg2anil 12 32,814 12-19-2017, 10:25 PM
Last Post: sandy2404
Toungue how to get values of childItem of a webtable caze 17 117,579 11-06-2017, 01:05 PM
Last Post: sivaji
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,589 01-17-2017, 11:05 AM
Last Post: JACKSPARROW
  Inserting variable values into Descriptive Programming Functions eske99 2 3,143 12-18-2015, 01:47 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)