ClickItem works when record but fail when replay on Javax.swing.tree
i encounter a very weird and urgent problem, when i use record script :
def Test2():
tree = Aliases.Horizon.AbstractShowViewAction_ContentAssistDialog2.RootPane.null_layeredPane.MenuBar.Panel.ScrollPane.Viewport.Tree
tree.ExpandItem("null|Add View:|Algo Trading")
tree.CollapseItem("null|Add View:|Algo Trading")
tree.ExpandItem("null|Add View:|Algo Trading")
tree.ClickItem("null|Add View:|Algo Trading|Backtesting")
tree.ExpandItem("null|Add View:|Algo Trading|Backtesting")
tree.ClickItem("null|Add View:|Algo Trading|Backtesting|Backtest Manager")
tree.ClickItem("null|Add View:|Algo Trading|Backtesting|Sessions Replayer")
i can see ClickItem work well, but when i try replay it, it fails:
error:
The test run has stopped because the "Stop on Error" setting is enabled.
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: 527 0x80070057 (The parameter is incorrect.) .
Tested object: Aliases.Horizon.AbstractShowViewAction_ContentAssistDialog2.RootPane.null_layeredPane.MenuBar.Panel.ScrollPane.Viewport.Tree (Sys.Process("java", 2).SwingObject("AbstractShowViewAction$ContentAssistDialog", "", -1, 4).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("JMenuBar", "", 0).SwingObject("JPanel", "", 0).SwingObject("JScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("JTree", "", 0))