how to call a funtion in a script? i have saved the login
scipt in notepad. with extension .vbs. But when i am
calling the function with the keyword CALL <Function Name>.
its not working out. can any one give me a clue how to call
the external functions. with example.

Answer Posted / hemakumar.m

ExecuteFile "Path of vbs file"
Call Login()

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to call win runner script in qtp?

627


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1709


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1441


What are the recording modes in wave event?

1538


Explain the concept of object repository and how quicktest professional recognises objects?

560






What is Test Fusion Report in QTP?

622


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1390


wht type of User defined functions or Java Releated functions do we write in VB scripting

1833


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

1489


how to test Web application using QTP software

1334


What are the various types of Actions in UFT?

593


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1491


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

576


Through array we can execute the testcase how ? give me example

1403


How will you test a keyboard?

605