Collective Idea Home Blog Home Blog Contact Photo by Tambako the Jaguar, used under Creative Commons https://flic.kr/p/dJD2dV We frequently swap out Firefox for Chrome in our selenium (@javascript) cucumber tests. It is actually very easy, but not widely known. Update: I got some questions about **why** we'd use Chrome. Speed hasn't been the issue (use capybara-webkit for that) but we have found s
というか、この辺の用語がいつも混乱してとても困っていたのでいったん整理。今回のターゲットは何やら最近 JavaScript を含む Web アプリのテストでよく名前を聞く capybara-webkit からスタート。 間違ってたら突っ込んでください! 間違ってなかったら褒めてください! 名前capybara-webkitCapybara の driver. Capybara のテストを WebKit を通じて実行できる。WebKit と言えばみんな大好き、Google Chrome や Safari のエンジンですね。capybaraテスティングフレームワークに対して Web アプリのテストを書きやすくする語彙を提供してくれる( DSL や Driver で実装されている )。driver は default で rack_test で、JavaScript を含む場合は Seleniu
始めに 本連載は、Acceptance Testingをテーマにしています。前回から、Capybaraの学習に入っています。Capybaraは、ブラウザのUIの自動テストする際に、テキスト入力やボタンクリックや表示結果を確認するなどに便利なAPI(語彙)を提供しています。AcceptanceTestingを自動テストで行う際には、Capybara が提供しているAPIは強力なツールとなります。今日は、Capybara本体のソースコードを軽く眺めながら、Capybaraをゆるりと学習したいと思います。 Capybaraの 基本要素 下記のソースを覗いてみましょう。 https://github.com/jnicklas/capybara/blob/master/lib/capybara/node/base.rb どうやら、HTMLのエレメントと関係がありそうなのは次です。 - Capybar
本連載は、Acceptance Testをテーマに記事を書いています。前回までは、Cucumberをテーマにしていました。今回からは、Capybaraの解説に入っていきます。(前回は、Fit 解説としていましたが、予定変更します。) Capybara? 本家のREADMEには次のように書いてあります。 https://github.com/jnicklas/capybara ”Capybara aims to simplify the process of integration testing Rack applications, such as Rails, Sinatra or Merb. Capybara simulates how a real user would interact with a web application. It is agnostic about the
Ruby is one of the most popular languages used on the web. We’re running a Session here on Nettuts+ that will introduce you to Ruby, as well as the great frameworks and tools that go along with Ruby development. In this episode, you'll learn about testing your Sinatra apps with Cucumber, Capybara, and Rspec. In the previous tutorial in this series, we looked at Rspec, and how you can do test-drive
Test your app with Capybara Tired of clicking around in your browser trying to make sure your applications work as expected? Capybara is a library written in the Ruby programming language which makes it easy to simulate how a user interacts with your application. Capybara can talk with many different drivers which execute your tests through the same clean and simple interface. You can seamlessly c
Capybara Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem. Support Capybara If you and/or your company find value in Capybara and would like to contribute financially to its ongoing maintenance an
h2. What's Capybara bq. Capybara is a webrat alternative which aims to support all browser simulators. As you know, webrat can not run javascript onWhat’s Capybara Capybara is a webrat alternative which aims to support all browser simulators. As you know, webrat can not run javascript on the webpage. In order to test javascript and AJAX based website we need install Selenium-client and learn extra
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く