[TIP] What strategies to you use to factor seleniums tests to avoid duplications of the same or similar test steps?

Bob Clancy bob.clancy at verizon.net
Thu Feb 14 07:46:16 PST 2008

Titus Brown wrote:
] Bob> Will it cover abstracting testcases to reduce duplicate code?  (Such
a topic
] Bob> seems more like the topic for a whole book rather than a shortcut.)
] Isn't that part of basic programming -- extracting duplicate
] functionality into functions or methods or classes?  ...

Yes, but traditional testers don't always think like programmers.  Hence
it may be important to mention this if testers with little or no
automation experience are part of the intended audience of your book.
(I don't think you will need to dwell on this, but it should be something
that the reader indirectly learns while reading the rest of the book.

]                                                  ... I haven't paid
] close attention to the e-mails yet [0] but I thought the frustration
] with Selenium Core is that writing reusable code blocks is difficult.

Yes, but I like the "DSL" nature of Selenese and I'd like to see an
example of how to extend that as part of the book.  (I think this would
be someting on the order of what Benji York and Fred Drake mentioned.)

Ideally, I'd want something like this so "Domain Subject Experts" or
customers could create testcases much like can be done via Fitnesse.

Bob Clancy  (9 Lives Software Engineering,  Boston, MA, USA)

More information about the testing-in-python mailing list