我正在做一个批处理文件来统一所有的Phonegap命令来创建一个应用程序.一切似乎都运行良好,但在命令后phonegap create appName我的cmd停止批处理脚本并且不继续工作.我认为Phonegap的命令以"退出"或类似方式结束,但我不确定.
有人知道是否有任何方法可以在批处理文件中运行此命令而没有此问题?有没有办法将控件返回到批处理脚本?
谢谢!
我正在做一个批处理脚本,必须检查计算机上是否安装了某些程序.为此,我执行programName --version并将输出存储在变量中.问题是当我尝试与正则表达式进行比较时(仅知道该程序是否存在于机器中).我正在尝试这个代码,但不起作用
>output.tmp node --version
<output.tmp (set /p hasNode= )
if "%hasNode%" == "[vV][0-9.]*" (echo Has node) else (echo You have to install node)
Run Code Online (Sandbox Code Playgroud)
如果我更改正则表达式以使此命令的输出正常工作,那么我想我正在使用正则表达式(我已经检查过它,并且对于命令的输出没问题)
谢谢你的四个帮助人员
我从葫芦开始,我无法进行测试.测试很简单,只需按一个TextView:
Feature: Login feature
Scenario: Given I am on the Login page
touch("TextView id:'com.tae.store:id/option_bag'")
Run Code Online (Sandbox Code Playgroud)
但我总是有同样的错误:
功能:登录功能
Scenario: Given I am on the Login page # features/my_first.feature:3
touch("TextView id:'com.tae.store:id/option_bag'")
`Cucumber::Ast` no longer exists. These classes have moved into the `Cucumber::Core::Ast` namespace, but may not have the same API. (RuntimeError)
./features/support/app_installation_hooks.rb:8:in `Before'
Failing Scenarios:
cucumber features/my_first.feature:3 # Scenario: Given I am on the Login page
1 scenario (1 failed)
0 steps
0m6.173s
Run Code Online (Sandbox Code Playgroud)
我正在使用Ruby 1.9.3(我也尝试过使用Ruby 2.0.0).
谢谢
batch-file ×2
android ×1
calabash ×1
comparison ×1
cordova ×1
if-statement ×1
regex ×1
ruby ×1
testing ×1