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


Please Help Members By Posting Answers For Below Questions

For which type of project the iterative model is suitable?

1372


How qtp identifies objects?

559


Explain how you can find length of array in qtp?

596


In qtp, how you can get the last character from a string?

549


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

694






tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1519


What is object spy in quicktest professional (qtp)?

533


How is the Bitmap checkpoint different from Image checkpoint?

619


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1354


What is an object repository?

597


How many types of actions are there in quicktest professional (qtp)?

528


How are actions and functions different in QTP?

648


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

3604


what is test scheduleling?

2005


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

2248