Contributions
Re: Java List area error, can't find any data in cell
I didn't notice that generictable object, thanks for that! I think we are getting closer to something. I cannot getModel on that object, nor getRowCount. I do see new function like ClickCell in Actions. But when I try to execute these, I get the error getRow(Column)Count not found like earlier (see Action.png for list of actions). Most function I tried under Java seems to work, I found a function called getItemCount, this one counts the number of row in the table. Is it possible that this is not the native table object of Java? What can I do in this case? Thanks!2KViews0likes3CommentsRe: Java List area error, can't find any data in cell
I did: (Sorry for the long name) a = Aliases.java.PersonaldispositionRunner.RootPane.null_layeredPane.Panel.ComponentOrientationAwareJSplitPane.Panel.GBasicPanel.IvuWorkflowContainer.DisponierenView.Panel.GrafischeDispoEditor.mainSplitPane.SwitchableResourceListPane.resourceVOsForSelectedPlanningLevel.outerSplitPane.splitPane.genericTableControl.GIndexedCollectionControl_ListArea ret = a.SwingObject("genericTableControl") and i get: Unable to find the object SwingObject("genericTableControl"). See Additional Information for details. 11:56:01 Normal2KViews0likes5CommentsRe: Java List area error, can't find any data in cell
It seems like the property we see in the object property changes depending on the type of data I am mapping the control. I have mapped the control as a list and what i see in the object's property changed, with stuff like separator, etc. The thing is, these field are empty, and TestComplete, for some reason allow me to map them. So this does not really tell is, what kind of control that is... is there any ways for us to know for certain the control type? thank you.3.6KViews0likes0CommentsJava List area error, can't find any data in cell
Hi all, I'm new to TestComplete, I have been using TestComplete to write tests for a certain Desktop Java application. Most controls can be "seen". but there are some controls that seems to be "customized" and cannot be interacted with aside from a black box point of view. It would be great if I could interact with them using functions. I have multiples controls that cannot be interacted with, there are trees, tables and lists. I will only discuss one at the time so it doesn't get too confusing. I have this control (full name): Sys.Process("java").SwingObject("PersonaldispositionRunner", "Personnel Dispatch", 0).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("JPanel", "", 0).SwingObject("ComponentOrientationAwareJSplitPane", "", 0).SwingObject("JPanel", "", 0).SwingObject("GBasicPanel", "", 0).SwingObject("IvuWorkflowContainer", "", 0).SwingObject("DisponierenView", "", 0).SwingObject("JPanel", "", 0).SwingObject("GrafischeDispoEditor", "", 0).SwingObject("mainSplitPane").SwingObject("SwitchableResourceListPane", "", 0).SwingObject("resourceVOsForSelectedPlanningLevel").SwingObject("outerSplitPane").SwingObject("splitPane").SwingObject("genericTableControl").SwingObject("GIndexedCollectionControl$ListArea", "", 0) Full class name: de.gebit.trend.gui.list.GIndexedCollectionControl$ListArea I assumed this control was a List control, so I mapped his full class name in List control, and when I want to interact with cells I get: Error: Error An error occurred. Possible reasons: 1. The application stopped responding. 2. The application was compiled incorrectly (see the Open Applications topic in the help system). 3. An error occurred in TestComplete/TestExecute. Technical information: 97 0x80020006 (Unknown name.) getModel The getModel Method does not exist in Methods tab. I then tried to map it as table: Error: Error An error occurred. Possible reasons: 1. The application stopped responding. 2. The application was compiled incorrectly (see the Open Applications topic in the help system). 3. An error occurred in TestComplete/TestExecute. Technical information: 97 0x80020006 (Unknown name.) getColumnCount The getColumnCount Method does not exist in Methods tab. So from my understanding, TestComplete needs to use these native functions (getModelfor lists and getColumnCount for tables) which were not native function for this specific control. I have attached two screenshots from object spy, if this information is useful. Assuming that any kind of class mapping require a "get" function, I also attached all function with the get keyword. I was wondering is there anyways for this table to work? Thanks all for your time!4.7KViews0likes16Comments