Web UI tests

From SIPfoundry sipXecs IP PBX, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search

Contents

Upgrade to jWebUnit 1.4

jWebUnit 1.4.1 uses HtmlUnit, which has better JavaScript support. But before we can upgrade to jWebUnit 1.4.1 there is some work to do, as a lot has changed since the version we are currently using (1.2).

Package structure changes

  • net.sourceforge.jwebunit.WebTestCase ---> net.sourceforge.jwebunit.junit.WebTestCase
    • 82 affected files
  • net.sourceforge.jwebunit.WebTester --> net.sourceforge.jwebunit.junit.WebTester
    • 5 affected files

Table validation changes

  • The ExpectedCell, ExpectedRow, and ExpectedTable classes are gone. The validation code from those classes are now in the Cell, Row, and Table classes. See this mailing list post.
    • 27 affected files

Deprecated methods

  • WebTester.setFormElement() is deprecated. Use setTextField() instead.
    • 208 affected files!
Personal tools