Forum Discussion

Mika_Turpeinen's avatar
11 years ago

Alias mapping, object not found

- Aplication runing on Windows, bases on Powerbuilder

-  test db on local machine, bases on Oracle



Error type: Alias mapping, object to be edited not found / regotnized (if new form)

error log follows in the end of post



Error description and case:

------------

Steps taken:

START KEYWORD TEST, RECORD START



1) Opening new custromer creation page

2) Giving input information like name, adress etc

 - page is a very basic like table where "click on cell and type in info".

3) END RECORDING



4) RUN RECORDED case

5) Form is opened OK, new customer page (having new ID) appears and page is visible, NO ERRORS



6) Test case start to wait CASE fails:




An error occurred while accessing the "VScroll" method or property of the "pbdw125" object.

The object or one of its parent objects was not found.



Object Whose Method or Property Was Accessed














Alias:

Aliases.oscar.wndFNWND3125.MDIClient.wndFNWND3125.PBTabControl32_100.Perustiedot.pbdw125

Name mapping item:

NameMapping.Sys.oscar.wndFNWND3125.MDIClient.wndFNWND3125.PBTabControl32_100.Perustiedot.pbdw125


Object That Was Not Found














Alias:

Aliases.oscar.wndFNWND3125.MDIClient.wndFNWND3125

Name mapping item:

NameMapping.Sys.oscar.wndFNWND3125.MDIClient.wndFNWND3125


Click the link above to view and configure mapping settings for the missing object.



NOTE:

I believe this is something similar than in the namespacing mapping tutorial related to dynamic object with weblinks, even if here the linkends are not changing.



I see that when using object spytool, it does not recotnice the "name" or "address" cells as own regotnizable objects but instead, "red boxes" the whole table. By table I mean the area containg all the basic information cells

- however if using "point and Fix-tool" and then clicking the "name" cell (and ending with shift+ctrl+a) I can dig more information about the cell in question.



NOTE 2.



As long as I run the test for the original "new customer" then case run and information gets entered, but when creating a new template (having next  running/free) number the fail appears.



Same error applies with object PBTabControl32_100



If any further informatin needed, please let me know.








1 Reply


  • Hi Mika,


     


    I would suggest that you explore the problematic NameMapping.Sys.oscar.wndFNWND3125.MDIClient.wndFNWND3125 object. Judging by the error, TestComplete cannot find this exact object during the test run. Check which properties are used to map this object in the Name Mapping editor and analyze if their values aren't changed when executing the test. Most probably, not reliable properties were used for mapping. 


    I recommend that you watch the following video demonstrating how to work with objects whose properties may change: