X hits on this document

PDF document

Web Application Testing in Ruby - page 26 / 34

78 views

0 shares

0 downloads

0 comments

26 / 34

Introduction to Ruby Introduction to WATIR Testing Web Applications

Test Frameworks Test::Unit Demo

Ruby's Test::Unit Framework

Test::Unit is a library of Ruby (just like Watir) It provides a way to organise your code into "tests"

To use Test::Unit in your scripts you ‘require’ it just like you do with Watir:

require 'test/unit' require 'watir'

Test::Unit has built-in methods called “assertions” that help your tests with validation:

assert( browser.link(:text,

'Click Here').exists? )

Paul Carvalho

Web Application Testing in Ruby

Document info
Document views78
Page views78
Page last viewedWed Dec 07 23:00:37 UTC 2016
Pages34
Paragraphs380
Words2437

Comments