UI测试的一些讨论

这里有一片文章,叫做:

How to implement UI testing without shooting yourself in the foot

http://gojko.net/2010/04/13/how-to-implement-ui-testing-without-shooting-yourself-in-the-foot-2/

作者是明显不认同做UI automation testing的,但是很多人都愿意这么做,所以作者也给出了几条做UI automation testing的原则。

Things to remember

To avoid shooting yourself in the foot with UI tests, remember these things:

* Think about UI test automation at three levels: business rules, user interface workflow and technical activity
* Even if the user interface workflow automation gets implemented in plain text, make sure to put one level of abstraction above it and describe business rules directly. Don’t describe rules as workflows (unless they genuinely deal with workflow decisions – and even then it’s often good to describe individual decisions as state machines).
* Even if the user interface workflow automation gets implemented in code, make sure to separate technical activities required to fulfil a step into a separate layer. Reuse these step definitions to get stability and easy maintenance later.
* Beware of programming in plain text.

Print Friendly
  1. Steadicam is broadly divided into "mechanical" and "electronic". The design principle of electronic steadicam is to use the flywheel rotary inertia to maintain the stability of the optical system. In very angular acceleration that is rapidly angular motion there will be 2-3 seconds unstable state.

    Do not try [url=http://www.wondlan.com/]steadicam[/url] without special training. Otherwise, the waist will be injured. Currently Wondlan has been devoting itself to improving the shortcomings of the steadicam.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>