HP UFT (QTP) Can't Identify Delphi Objects

We're using Delphi 2005 (version 9) with orpheous.
When we use the Object Spy in HP UFT, a generic name is shown instead of the actual delphi name. For example, our Report Screen would be shown as "DelphiWindow" and additional screens will be shown as "DelphiWindow_1", "DelphiWindow_2", etc.  
Obviously this doesn't work when we try to run the test because it can't identify the correct window. What do I need to do to allow UFT to retrieve the name correctly? I have tried doing the same steps in TestComplete and it was able to identify the objects correctly. What's the difference between TestComplete and UFT with regards to object identification?

You can use the object repository to learn objects in your application.
- Click Object Repository Icon
- Click "+" icon to add the objects you want UFT to learn.
- Your screen will then get a pointing icon which you can point ot the application window / panel/tab you want to learn. 
- Select "Learn All objects" on next window. This is preferred since you can later decide which ones you want to keep.
- All the objects will be learned and added to your object repository according to their hierarchy.
- You can now refer these objects in your test cases 
Few points to note : 
- You need to compile your test application using the MicDelphiAgent.pas in project DPR.
- Some Delphi custom controls such as DevX are still not detected completely. So you need to use the Delphi Add In Extensibility Guide or "HP Unified Functional Testing Add-Ins Guide" to see how to extend the Delphi Addin to recognize the custom controls you require.
- In my experience, all standard Delphi VCL, Windows, Raize are detectable.

Similar Messages

  • QTP can't recognized objects on page

    Hello,
    I have a very important question that I need your help with.
    I'm using QTP 10 for a long time.
    Today I started fixing one of the tests suddenly the test start failing in new stage in the code that used to be working.
    The QTP can't recognized the object and notify that it doesn't exist.
    Now every time I run this test again it fails in this stage and I'm stuck.
    What can I do to solve it? I already closed the QTP and restarted the computer.
    I'll appreciate your help.
    Thanks in advanced,
    Ayelet 

    Here's a bigger/better quality image. I hope it helps.
    Notice how the Text Caption is selected in the timeline and it's properties are visible on the right. Yet the item itself is nowhere to be seen on the stage. Also, now it seems to have disappeared from the thumbnail.

  • QTP unable to identify objects in a flex application

    Hi,
    I am having an application that runs on flex 3.6 SDK. I am trying to automate the same using QTP 10.0, but, I am unable to identify the objects. I have installed the Flex 4.5 add-in, but still unable to recognize objects.
    Upon browsing some forums, i found that I need to compile the files "automation.swc, automation_agent.swc, automation_dmv.swc, qtp.swc, automation_flashflexkit.swc" by including them in <include-libraries> ...</include-libraries>  tags in "flex-config.xml" file present under "C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.6.0\frameworks". We did that, but still, not able to identify objects.
    It would be of great help to me if any some one could tell if I am missing out anything ?

    hello,
    not only need the objects be enclosed by their parent frame, but they also need to be "on top of it" ... meaning if you imagine your report layout as a set of layers that you look at from the side, your "layout surface" would be the bottom most layer and then all objects would be layered on top of each other. in this view, only objects that are in layers above a particular frame can become its children. after that the relationship is determined whether or not an object is inside a frame or not.
    you might want to check your object navigator to see whether or not the particular objects are actually in the right place in the hierarchy.
    thanks,
    ph.

  • How I can identify business objects in a table?

    Hi,
    Can someone advise me how to identify business objects and events created in a Ar Customers ( ARXCUDCI) table?
    Many thanks,
    regards
    Ilinka

    Depending on how big your spreadsheet is and how frequently you want to do this you might want to contruct insert statements in excel, then run these. I have done this to load a few hundred rows for a one off test on dev.
    e.g. if you have values 1 and 'a' in you spread sheet and want to insert them in to table xxx col1 & 2:
    | /|   A   |   B   |    C
    |1 |col1   |col2   |
    |2 |      1|a      |="insert into xxx ("&$A$1&","&B1&") values ("&A2&",'"&B2&"');"then paste the contents of colum C
    insert into xxx (col1,col2) values (1,'a');into sqlplus or a script.

  • Help needed in Identifying dependent objects

    Hi all,
    Basically I need to identify the object related to Integration which is not there in one of our software product under development as compare to other(existing) already developed so that we can apply them in the product being developed.
    I need to find these below from few of the packages given to me
    &#61550;     dependent packages/functions to read and update data
    1)     Tables
    2)     Packages
    3)     Triggers
    4)     Views
    5) Jobs
    I would request you to help me in carrying out this faster, I have plsql Developer tool, how to start with so that i m not mess up with and complete it faster.
    Regards,
    Asif.

    Thankx Pierre Forstmann.
    Dear All,
    Can any one help me in identifying all dependent objects for one object.
    Will this works for me I found from the above link provided,
    as for the time being I do not have the dba priviliges...
    If I am able to get the dba prviliges will this code works for me to get the
    required information....
    Regards,
    AAK.
    SQL>
    create or replace type myScalarType as object
    ( lvl number,
    rname varchar2(30),
    rowner varchar2(30),
    rtype varchar2(30)
    Type created.
    SQL> create or replace type myTableType as table of
    myScalarType
    Type created.
    SQL>
    SQL> create or replace
    function depends( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2 default USER,
    p_lvl in number default 1 ) return myTableType
    AUTHID CURRENT_USER
    as
    l_data myTableType := myTableType();
    procedure recurse( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2,
    p_lvl in number )
    is
    begin
    if ( l_data.count > 1000 )
    then
    raise_application_error( -20001, 'probable connect by loop,
    aborting' );
    end if;
    for x in ( select /*+ first_rows */ referenced_name,
    referenced_owner,
    referenced_type
    from dba_dependencies
    where owner = p_owner
    and type = p_type
    and name = p_name )
    loop
    l_data.extend;
    l_data(l_data.count) :=
    myScalarType( p_lvl, x.referenced_name,
    x.referenced_owner, x.referenced_type );
    recurse( x.referenced_name, x.referenced_type,
    x.referenced_owner, p_lvl+1);
    end loop;
    end;
    begin
    l_data.extend;
    l_data(l_data.count) := myScalarType( 1, p_name, p_owner, p_type );
    recurse( p_name, p_type, p_owner, 2 );
    return l_data;
    end;
    Function created.
    SQL>
    SQL> set timing on
    SQL>
    SQL> select * from table(
    cast(depends('DBA_VIEWS','VIEW','SYS') as myTableType ) );
    ---select * from table(cast('USER_VIEWS') as myTableType ) );
    LVL     RNAME          ROWNER          RTYPE
    1     DBA_VIEWS     SYS               VIEW
    2     TYPED_VIEW$ SYS               TABLE
    2     USER$          SYS               TABLE
    2     VIEW$          SYS               TABLE
    2     OBJ$          SYS               TABLE
    2     SUPEROBJ$ SYS               TABLE
    2     STANDARD SYS               PACKAGE
    7 rows selected.
    Elapsed: 00:00:00.42
    SQL>
    SQL>
    SQL> drop table t;
    Table dropped.
    Elapsed: 00:00:00.13
    SQL> create table t ( x int );
    Table created.
    Elapsed: 00:00:00.03
    SQL> create or replace view v1 as select * from t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v2 as select t.x xx, v1.x yy from
    v1, t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v3 as select v2.*, t.x xxx, v1.x
    yyy from v2, v1, t;
    View created.
    Elapsed: 00:00:00.07
    SQL>
    SQL>
    SQL> select lpad(' ',lvl*2,' ') || rowner || '.' || rname ||
    '(' || rtype || ')' hierarchy
    2 from table( cast(depends('V3','VIEW') as myTableType ) );
    HIERARCHY
    OPS$TKYTE.V3(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V2(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    8 rows selected.
    Message was edited by:
    460425

  • Can't load COM object to display my reports

    Hi,
    We have created a few reports using Crystal Report with visual studio 2008. Works fine on our development machines.. but not on the server. I installed the redistribuable x86 on the server, but I always get this error (see below). I tracked down the error number to be 'access denied'.. I don't know which directory/files I need to give access.
    I'm clueless.. any help would be greatly appreciated!
    Server Error in '/' Application.
    Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.
    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically \ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.]
       CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +182
    [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
       CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
       Crystale.Rapport.Page_Load(Object sender, EventArgs e) in D:\My Documents\Projects\Crystale\Crystale\Rapport.aspx.cs:35
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    Hi Martin,
    Have a look to this thread :
    [Crystal Reports 2008 Retrieving the COM class factory;
    Check that have you applied runtimes on server if not then
    Try with this link to download runtimes :
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    Select product,version,Software Type (optional)
    Hope that helps!!
    Regards,
    Shweta
    Edited by: Shweta Sharma on Sep 16, 2008 10:44 PM

  • Where we can test the SAP objects by using eCATT?

    Hi Abapers,
    Where we can test the SAP objects by using eCATT?Is there any separate software or tool we have to install or its included in the SAP itself?
    I have ECC5.0 version?how can i configure or install eCATT?
    Please explain the step by step procedure?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Hi
    Extended Computer Aided Test Tool (eCATT) to create and execute functional tests for software. The primary aim is the automatic testing of SAP business processes. Each test generates a detailed log that documents the test process and results.
    Features
    You can:
    · Test transactions and reports
    · Call BAPIs and function modules
    · Test remote systems
    · Check authorizations (user profiles)
    · Test database updates
    · Test the effects of changes to customizing tables
    · Test the effect of changes to customizing settings
    · Check system messages
    Constraints
    eCATT runs in a system based on SAP Web Application Server 6.20 or higher. However, you can use this system to test systems with Release 4.6C or higher.
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    hope this helps.
    Regards
    Anji

  • Can not cast from object to int

    Hi All,
    I have the following bunch of code
    Session session;
              session = getSessionFactory().openSession();
              Query query;
              int MaxPageId = 0;
              List list;
              try{
                   query = session.createQuery("select max(emp.id) from EmpBean emp");
                   list = query.list();
                   MaxPageId = (int) list.get(0);
                   return MaxPageId;
              catch(Exception e){
                   System.out.println(e.getMessage());
              return MaxPageId;
    The query executed successfully but when i get the max id in a integer variable by the following statement
    MaxPageId = (int) list.get(0);
    I get the following error "can not cast from object to int"
    Please suggest for the same.
    -Thanks

    Cast to an Integer, not an int, and let autoboxing turn the Integer into an int.
    int maxPageId;
    maxPageId = (Integer) list.get(0);You can't cast objects into primitives.
    Autoboxing isn't casting.
    And use Java naming conventions. Local variables start with a lower-case letter.

  • Is there inbuild Handler in weblogic using which i can get the MessageContext object

    HI,
    I need MessageContext object in my application but i dont want to use the Handler,As
    there is AxisEngine in axis soap engine,is there any similar implementation in
    weblogic.
    AxisEngine.getCurrentMessageContext() we can get the MessageContext what about
    in weblogic..any body any idea???
    Regards,
    Akhil Nagpal

    HI,
    yeah i had to make use of Handler to get the MessageContext object and play with
    that.
    Thanks & Regards
    Akhil Nagpal
    "manoj cheenath" <[email protected]> wrote:
    You can get to MessageContext from a handler. Check out an example of
    handler
    to see how you can get Message out of MessageContext.
    -manoj
    "Akhil Nagpal" <[email protected]> wrote in message
    news:[email protected]..
    HI manoj,
    Thanks for your reply.otherwise i thought that i wont get any morehelp
    on this
    forum :-) ...
    anyway its good that we will have such thing in next version,duringthe
    development
    i feel that more functioanlity should be in build in appserver. Likeone
    more
    thing i could not find out is how we can get the "message" object inweblogic
    like we can in axis using its MessageContext class's static method.if it
    is there
    can you please let me knwo about that.
    The other problem i had to make use of handler and my appl is workingas of
    now :-)
    Regards
    Akhil Nagpal
    "manoj cheenath" <[email protected]> wrote:
    You can not do this in WLS 7.0. The next major release (WLS 8.1) will
    fix
    this problem.
    -manoj
    "Akhil Nagpal" <[email protected]> wrote in message
    news:[email protected]..
    HI,
    I need MessageContext object in my application but i dont want
    to
    use
    the Handler,As
    there is AxisEngine in axis soap engine,is there any similarimplementation in
    weblogic.
    AxisEngine.getCurrentMessageContext() we can get the MessageContextwhat
    about
    in weblogic..any body any idea???
    Regards,
    Akhil Nagpal

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • I have uploaded photos from the past and they are grouped by dates.  How do I seperate those photos into their own folder/album so that I can easily identify the contents.  Also, what is the difference between Album, Smart Album and folders?

    I have uploaded photos from the past and they are automatically arranged by date.  As a result, there are many events grouped into one library/event/folder/album (not sure of the proper terminology) I'd like to separate them into folders/albums/smart albums so that I can easily identify the contents.  How do I do that and do I delete the originals?

    It would be good to take the tutorials and learn iPhoto - these are for the previous version but the concepts are the same and much of the command is the same - and it would be a worthwhile investment of time to take the iphoto tutorials - http://www.apple.com/findouthow/photos/ - they are very helpful and will save you a lot of time and frustration. - also the tutorials in iPhoto Help will be helpful - while iPhoto is easy and intuitive it does have a learning curve and it will save you time and pain if you spend a few minutes learning the basics
    as to organization - events are generally time based and are the basic automatic organization - you can merge and split them to make them work better for you but they are not a good way to do detailed organization - best to leave them time based
    albums are logical things that contain photos and are just pointers to the photo in the event so they take no extra space and all changes to a photo anywhere are reflected everywhere
    Smart albums are the same except they are automatically filled based on the criteria you set when you create them
    Folders are containers that you create and a folder can contain albums, smart albums or other folders so they are a big help in organization - like a vacation folder that holds folders for France, USA, China with each of thos folders holding albums of photos from the country
    LN

  • How can i convert an object to stream of chars or bytes?

    how can i convert an object to stream of chars or bytes?

    One way is the serialization mechanism. There are examples and explanations of it in the Java tutorial: http://java.sun.com/docs/books/tutorial/essential/io/serialization.html

  • I have very little space left on the hard drive on my macbook, on my storage report it says "other" is taking up more than two thirds of the space on the hardrive. How can I identify what these files are?

    I have very little space left on the hard drive on my macbook, on my storage report it says "other" is taking up more than two thirds of the space on the hardrive. How can I identify what these files are?

    Hello,
    There is free software you can download that gives you a graphical image of what files are used on your hard drive. http://www.derlien.com/
    This may help you clean down your hard drive for more space.
    Best of luck

  • Can I export solid objects into Illustrator / InDesign CS2 and maintain vector format

    Can Adobe 3D export solid objects in vector format into Illustrator or InDesign CS2 suite?
    I'm interested in taking solid 3D objects developed in Pro/E 2.0 and import from Adobe 3D into Adobe Illustrator & InDesign in vector format for page layout. I want to import solid objects in vector format and maintain color scheme and surface textures.
    I'm running 3D trial version and can successfully import 3D objects (asm & prt files) solid views from Pro/E but can only export wireframe views from Adobe 3D Toolkit into Illustrator or InDesign (CS2). Solid objects first have to get rendered in a raster format before importing into Illustrator.
    If this function is not supported does anyone have experience doing this using Quadraspace or Right Hemisphere 3D software?

    Any help???? After 2 weeks I still can't learn from Adobe or Right Hemisphere people how to import solid objects in vector format into Illustrator with color and surface textures in place. All imported objects in vector format are converted to a wireframe or line format unless they are first rasterized.

  • How can I put 1 object in a photo in color but the rest in black and white?

    I have iPhoto '08, and I have seen many photos that have interesting effects like the one I mentioned before. I would really like to know how I can allow the main object in the photo to remain its natural color, but change the rest of the picture to black/white or sepia.

    Welcome to the Apple Discussions. You mean like this?
    Click to view full size
    This was created by Photoshop. But it's a little over the top for must of what we want to do. Photoshop Elements can do the same as can some of Larry's other suggestions. I've worked with PSE and it's an excellent editor with about 75% of PS's capabilities at about 1/7 the price.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

Maybe you are looking for