Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18488 Posts in 4838 Topics- by 32654 Members - Latest Member: revitvm
 

AdvancedQTP forums have been nominated as a finalist in ATI’s 2nd annual automation honors awards!

We’d like to thank you for your continued support and participation, and urge you to hurry and vote.

Make you voice count! 


Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Unable to run recovery when object not in repository    (Read 650 times)
radek
User
*
Offline Offline

Posts: 8


WWW
« on: February 27, 2008, 07:05:45 AM »

Hi all,

QTP: 9.0

I am using descriptive programming and would like to use recovery scenario. Recovery should call my user-defined function. Everything works fine, on error the recovery function is called. But the code inside the function is not run and in the report I see the following:

Error: Element not found.

Function call is in the report described like this:

Call the function: RecoveryFunction1
defined in: C:\QT\Library_Recovery.vbs
using the arguments:
1. The object of the current test step
2. The method of the current test step
3. The actual method's arguments
4. The actual method's result

When the error appears (and therefore recovery function is called) on an object, which is defined in repository (e.g. not using DP), recovery function is run properly.

So my question is - does recovery work only on objects defined in repository? If so, is there any other way to recover from an enexpected error when using DP?

Any help would be appreciated.

Radek
Logged
yassa
Administrator
Advanced User
*****
Offline Offline

Posts: 879



WWW
« Reply #1 on: February 27, 2008, 10:58:49 PM »

I've frequently used DP in recovery scenario's custom functions.
I usually use .ChildObjects on the function's Object parameter, and go on from there.

Are you sure the DP command is written properly? Try using it outside the recovery scenario and see if that works.
Logged

Yaron Assa

AdvancedQTP Site Administrator
Pages: [1]   Go Up
Print
Jump to: