Jump to content
 English      
???en.wpa.text.hpweb2003.home??? ???en.wpa.text.hpweb2003.prodserv??? ???en.wpa.text.hpweb2003.support??? ???en.wpa.text.hpweb2003.solutions??? ???en.wpa.text.hpweb2003.buy???
» ???en.wpa.text.hpweb2003.contact???
     Forums advanced search
HP.com Home
IT Resource Center Forums > Management software and system tools > Quality Center

QTP - Load recovery scenario from perl script

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: QTP - Load recovery scenario from perl script      Add to my favorites
Craig Callison
Oct 20, 2009 22:39:33 GMT   

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


Sort Answers By: Date or Points
Thomas Köppner Expert in this area This member has accumulated 500 or more points
Oct 26, 2009 15:34:43 GMT    Unassigned

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.
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.