Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to call the userdefined functions to script? If i am
stored 'add()' function in Library functions folder. i want
to cal that function in my script.

Answer Posted / murali raju

Instead of add name put the add1 as ur function
name...because add is keyword

Function add1(a,b)
c=a+b
add1=c
End Function 'put the function .vbs file and save it c
drive with the file name addition.vbs

write the below script in ur qtp

ExecuteFile "c:\addition.vbs"
x=add1(2,4)
msgbox x 'it will be prints 6 in the msgbox

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the architecture of your project? Can any one answer for this question plz........

1834


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1969


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1700


What is the Difference between copy to action and call to action?

1062


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

4451


What is the basic concept of quicktest professional (qtp)?

1007


when u script reveiwing in which area u more concentrates?

1833


What will be happen if i load object repository at run time, but it has already associated.

1707


What is regular expression?

1001


How to use checkpoints in qtp ?

958


How many types of Automation frameworks are there in UFT? Describe them.

973


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

2030


Explain how you can find length of array in qtp?

1005


How would you export a script from one pc to another in qtp?

1053


Why is Client side image is preferred over server side image?

1844