How to capture screen shots when an error occurs?
Answer Posted / uday kumar_anem
In QTP8.2, we can choose the run settings
Test -> settings -> Run tab -> set ON save image of desktop
when error occurs checkbox
In QTP 9.2, follow the below navigation:
Tools -> Options -> Run tab -> In the drop down list box "On
Error"(default) is selected for "Save step screen capture
to results"
And even we can also configure, whether we have to proceed
to next step or stop the test execution by following below
navigation:
File Menu -> Settings -> Run Tab -> Choose the required
action from the "Whenever an error occurs during run
session" drop down list box.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
For which type of project the iterative model is suitable?
How qtp identifies objects?
Explain how you can find length of array in qtp?
In qtp, how you can get the last character from a string?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
What is object spy in quicktest professional (qtp)?
How is the Bitmap checkpoint different from Image checkpoint?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
What is an object repository?
How many types of actions are there in quicktest professional (qtp)?
How are actions and functions different in QTP?
How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538
what is test scheduleling?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so