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 |
How to do Laod testing for web based Application?
Why QTP is termed as a Record and Playback tool?
Can we test the Word Document using QTP Tool? We should test the page size,page set up, paragraph indentation and spacing, font size of the the character int the page.
How to load the object repository at run time?
What are the different types of recovery operation?
What is the difference between a Function and Action in QTP?
What is the extension for Recovery scenario?
What is the difference between analog and low level recording?
what is difference between normal mode and fast mode?
what is the hierachy of Descreptive programming?
What are the trigger events in qtp?
To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0