【问题标题】:How can I launch Appium Node Server using batch file?如何使用批处理文件启动 Appium Node Server?
【发布时间】:2017-04-22 01:05:04
【问题描述】:

当我们执行下面提到的批处理脚本时,appium 正在打开。但是,脚本没有被执行。当您单击“Launch Appium Node Server”时,脚本运行。我已经安装了node js,并配置了环境变量。

START "node" /D "<C:\Program Files (x86)\Appium>" "node.exe"
START "node" /D "<C:\Program Files (x86)\Appium\node_modules\appium\lib\server>" "main.js" --address 127.0.0.1 --port 4723 --app "C:\SyxData\mPO.apk" --pre-launch --platform-name Android --platform-version 23 --automation-name Appium --device-name 'Moto G2' --log-no-color"

【问题讨论】:

  • /D 开关后的路径周围真的有&lt;&gt; 字符吗?你需要删除它们...

标签: node.js windows batch-file appium


【解决方案1】:

我通过使用名称节点和所需路径创建一个新的环境变量来解决它。这让我能够在 Jenkins 中自动化我的移动应用程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-13
    • 1970-01-01
    • 2017-06-28
    • 2013-06-16
    • 1970-01-01
    • 2021-12-19
    相关资源
    最近更新 更多