Forum Discussion

mohit_testcompl's avatar
mohit_testcompl
Occasional Contributor
14 years ago

Object is highlighting in a Test A and through error in Test B.

"Test A" contains a script "VerifymenuItem" that is used to verify the menu item of a toolbar named "MenuBar_Application".. and working fine for it.

But while I am using the same script for the "Test B" to do the same thing, it throws an error stating "Object Does not exist".



when I go through the NameMapping file of test A, I am able to highlight "MenuBar_Application" Toolbar but unable to highlight it when I am viewing it in test B Name Mapping editor.



And when I try to open the "MenuBar_Application" in the "Object Browser" it says "The underlying object does not exist" while it opens successfully in the test A.



Both the test (Test A and Test B) are under same project suite and using the same name mapping file.

5 Replies

  • Hi,



    What is the missing object posted to the log in test B? Most probably, an object which is located up the hierarchy wasn't found because it is mapped by some properties which differ between A and B - like an URL of a tested page, a window caption or something similar.
  • mohit_testcompl's avatar
    mohit_testcompl
    Occasional Contributor
    Object does not exist message come on log. Object and Namemapping is same for both the tests.
  • Which exact object is reported in the 'Missing object section' of the error?
  • Have you tried following the suggestions provided in the help topic, a link to which has been posted to your test log? What were the results?



    A list of the corresponding help topics (depending on specific error messages) can be found in the Handling the 'Object Not Found' Errors help topic. Suggestions provided in this topic are usually enough to diagnose such problems.