I have action1, action2, action3 r there.my query is while
executing if i get any error in action1 i want exit from
here itself, otherwise execute action2, if i get any error
in action2 i want exit from hereitself, like this,what is
the method for this?
Answers were Sorted based on User's Feedback
Answer / uday kumar_anem
I am little bit confused.. if an error occurs in action1,
then if you want to exit from test or if an error occurs in
action2, then if you want to exit from the test then use...
ExitTest, which results exits from the execution of the
current test.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kiran
first u need to capture error number if!=0 then u can use
exit test medthod
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / karunakar
we can use ExitAction method.it exits from the current action.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / venkateshwarlu
for this, i think we can recovery scenario manager,in this
we have to select post recovery action as proceed to next
action.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prasad reddy
'Disables all the reporting stuff
Reporter.Filter=rfDisableAll
-----------Script---------
'Enable all the repoting stuff
Reporter.filter=rfEnableAll
When ever we get result Action 1 genarat this script
we will get exat result
------------Any questions plz ask me
prasad4urs@gmail.com-----------------
Prasad reddy
Is This Answer Correct ? | 0 Yes | 1 No |
qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?
What are the various types of Actions in UFT?
Suppose U change the script whether it affect the object properties of the object in the object repository
What is Modular framework and Keyword drive framework? Explain
In how may ways we can use checkpoints to an application using QTP?
What is DOM
What is an expert view and keyword view?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
Is it possible to switch between recording modes during a test creation?
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?
How do u use Database checkpoints and what are the use?
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