Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
comparing two values
#3
Not Solved
Hi All,

I am comparing two values , If both values are equal test case should pass,

here is what I am doing


Code:
a=datatable("Checked_Text",dtGlobalSheet)
b=datatable("B",dtGlobalSheet)
If strcomp(a,b)=0 then
PASS Testcase
Else

FAIL Testcase

endif

I wonder what I need to do in PASS and FAIL?
Reply


Messages In This Thread
comparing two values - by abcdqtp - 11-30-2011, 07:36 AM
RE: comparing two values - by ravi.gajul - 11-30-2011, 05:49 PM
RE: comparing two values - by hamzaz - 04-16-2012, 04:53 PM
RE: comparing two values - by saikri - 04-16-2012, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Comparing two unsorted excel columns ProTester 2 2,512 09-13-2018, 02:11 PM
Last Post: ProTester
  comparing two excel sheets in QTP kodhanrajesh 0 4,231 08-31-2011, 09:01 AM
Last Post: kodhanrajesh
MyBB Comparing the mail content through QTP/DP gsjegan 1 3,979 06-17-2009, 03:12 PM
Last Post: chaitanyaponangi
  Comparing two bitmap files. lskmuni2000 5 5,048 07-17-2008, 06:11 PM
Last Post: lskmuni2000
  How to compare local sheet values with run time data table values? test71 2 8,159 03-14-2008, 07:09 PM
Last Post: test71

Forum Jump:


Users browsing this thread: 1 Guest(s)