Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 11.52---Type mismatch error
#1
Not Solved
Hi,

Im getting type mismatch error while calling a function

eg
Code:
function add(a,b)
sum=a+b
msgbox sum
end function
call add(10,20)

the error is: Type mismatch:add

note:i didn come across this error in UFT 11.5 but UFT 11.52 is showing this error
Reply
#2
Not Solved
It is vbscript so testing tool shouldnt matter until there exists a keyword by the name of ADD in UFT. I put it up on a vbs file and it worked fine for me.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
While working with vbs file its working fine ,but whenever i use this in a function library and call this during a test run it is showing me this error.
Reply
#4
Not Solved
I have exact same problem, please let me know what you DID.
Reply
#5
Not Solved
hi all

The symptoms suggest add has become a keyword in UFT. Just out of curiosity, did you try changing the name of the function from add to something else, like add2Num
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 2,812 05-01-2018, 06:46 PM
Last Post: zunebuggy
  cannot use the type method on object and submit is not working jove1776 5 8,369 01-27-2015, 10:08 PM
Last Post: Parke
  How to import .xlsx file type to QTP qtped 3 6,287 03-27-2014, 01:33 PM
Last Post: Ankur
  type mismatch error in QTP QAlearningQTP 1 6,788 02-04-2014, 08:14 AM
Last Post: QAlearningQTP
Question Deatils on Split action with Nested type sams001 0 3,150 10-30-2012, 03:03 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)