我们正在开发一个 java swing 应用程序并尝试使用 TestComplete 工具进行自动化测试。我们能够识别 jTree 对象,但无法识别驻留在 jtree 内的 jbutton 对象。无论如何我们可以识别这个吗?
TestComplete 像这样识别对象树:
{Sys.Process("javaw").SwingObject("Application").SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject(" ApplicationBusyLayer").SwingObject("FrameContainer").SwingObject("DmsContentPane").SwingObject("JLayeredPane", "", 0).SwingObject("ApplicationCardPanel").SwingObject("ApplicationPanelContainer").SwingObject("ApplicationBusyLayer") .SwingObject("DetailView", "", 0).SwingObject("InventoryUpdateDetailPanel", "", 0).SwingObject("JTabbedPane", "Designer", 0).SwingObject("JPanel", "", 0)。 SwingObject("JSplitPane", "", 0).SwingObject("JSplitPane", "", 0).SwingObject("JSplitPane", "", 0).SwingObject("JPanel", "", 0).SwingObject("FilterPanel", "", 0).SwingObject("JXLayer" , "", 0).SwingObject("JScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("FilterTree", "", 0)}