2015-10-13 83 views
1

我想在我的应用程序中运行一些葫芦UI测试,但我遇到了麻烦连接到我的模拟器。我想只要连接视图葫芦-IOS控制台,但我遇到了以下错误:葫芦不能连接到模拟器

WARNING 

Warning Trying to connect to simulator that was not launched by Calabash/instruments. 
To fix this you must let Calabash or instruments launch the app. 
Query will work, but gestures will not. 

我已经运行的应用程序查看我的-cal目标,并已成功地看到了消息Started LPHTTP server on port 37265。这里有葫芦/我的设置一些更多的信息:

xcode-select --print-path 
/Applications/Xcode.app/Contents/Developer 

xcodebuild -version 
Xcode 7.0 
Build version 7A218 

calabash-ios version 
0.14.3 

server_version 
=> {"app_id"=>"com.solstice.discoverfinancialenterprise.mobile", "outcome"=>"SUCCESS", "server_port"=>37265, "version"=>"0.14.3", "app_name"=>"Discover", "system"=>"x86_64", "simulator_device"=>"iPhone", "simulator"=>"", "app_version"=>"1", "short_version_string"=>"6.6.1 UAT", "iphone_app_emulated_on_ipad"=>false, "app_base_sdk"=>"iphonesimulator9.0", "form_factor"=>"iphone 4in", "git"=>{"revision"=>"c2d009b", "remote_origin"=>"[email protected]:calabash/calabash-ios-server.git", "branch"=>"master"}, "screen_dimensions"=>{"sample"=>1, "height"=>1136, "width"=>640, "scale"=>2}, "4inch"=>true, "iOS_version"=>"8.4"} 

对不起的JSON未格式化,我的控制台吐了出来在未格式化的方式。

我已经使用了几个不同的模拟器,iPhone 6,iOS 9和iOS 8.3以及iPhone 5s iOS 8.4。有人知道我需要做不同的事情来让它连接到我的模拟器吗?

回答

1

+100包括所有关于您的环境的信息。

请更新到与您的Xcode版本兼容的Calabash 0.16.4。

I'm trying to just connect view the calabash-ios console, but am running into the following error:

您可以展示您如何启动控制台以及尝试运行什么命令?

通常情况下,你想是这样的:

$ APP=/path/to/Your.app calabash-ios console 
> start_test_server_in_background 

你必须让葫芦推出的应用程序,否则您将无法执行手势。

APP和APP_BUNDLE_PATH是同义词。

http://calabashapi.xamarin.com/ios/file.ENVIRONMENT_VARIABLES.html#label-APP+and+APP_BUNDLE_PATH

+0

这让它在服务器上工作!好吧,真棒,所以我在服务器上运行,我只设置DEVICE_TARGET变量,但不是APP变量...尽管我可能已经尝试设置APP_BUNDLE_PATH,但它不起作用?不知道,那既不是这里,也不是那里了。现在尝试解决让我的功能脚本启动并运行。 –

+0

APP和APP_BUNDLE_PATH是同义词。 – jmoody

相关问题