Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Robotframework 无法从RemoteApplication在Robot框架中使用SwingLibrary_Robotframework - Fatal编程技术网

Robotframework 无法从RemoteApplication在Robot框架中使用SwingLibrary

Robotframework 无法从RemoteApplication在Robot框架中使用SwingLibrary,robotframework,Robotframework,当我尝试使用SwingLibrary时,我的错误率正在下降 java.lang.ClassCastException:SwingLibrary不能强制转换为org.robotframework.javalib.library.RobotJavaLibrary 我的关键字写得如下 *** Keywords *** Start Demo Application [Arguments] ${name} Start Application ${name} java

当我尝试使用SwingLibrary时,我的错误率正在下降

java.lang.ClassCastException:SwingLibrary不能强制转换为org.robotframework.javalib.library.RobotJavaLibrary

我的关键字写得如下

 *** Keywords ***
 Start Demo Application
    [Arguments]    ${name}
    Start Application    ${name}    java ${MAIN CLASS}    10 seconds    ${LIB DIRECTORY}
    Take Library Into Use    SwingLibrary
我看到我的应用程序确实被调用了,但我得到了一个错误

请提供帮助。

编辑:已在中修复

最新版本的SwingLibrary不再实现AnnotationLibrary(实现RobotJavaLibrary)。它具有必要的方法,因此您应该能够将其子类化,并将该库与RemoteApplications一起使用

public class RemotableSwingLibrary extends SwingLibrary implements RobotJavaLibrary {}