Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 757 Bytes

improving_the_old_tests.md

File metadata and controls

28 lines (17 loc) · 757 Bytes

How to improve the old acceptance tests

#TBD

  • The old tests were not written, they were recorded.

    • The output of the recorder was not always. For example, the recorder creates this:

       $browser.find_element(:xpath, ".//div[@id='wrapper-content']/ul/li[10]").click
      

      When this could have created this instead:

      $browser.find_element(:css, "ul.propertyTabsList li[groupname='service']").click
      
      

      These expressions accomplish the same thing. Which has the more obvious intent?

  • The old tests were written in a very limited language (Selenese)

    • It did not allow subroutines or macros
    • It had only limited support for comments
  • The old tests were converted from Selenese using an automated converter. *