Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verifying value in calculated field
#1
Not Solved
Hi all

I have a field called txtSalary and a field called txtSalaryDeduction
when i enter a value in txtSalary, txtSalaryDeduction is populated with the value of txtSalary minus 8%

Ex. entered 400.000 and the value of txtSalaryDeduction is: 368.000

how do I (in my qtp script) verify that this value is correct ?

I can get the value of txtSalary with the getRoProperty, but how do i do the calculation ?
Reply
#2
Not Solved
ExpectedSalDeduct = txtSalary - (txtSalary * 8)/100

get the value from txtSalaryDeduction text field using GetRoProperty (say ActualSalDeduct) and validate

If Int(ExpectedSalDeduct) = Int(ActualSalDeduct) then

----
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Verifying the sort function mahadevan.swamy 1 7,158 11-14-2008, 01:49 PM
Last Post: hieutue
  Verifying if "onmouseover" - event has been activated QADBA 2 2,374 07-31-2008, 07:57 PM
Last Post: kishoreinchennai
  Verifying HTML doc with QTP...??? swame_sp 1 2,585 07-25-2008, 02:53 PM
Last Post: vamshiram

Forum Jump:


Users browsing this thread: 2 Guest(s)