package test;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class OpenBrower {
public static void main(String[] args) throws URISyntaxException, IOException, InterruptedException {
URI uri=null;
/**
* 打开页面查看
*/
String []strings={"192.168.198.162","192.168.198.108","192.168.198.54","192.168.197.232","192.168.197.178","192.168.223.68","192.168.223.69","192.168.223.78","192.168.199.54","192.168.199.108","192.168.199.243"};
for(String str:strings){
uri = new java.net.URI("http://"+str+":9080/solr/electric/admin/replication/index.jsp");
<strong>java.awt.Desktop.getDesktop().browse(uri);
Thread.sleep(1000);</strong>
}
}
}
校验脚本-需要打开浏览器的时候调用这个
最新推荐文章于 2020-04-09 19:23:33 发布