本文整理汇总了Java中org.robotframework.remoteserver.RemoteServer类的典型用法代码示例。如果您正苦于以下问题:Java RemoteServer类的具体用法?Java RemoteServer怎么用?Java RemoteServer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RemoteServer类属于org.robotframework.remoteserver包,在下文中一共展示了RemoteServer类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: run
import org.robotframework.remoteserver.RemoteServer; //导入依赖的package包/类
public void run() {
try {
RemoteServer server = new DaemonRemoteServer();
server.putLibrary("/RPC2", new FormsLibrary());
server.putLibrary("/services", new ServicesLibrary());
server.setPort(apport);
server.setAllowStop(true);
server.start();
Integer actualPort = server.getLocalPort();
notifyPort(actualPort);
} catch (Exception e) {
if (debug) {
e.printStackTrace();
System.err.println(e);
System.err.println("Error starting remote server");
}
}
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:19,代码来源:ServerThread.java
示例2: startRemoteServer
import org.robotframework.remoteserver.RemoteServer; //导入依赖的package包/类
@RobotKeyword("Starts remote server. Mainly used for testing.\n\n"
+"Returns server port.")
@ArgumentNames({"*Remote port=selected automatically"})
public int startRemoteServer(String[] port) {
RemoteServer.configureLogging();
RemoteServer server = new RemoteServer();
remoteServer = server;
remoteServer.putLibrary("/", new RemoteSikuliLibrary());
if (port.length > 0) {
remoteServer.setPort(Integer.parseInt(port[0]));
}
try {
remoteServer.start();
return remoteServer.getLocalPort();
} catch (Exception e) {
SikuliLogger.logDebug(e.getStackTrace());
throw new RuntimeException(e.getMessage());
}
}
开发者ID:Hi-Fi,项目名称:remotesikulilibrary,代码行数:20,代码来源:Configuration.java
示例3: main
import org.robotframework.remoteserver.RemoteServer; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
if (args.length == 0) {
throw new RuntimeException("Port number should be provided");
}
if (args.length >= 2) {
CaptureFolder.getInstance().setCaptureFolder(args[1]);
}
RemoteServer.configureLogging();
RemoteServer server = new RemoteServer();
// server.addLibrary(SikuliLibrary.class, Integer.parseInt(args[0]));
server.putLibrary("/", new SikuliLibrary());
server.setPort(Integer.parseInt(args[0]));
server.start();
}
开发者ID:rainmanwy,项目名称:robotframework-SikuliLibrary,代码行数:15,代码来源:SikuliLibrary.java
示例4: main
import org.robotframework.remoteserver.RemoteServer; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
RemoteServer.configureLogging();
RemoteServer server = new RemoteServer();
server.addLibrary(SampleRemoteLibrary.class, 8270);
server.start();
}
开发者ID:ThomasJaspers,项目名称:remote-keyword-library,代码行数:7,代码来源:SampleRemoteLibrary.java
注:本文中的org.robotframework.remoteserver.RemoteServer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论