X hits on this document

PDF document

Web Application Testing in Ruby - page 29 / 34

68 views

0 shares

0 downloads

0 comments

29 / 34

Introduction to Ruby Introduction to WATIR Testing Web Applications

Test Frameworks Test::Unit Demo

Setup and Teardown

The Test::Unit structure may include special methods that can be executed before and/or after every test

class SampleTest < Test::Unit::TestCase def setup

  • #

    fill in code that will run before every test case here

end def teardown

  • #

    fill in code that will run after every test case here

end def test_login

  • #

    login test code, etc.

end end

Paul Carvalho

Web Application Testing in Ruby

Document info
Document views68
Page views68
Page last viewedMon Dec 05 14:10:05 UTC 2016
Pages34
Paragraphs380
Words2437

Comments