Tag: calabash

Calabash Android脚本停止

当我运行.apk时,我的执行暂停很长时间并且脚本不会执行。 我需要明确中止它。 不知道为什么它不执行。 控制台上没有错误。 我们对这个问题有什么解决方案吗? 在使用以下命令时我得到了什么: – > calabash-android resign my-app.apk [Done perfect] – > calabash-android运行my-app.apk [启动执行,它只显示325 KB / s的行(1.700s中为566732字节) ,之后它什么都不做, 不幸的是每次我需要中止这个过程。 :-(] 我的手机连接处于活动状态(已连接),但仍未执行多次。 换句话说,我多次断开手机并重新连接。 我正在使用Nexus4和三星Galaxy S5并希望这不是手机或电缆问题。 对于这个问题我谷歌但没有找到确切的解决方案。 如果有任何解决方案,请告诉我。 非常感谢您的帮助。

calabash-ios物理设备测试,应用程序启动但崩溃

为简单的iPhone应用程序运行calabash-ios黄瓜。 模拟器工作得很好。 在物理设备上尝试时,应用程序会加载,崩溃,然后再次加载,并在循环中再次崩溃。 错误信息: Unable to start. Make sure you’ve set APP_BUNDLE_PATH to a build supported by this simulator version Calabash::Cucumber::Launcher::StartError: Time out waiting for UIAutomation run-loop Error while writing to fifo. RunLoop::Fifo::NoReaderConfiguredError. Logfile /var/folders/9s/yttj4cz93m98hqs6bfw2x8xr0000gn/T/run_loop20150522-12657-dr3m49/run_loop.out 2015-05-22 19:58:11 +0000 Fail: An error occurred while trying to run the script. Instruments Trace Complete (Duration : 2.594758s; Output […]

黄瓜高级步骤定义 – 语法错误,意外的tIDENTIFIER,期待keyword_end

我遵循了重复使用黄瓜的步骤 。 对于Ruby和Cucumber来说,我是个菜鸟。 我正在使用calabash-android 0.9.0和黄瓜2.4.0 我的calabash_steps.rb: require ‘calabash-android/calabash_steps’ Then /^I add the 1st bestsellers product to bag$/ do steps %Q { # App restarts and Onboarding screen shows again Given I see the text “next” Then I press the “next” button } end 完整堆栈跟踪: ❯ bundle exec calabash-android run app/build/outputs/apk/app-staging-debug.apk -t @bag /Users/eric/AndroidStudioProjects/xxx/features/step_definitions/calabash_steps.rb:7: syntax error, […]

无法加载这样的文件 – 2.2 / gherkin_lexer_en,如何修复?

我需要一些帮助。 我该如何解决这个问题? 当我调用cucumber我收到以下错误: *** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic on/) to get coloured output on Windows WARNING: cannot load such file — 2.2/gherkin_lexer_en Couldn’t load 2.2/gherkin_lexer_en The $LOAD_PATH was: lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/cucumber-1.3.19/bin/../lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/builder-3.2.2/lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/diff-lcs-1.2.5/lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/multi_json-1.11.0/lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/gherkin-2.12.2-x86-mingw32/lib […] 系统: Windows 8.1 x64 Ruby 2.2.1安装程序 我得到了答案: https : //github.com/cucumber/cucumber/issues/830#issuecomment-90837546 我担心Windows / Ruby上的Cucumber需要ruby 2.0.0(x86)。 原因是gherkin […]

Calabash -Android:我们可以在Android设备上为Calabash-Android模拟主页按钮吗?

我们可以在Android设备上为Calabash-Android模拟Home按钮吗? 我需要点击脚本中的Home按钮,使用Calabash执行我的脚本。

使用calabash-android获取元素的颜色

我的Android应用程序中有一个文本字段(EditView),如果它的值无效或为空,它会更改颜色(边框)。 在这种情况下,标签(TextView)也会更改其颜色。 当我尝试使用query获取TextView时,我看到以下内容: [0] { “id” => “field_lable”, “enabled” => true, “contentDescription” => nil, “class” => “android.widget.TextView”, “text” => “Name”, “rect” => { “center_y” => 198.5, “center_x” => 51.0, “height” => 27, “y” => 185, “width” => 82, “x” => 10 }, “description” => “android.widget.TextView@a28btb00” } 如果我需要获取文本,我可以使用query(“TextView id:’field_label'”, :text) 在葫芦中有没有办法获得TextView的颜色?

Calabash处理“使用完成操作”对话框

我想测试应用程序的共享function,但我不知道如何处理Android对话框“使用完整操作”(Facebook,Gmail等) 当我使用query(“*”)它返回一组空字段。 有没有办法使用Calabash或任何其他方式来处理这样的系统对话框来测试共享等function? 我在物理设备上运行我的测试。 编辑:如果无法检查对话框是否已打开,那么也许可以使用adb shell或类似的东西?