批量启动appium-server+java

系统:windows

我在做app的自动化,想要批量测试设备执行脚本,所以需要启动多个appium-server。

批量启动appium-server,我用的CommandLine。

在执行测试的时候,批量启动appium-server前和后我都进行了appium-server进程关闭处理,

关闭appium-server进程,我用的一个批处理脚本killAppium.bat 脚本内容如下:

@批处理杀掉appium进程
@echo off
taskkill /F /IM node.exe /T

这个脚本编辑的时候一定要选择编码为GB2312或者GBK。调用执行bat脚本我用的Runtime.getRuntime()

 这里有个流处理的类StreamGobbler extends Thread

做这个参考了下面的链接,写的很详:

https://www.cnblogs.com/mingforyou/p/3551199.html

https://blog.csdn.net/westwin/article/details/358377

http://blog.csdn.net/westwin/archive/2005/04/22/358377.aspx

http://blog.csdn.net/moreorless/archive/2009/05/15/4182883.aspx

http://blog.csdn.net/HEYUTAO007/archive/2010/06/30/5705499.aspx

https://www.cnblogs.com/may18/p/10577074.html

https://blog.csdn.net/FX_SKY/article/details/8932663

你再不自己敲代码,你的四肢就退化了
原文地址:https://www.cnblogs.com/boqinyaxin/p/13330643.html