问题标签 [calabash]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 在 mac 上使用 gem 安装葫芦时出错
我正在运行“sudo gem install calabash-android”,我收到以下错误:
我可以做些什么来解决这个问题?我正在遵循此 URL 上的步骤:https ://github.com/calabash/calabash-android/blob/master/documentation/installation.md
cucumber - 使用葫芦进行表单验证
我正在尝试使用以下代码验证表单:
然后我应该看到以下字段:|新客户||姓名||年龄||地址||电子邮件|
我累了:
和
谢谢。
android - How does Calabash work internally?
I'm curious how it's able to get the ID's of UI elements in android activities and simulate different events? Is it the same story for iOS?
android - 在 Ubuntu 上安装 Calabash Android 时无法构建 gem 原生扩展
我想在 Ubuntu(13.10) 上安装 Calabash Android。我安装了 gem (1.8.23) 和 ruby (1.9.3p194) 并尝试运行“sudo gem install calabash-android”,但不断收到消息说“无法构建 gem 本机扩展”,以下是完整消息:
构建原生扩展。这可能需要一段时间... 错误:安装 calabash-android 时出错:错误:无法构建 gem 原生扩展。
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from extconf.rb:1:in `'
Gem 文件将继续安装在 /var/lib/gems/1.9.1/gems/gherkin-2.12.2 中以供检查。
我尝试了“sudo apt-get update”,但没有解决问题。而且我还检查了 gcc,所以它不应该是构建问题。有没有人有什么建议?提前致谢!
ruby - What's the cleanest way to define a constant string that involves a variable in Ruby?
For some context, a lot of my code has the same lines of text throughout it (we are using Calabash to do iOS automation, if that gives you an idea).
For example: "all label marked:'#{name}'" is used 8 times in a particular class.
I would prefer to be able to have a constant that uses that text, but if I throw it at the top of the class, of course the variable "name" has not been set yet. Without defining a method that takes a parameter and returns a string, is there a way to do something essentially like this that can exist at the top of the class, but not be evaluated until it's used?:
If you use the syntax I mentioned, you get this error: undefined local variable or method `name' for ClassName
android - 等待片段用 calabash-android 加载
因此,在我的葫芦测试脚本中,我可以调用以下宏,以便它等待某个活动加载并显示:
现在我的应用程序很大程度上基于使用这个SlidingMenu库的片段。当我调用我的新片段(我没有使用 XML 文件)时,这一切都是在 java 中通过创建新片段然后像这样切换它来完成的:
我知道如何编写一个步骤定义宏,但我正在寻找这个宏中的动作,它基本上会告诉我:
有人认为在当前版本的 calabash-android 下这是可能的吗?
ios - 葫芦中带有双引号的文本的正则表达式
我在 auth.feature 文件中有一个场景:
以及 auth_steps.rb 文件中的触摸步骤:
当我尝试使用它时,我有一个错误:
我使用了几个正则表达式,但没有任何效果。我找到的唯一解决方案是
但在这种情况下,我需要编写不带引号的按钮名称,这不是我想要的。
这就是我使用的:Xamarin、iPhone SDK 6.1、calabash-iOs。要使用 calabash 测试我的应用程序,我通过 Xamarin 启动应用程序,然后输入 console cucumber NO_LAUNCH=1
。
如果有人可以帮助我解决这个问题,我将不胜感激。
ios - calabash-ios:我正在尝试使用“record_begin”进行录制,但遇到以下问题
当我运行时:
我得到错误:
ruby - 如何找到现有方法的定义?
我是编程和 Ruby 的新手。在一些现有的代码中,它是这样说的:
由此,我了解到kid_raising_btn
定义了一个变量,它将查询并返回true或false,然后调用该方法first
(但这很混乱)。
我怎样才能找到什么first
?