X hits on this document

PDF document

Web Application Testing in Ruby - page 27 / 34

74 views

0 shares

0 downloads

0 comments

27 / 34

Introduction to Ruby Introduction to WATIR Testing Web Applications

Test Frameworks Test::Unit Demo

Anatomy of a TestCase

Simple example:

require 'test/unit' require 'watir'

Tests are methods that start with "test_"

all Ruby

class GoogleHomePage < T t::Unit::TestCase def test_there_should_be_text_About_Google browser = Watir::IE.start "http://www.googl .com" assert( browser.text.include?("About Google") ) end end

"assertion" is a check point

The Watir drops

Paul Carvalho

Web Application Testing in Ruby

Document info
Document views74
Page views74
Page last viewedTue Dec 06 16:06:36 UTC 2016
Pages34
Paragraphs380
Words2437

Comments