Blog do projektu Open Source JavaHotel

poniedziałek, 4 października 2010

Selenium helper extension to BoaTester

I created an extension to BoaTester framework. I found Selenium test framework very useful but was not happy with this series of detailed test steps written in plain Python. On the other Python is very helpful for writing test because of its simplicity and flexibility. So I decided to bound both of them together and created a simple extension which enables to run test steps declaratively (by defining them in external text file) and still use old plain Python for the whole test case logic.

Details: SeleniumHelper

I had the following ideas in my mind:
  • Declare test steps in external text file thus avoiding keeping then in the python code.
  • Local and global resources. A lot of tests keep very similar login like: logging, run test. Logging sequence can be common for all test cases, only logic for one test case can be local.
  • Aliases. Avoid using long xpath selectors. Just keep them as alias definition and use alias name instead of.
  • Keep it simple as much as possible. Give up idea of covering all selenium under some abstraction layer.

Brak komentarzy:

Prześlij komentarz