In QTP whether is it possible to call a function from one
action to another action?
Answer Posted / sandeep
Do more simple thing.
Store any function in any .vbs file.
Either link that .vbs file as a Resouce to QTP.
Or
Dynamically link .vbs file with QTP usign
ExecuteFile <file path >
Once either of the step is done then you can call any
function stored in .vbs file
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are the different kinds of test steps?
What is reusable action?
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
How you know that a test case is a regression test case
What is a quick test professional?
How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
How to interact tool & application build in QTP?
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
Explain the concept of object repository and how QTP recognizes objects?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
What are the types of properties that quick test learns while recording?
What is object spy in quicktest professional (qtp)?
What is Port testing. Whhen will you perform?
What are the technologies supported by qtp?