How did you achieve reusability via QTP?
Answer / shrikant
By just creating a function you can achieve re-usability.
For example: 3 testers are automating an application. All 3 wanted to login. So instead of creating code by all 3 people only one person create login code in a function. That function can be used by other 2. This is also called Modular programming.
Or
In all the web applications common web objects will be there like
1.button--click
2.edit----enter characters
3.radio button---click
4.drop down----select
5.link-----click
6.check box----check in or out
etc........for all the objects make one generic functions add it in library files make use in all the actions this is called as re-useability.
| Is This Answer Correct ? | 1 Yes | 0 No |
Does QTP supports Linux or Unix OS?.If so which scripting is preferable? Shell we do record and playback
Have you worked with QC?
What is a reusable action?
In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.
What is the difference between wait and synchronization point?
New to QTP: In a qtp flight booking application, I tried to parameterize the to and from drop down lists using data table, depending on ur drop down selection it will pop up a list of flights. Here I am not finding a way to select flight randomly from given list... Thanks in advance guys.
What is the diff between image and bitmap check point?
how do you do database testing in qtp
How to get Traceability matrix from TD?
Does QTP record on Objects created on XWindows Environment?
how do u handle an object without name using QTP 9.2?
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