vbscript - QTP, Unspecified Error when calling a specific function -


i'm facing problem qtp 11 (quick test professional), problem occurred when trying call function, qtp display run time error ("general run error.") poopup message box.

i had tried many time resolve issue, dont understand causing error.

when call function "function library" error displays. unless took function action function work.

have 1 faced issue ?

any appreciated!

sometimes "general run error" error when attempting call function , pass incorrect number of parameters in function call.

can explain last paragraph more? when run function via fl, works? should not running functions directly in fl, inside of actions.

here's example:

action

test_function("hello", "42") test_function(42, "hello") 

function library

function test_function(stextstring, iintnumber)   inewintnumber = iintnumber + 1   msgbox "string: " & stextstring & vbnewline & "int + 1: " & inewintnumber end function 

in function library, second line (inewintnumber = inewintnumber + 1) may throw "general run error" in action due invalid cast on variable.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -