タグ

Watirとwebに関するishideoのブックマーク (2)

  • Watir - Overview

    Automated testing that doesn’t hurt Watir is a simple open-source library for automating web browsers. It allows you to write tests that are easy to read and easy to maintain. It is optimized for simplicity and flexibility. Watir drives browsers the same way people do. It clicks links, fills in forms, presses buttons. Watir also checks results, such as whether expected text appears on the

  • MOONGIFT: » ブラウザテストをRubyで自動化「Watir」:オープンソースを毎日紹介

    ブラウザを使ってのテストは何かと大変だ。最近は特にJavaScriptを利用したものが増えてきたので、それをもきちんと動作させてテストを行うのは苦労することだろう。 少ない人数で効率的なテストを行うためにも、こうしたツールの導入は欠かせない。 今回紹介するオープンソース・ソフトウェアはWatir、Rubyを使ったテスト自動化ソフトウェアだ。 WatirはWindowsRubyのみで動作するソフトウェアで、Gemを使ってインストールできる。公式サイトでは幾つものサンプルが登録されているので参考にしてほしい。 簡単に言えばRuby上でIEのオブジェクトが作り出せる。そして、URLを開き、文字を入力し、フォームのボタンを押したりと操作ができる。HTMLの内容が取得できるので、そこに表示された文字によってテストの可否を判定できる。 現在、IEのみ対応しているが、FirefoxとOperaのサポー

    MOONGIFT: » ブラウザテストをRubyで自動化「Watir」:オープンソースを毎日紹介
  • 1