how to recall a function in QTP?

Answer Posted / rajanya

Exist function can be used (called) to more than one test.
We can call the Function by calling the function name into
our script,

"Public Function Launch_Browser(byval URL)"

For the above function, u can call Function name -
Launch_Browser to your script by declaring variables too..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of qtp?

666


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1474


How to use actions in qtp ?

672


How you can find the absolute value of the number in qtp?

638


How to analyzing test results using quicktest professional?

730






tell me QTP standards ?plz

1607


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1568


If object is not recognized by qtp but the object is standard object what is your approach?

696


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

2517


If I change the property value at runtime is it effect is object repository?

710


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1613


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1577


how to know no.of mails in our g mail by using vb-script

1863


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

2267


How can you write the scripts that operate on different objects depending on run-time information?

2216