how can we handle exceptional handling in qtp
Answer Posted / mogal
We can handle exceptions siuing below ways
1.On Error Resume Next - Skip the Error and continue the next stpes of execution
2. Recovery Scenarios
Select Resources > Recovery Scenario Manager. Create new Scenario > Specify the Trigger Event > Specify the Recovery Operation > Specify Post-recovery test run options
3. Conditional Statements ( If, ElseIf,Else,Do,While,...)
4.Synchronization Methods (Wait,WaitProperty,Sync,Exist)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
With what extension you can save the list of tests in a file to run in test batch runner?
what is run action?
Explain measuring transaction.
What is action? How many types of actions are there in qtp?
What is test object?
What is the difference between run time object and test object?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
What is the expert view?
Can U Explain about QTP tool from older version to latest version also its differences?
What VBScript operators, functions, and statements do you use in QuickTest Professional?
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
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
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
what are the limitations of smart identification in qtp 9.0