在我的代码中,我从 aSapTree
和
String key = tree.findNodeKeyByPath(path);
tree.selectNode(key);
tree.nodeContextMenu(key);
但不是打开上下文菜单,而是导致异常:
java.lang.RuntimeException: Error executing 'NodeContextMenu'. An unexpected COM exception occurred at SAP Frontend Server (). .
at com.borland.silktest.jtf.internal.Agent.convertException(Agent.java:294)
at com.borland.silktest.jtf.internal.Agent.invoke(Agent.java:394)
at com.borland.silktest.jtf.AbstractTestObject.invoke(AbstractTestObject.java:462)
at com.microfocus.silktest.jtf.sap.SapTree.nodeContextMenu(SapTree.java:1490)
...
nodeContextMenu()文档对于潜在问题不是很有帮助。
如果不是我这样做的方式,我如何打开上下文菜单?