Forum Discussion

sbilsborough's avatar
sbilsborough
New Contributor
13 years ago

Is there a limit to the no of levels that can be recognised in object mapping

Hi all,



I've just started to use TestComplete to automate a brand new system, IE8, c#, ASP.net with some

infragistics web controls thrown in for good measure too.



Earlier versions of our software was automating with no problem.  We have redeveloped a number of screens and it is my aim to now automate these.  I've run in to a problem from the very beginning of the new screens that have been developed.



If I go and identify a control on the screen, then play back the script to, say,  click a value in the drop-down list of the control I'm getting 'the object does not exist' message.



If I drill down and take a look at the 'additional information'  it looks to me as though not all the levels in the object have been saved in the object map?  I've noticed that there are a deep no of levels and I was wandering if there was a limit to how many could be stored in testcomplete?



I can even  select an object from the screen, place it in script and perform a 'highlight object' and the object cannot be found. 



So, is there a limit to the no of levels that can be recognised via testcomplete, and is there anything I can do to the object map to simplify this?  I sincerely hope so, otherwise this tool will have to be shelved.



I've uploaded a graphic of the error message from the log, please don't hesitate to ask if more information is needed.



Thanks

Sarah


1 Reply


  • Hi Sarah,


     


    It looks like clicking the drop-down menu is the first action on the page after TestComplete has opened it. Most probably, the page wasn't fully loaded when the test was executing - that's why, TestComplete couldn't locate the object marked as missing in the Test Log. To learn how to overcome this behavior, refer to theWaiting for Web Pages in Keyword Tests article.


     


    Besides that, I suggest that you go through the other ways to get web objects on a page - this will allow you not to use the full path to the object.