11-03-2011, 07:25 AM
(10-31-2011, 06:24 PM)soumen Wrote: Replace this line in your code:
If total=(((cint(uf)+cint(df)) *cint(nop))+tax) Then
Check if you get the error anymore.
(10-20-2011, 03:00 PM)kalyani0820@gmail.com Wrote:(10-19-2011, 09:45 PM)sreekanth chilam Wrote: Hi ,
It seems you missed out the attachment.
Reattach the script once.
I have attached the script..........
(10-20-2011, 06:23 AM)vIns Wrote: Hi,
Do you have 'Option Explicit' in the top. ?
If yes, plz remove and try.
I have deleted option explicit statement, executed it, test executed without errors but test failed. I have attached the screenshot.
i had to change that statement, i had to split that statement as shown:
a=cint(uf)+cint(df)
b=a*cint(nop)
If total=cint(b)+tax then
Reporter.ReportEvent micPass,"calculation testing","correct calculation"
else
Reporter.ReportEvent micfail,"calculation testing","wrong total"
End If
Is this the only way in qtp??
Please help?
Thanks
kalyani