webrat

webrat

文章 0 浏览 2

网络老鼠 +野科切 + CSS 选择器 +空格=噩梦

我需要使用 Cucumber/Webrat 测试此按钮的存在: &lt%=submit_tag 'Get it'%&gt 但是当我使用此自定义步骤时: And I should see a button with a val…

蘑菇王子 2024-09-19 21:24:25 6 0

黄瓜和黄瓜webrat,从单选按钮列表中选择

我试图让 webrat 使用黄瓜从列表中选择一个单选按钮。 我有这样的场景: Scenario: Update an existing article Given I have an article with title …

看轻我的陪伴 2024-09-18 03:43:41 1 0

使用 Webrat 检查选择框是否具有某些选项

如何使用 Webrat 检查选择框是否具有列为选项的某些值?我目前有 field_named(field).value.should contains(value) 但仅传递第一个选定的值,而不传…

蓝天白云 2024-09-17 21:27:04 4 0

Cucumber/Webrat 不遵循redirect_to

我正在运行 Rails 3.0.0、rspec-rails 2.0.0.beta.20、webrat 0.7.2.beta.1、cucumber-rails 0.3.2 我有这样的场景: Scenario: Given I am on the ne…

浅黛梨妆こ 2024-09-17 18:09:40 3 0

Webrat (web_steps.rb) 未使用

当我执行以下黄瓜脚本时: Feature: Manage Customers In order to store customers As a user I want to create and manage customers Scenario Outl…

很酷不放纵 2024-09-15 05:34:53 1 0

如何用 Cucumber 测试某个单词是否是链接?

我想要这个自定义步骤: Then I should see the link 'foo' 和他的相反: But I should not see the link 'foo' 在页面中我可以有类似的内容: lorem …

红衣飘飘貌似仙 2024-09-11 18:59:13 5 0

未定义的方法“find_link”对于 #(无方法错误)

Rspec 显然讨厌我。我有点讨厌他了。 #features/step_definitions/custom_steps.rb Then /^I should see the link "([^\"]*)"$/ do |linked_text| fin…

征﹌骨岁月お 2024-09-11 18:42:03 3 0

如何使用 Cucumber 测试页面中的一张、多张或无图像?

我想用 Cucumber 测试某个页面中是否有 0、1、2 或 3 次的图片('foo.png')。 我应该如何编写自定义步骤? 谢谢…

时光是把杀猪刀 2024-09-10 14:36:00 5 0

authlogic flash[:notice] 没有出现在 Cucumber Webrat 步骤中

我正在使用 Cucumber 运行 BDD 步骤来实现我的自动逻辑登录行为。 Scenario: log in Given a registered user: "[email&nbspprotected]" with passwor…

梦忆晨望 2024-09-09 04:04:44 0 0

Webrat / Cucumber Matcher - 测试内容与链接的匹配

目前我有一个喜欢/不喜欢投票功能,以以下格式输出: 喜欢 (#) dislike (#) 其中喜欢和不喜欢是可点击的链接,用于更新喜欢/不喜欢投票的总数(由 (#)…

如何视而不见 2024-09-09 04:04:08 1 0

Webrat 和 Rails:在 click_button 之后使用 assert_contain 会给我“您正在被重定向”

我正在使用 webrat 为 Rails 应用程序编写集成测试。填写表格后,用户按下提交并创建一个帐户。 click_button "Submit" assert_contain "Your Account…

后eg是否自 2024-09-04 02:01:23 2 0

当你在cucumber下使用WebRat点击按钮时会发生什么

我正在尝试登录 Java Web 应用程序。 登录页面具有以下 html : &lthtml&gt &lthead&gt&lttitle&gtLogin Page&lt/title&gt&lt/head&gt &ltbody onload…

叫思念不要吵 2024-09-03 05:06:48 3 0

Webrat select_date 选择器失败

步骤文件中的代码: select_date user.date_of_birth, :from =&gt "Date of birth" 选择器失败 When I register with valid user credentials # featu…

只是偏爱你 2024-09-02 01:59:00 3 0

如何测试需要输入安全短语中的两个随机字符的表单?

我需要测试一个两阶段登录系统,该系统首先询问您的电子邮件地址和密码,然后向用户提供两个包含 [a-zA-Z0-9] 的选择列表。下拉菜单旁边的标签采用“…

葬シ愛 2024-09-02 00:08:04 2 0

如何在 rspec 中测试 css 属性?

我正在使用 Rails 的 tabnav 插件,我想使用 rpsec 来确保它正确突出显示。 describe 'account navigation links' do it 'should have account settin…

放低过去 2024-09-01 14:11:29 3 0
更多

推荐作者

qq_FjTq5B

文章 0 评论 0

18273202778

文章 0 评论 0

WordPress小学生

文章 0 评论 0

〃温暖了心ぐ

文章 0 评论 0

迷乱花海

文章 0 评论 0

niuniu

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文