Contributions
Re: object of PopupMenu doesn't exist during the play
sorry for the enclosed screenshot, i don't know why the file name was changed after having uploading. Just for the information: 1x.pngrefersto 1.png 2x.png refers to 2.png 3x.png refers to 3.png 4x.png refers to 4.png 5x.png refers to 5.png again, sorry for the inconvenience.1.4KViews0likes0Commentsobject of PopupMenu doesn't exist during the play
Hello, I have a quick question about popup menu which doesn't exist during the play. During the java webstart test, error throws when trying to executing the code: Call panel.PopupMenu.MenuItem1.Click(31, 8) As enclosed 2.png, missing object refers to PopupMenu. As can be seen from 1.png and 3.png, i went to both NameMapping and Object Browser and verified that it's the truth that PopupMenu doesn't exist at all! That's weird, I read through the help of "Handling the 'Object Does Not Exist' Error", i think most likely it's the problem of "The object has not been created by the time TestComplete tries to obtain it." However, looking at "Possible Causes of the Problem", the Waiting for Process or Window Activation doesn't help in this case. Enclosed you'll see the 4.png, basically i don't understand why the popup menu appears during the test but PopupMenu can't be seen in the NameMapping and Object Browser. In this case, could you please shed some light here what i can do? Before that, i did a try with Object Spy, as shown by 5.png, the hiarachy display correctly. So the problem for me is why PopupMenu doesn't exist during the test, neither NameMapping nor Object Browser, although it can be identified by Object Spy. Thanks for your help, it's really a headache for me! Lucien20KViews0likes2Commentswhere to rename the objects to trouble-shooting anbiguous recognition issue
Hello, This is a generic question about handling " ambiguous recognition of application objects." We recorded the script and then play back, noticed this ambiguous recognition issue at the line of following script: calltable.cell1.linkTheformTabledatabases1JIdt57.textnodeTheformTabledatabases1JI.Click(24, 7) The exception is like below: "There are several objects in the system that match the recognition attributes of the "table" mapped object. This may cause the "Object not found" error. Objects Sys.Process("IEXPLORE").Page("http://192.168.0.218:8080/jmapadmin/index.jsp").Frame("center").Form("theForm").Panel("element_box").Panel(1).Table("theForm_dataPaginator") Sys.Process("IEXPLORE").Page("http://192.168.0.218:8080/jmapadmin/index.jsp").Frame("center").Form("theForm").Panel("element_box").Panel(1).Table("theForm_tableDatabases") To solve the problem, you may need to modify mapping settings for the "table" object or one of its parent objects." To trouble-shooting, we switch and back between Object Browser and NameMapping. To our knowledge, the TestComplete wants to find the "table" object, but as can be seen from Object Browser, it finds two Table, one is dataPaginagor, other is tableDatabases, both of them refers to the same MappedName. That might explains why TestComplete can't distinguish which is which. Please correct me if i'm wrong here, :) If it is so, the problem is what we can do in this case. We go through the help manual: "Resolving the Problem As we have said above, the warning message indicates that there are several objects in your tested application that meet the specified condition. So, to resolve the problem we recommend that you specify a mapping condition that will be met only by one object in the application. If it is impossible, try to rename the objects in your application so that only one of them meets the specified condition." Here i'm just wondering exactly which objects in the application should be renamed and where we can do this. In the NameMapping as enclosed NameMapping2.pgn? We don't have any experience on anbiguous recognition, but seems it's very important skill. Please shed some light here, great thanks! Lucien20KViews0likes1Commentany hint from TestComplete IDE on gramatical script error?
Hello, This is a quick question about error in the script editor. Enclosed is an example, error will appear in the line of code, like in this case, semicolon is not supposed to be added to vbscript. Indeed, we're wondering whether the TestComplete IDE has any hint on the error, whatever it is gramatical or not. It might helps. I try the F1 but it just shows no topic found. Thanks for your time, Lucien14KViews0likes3Commentshow to judge the current language for non-Unicode programs
Hello, This is a generic question about by which method we can check the language for non-Unicode programs. As can be seen from 2011-12-12 2-42-56 PM.png, we need judge the current language for non-Unicode programs and then call the corresponding operation. Personally i try the sys.OSInfo.xxx, so far, i haven't find a sub-method to get this information. Could you please shed some light here, thanks so much! Lucien19KViews0likes3Comments- 908Views0likes0Comments
when Object Spy can't identify the elements on web page
Hello, This is a generic question about Object Spy can't identify the elements in the web page. During the debugging, by chance we noticed this issue. As can be seen from 2011-12-12 11-48-32 AM.png, we launched the Object Spy and try to identify the button of Settings, however, for some reason, only the whole page was highlighted. That partly explains why we have problem on the playback. And it also brings us the problem when to call the method like Click() on this property. We understand it's normal sometimes the elements on web page can't be identified. From what we see, during the test, most of the elements can be identified. So, here just want to get some advice. in this kind of situation, what we can do. How we can get TestComplete understand the elements we want to operation like Click, Many thanks! Lucien19KViews0likes1Comment