X hits on this document

PDF document

Web Application Testing in Ruby - page 29 / 34

115 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 views115
Page views115
Page last viewedSun Jan 22 19:13:19 UTC 2017
Pages34
Paragraphs380
Words2437

Comments