我正在学习 tosca,目前我们正在尝试为遗留 Java Swing 应用程序运行回归测试套件。
我的测试套件包含 4 个模块(在 中JTree
),单击节点时失败。
我在模块上收到的错误是,
at.tosca.javaengine.common.exceptions.ControlException:找不到节点或节点路径!
上面消息中的“JavaEngineException.txt”中包含的详细信息
显示在 Executionlist 中
JavaEngineException.txt
22-11-2017 - 17:56:37:IExecWrapperInterface_connectToControl
at.tosca.javaengine.common.exceptions.ControlNotFoundException:找不到控制索引 = 3;类名 = [javax.swing.JTable];。at.tosca.javaengine.server.tree.ComponentSearch.getComponent(ComponentSearch.java:218)
->at.tosca.javaengine.server.AbstractJavaEngineCore.findComponent(AbstractJavaEngineCore.java:1129)
->at.tosca.javaengine.server。 AbstractJavaEngineCore.connectToControlInternal(AbstractJavaEngineCore.java:936)
->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControlInternal(AbstractJavaEngineCore.java:922)
->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControl(AbstractJavaEngineCore.java:313)
->at.tosca.javaengine.server.JavaEngineCore.access$101(JavaEngineCore.java:25)
->at.tosca.javaengine.server.JavaEngineCore$2.runInternal(JavaEngineCore.java:69)
->at.tosca.javaengine.server.control.WorkerThread.run(WorkerThread.java:69)
->java.lang.Thread.run(Unknown Source)
->JNIServer::CallVoidMethod
->CJNIServer::CallVoidMethod22-11-2017 - 17:58:58:IExecWrapperInterface_setValue
at.tosca.javaengine.common.exceptions.ControlException:找不到节点或节点路径!at.tosca.javaengine.server.control.swing.GenericTreeControl.setValueLegacy(GenericTreeControl.java:339)
->at.tosca.javaengine.server.control.swing.GenericTreeControl.setValue(GenericTreeControl.java:88)
->at. tosca.javaengine.server.AbstractJavaEngineCore.setValueInternal(AbstractJavaEngineCore.java:1195)
->at.tosca.javaengine.server.AbstractJavaEngineCore.setValue(AbstractJavaEngineCore.java:686)
->at.tosca.javaengine.server.JavaEngineCore.access$401 (
JavaEngineCore.java:25)->at.tosca.javaengine.server.JavaEngineCore$5.runInternal(JavaEngineCore.java:114)->at.tosca.javaengine.server.control.WorkerThread.run(WorkerThread.java:69
)
->java.lang.Thread.run(未知来源)
->JNIServer::CallVoidMethod
->CJNIServer::CallVoidMethod
注意:相同的测试套件在其他机器上工作,而不是在这里。两者都是相同的操作系统。