I apologize if I am posting in the wrong location. Is there a way to load a QTP recovery scenario from a perl script? I am using Win32::OLE to run the tests. Here is what I have so far:
eval
{
$qtpApp = Win32::OLE->new( 'Quicktest.Application', 'Quit' ) or die print "ERROR - Unable to create the QTP Object";
};
die $@ if ($@);
$qtpApp->Open($testPath,1,0);
$qtpApp->Launch;
$qtpApp->{Visible} = 0;
$qtResultsOpt = Win32::OLE->new( 'QuickTest.RunResultsOptions', 'Quit' );
$qtResultsOpt->{ResultsLocation} = $resultPath;
$qtpApp->Test->Run($qtResultsOpt);
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
Yes, you can use the RecoveryScenario object. See in the QTP Online Help: Advanced References, Automation Object Model, RecoveryScenario Object. There is an example in VB syntax which shows how to use it. All you need to do is to transalate the example to perl syntax.