Writing Maintainable Automated Acceptance Tests. 28

Posted by Uncle Bob Mon, 07 Dec 2009 22:54:42 GMT

Dale Emery recently wrote a lovely article that has the same name as this blog. This article is really quite good. It makes the point that writing acceptance tests is writing software; and so the same principles of cohesion, coupling, DRY, etc. apply.

The only problem I had with Dale’s article, is that he used the wrong tool to demonstrate his principles. So I’ve created a video to show you how to apply Dale’s principles using FitNesse. (See below)

I’ve included three different sources for the video. One of them ought to work for you. The higest resolution video is the quicktime/screencast version; but some people can’t use it. So choose your poison.

Viddler

link

Vimeo

link

Writing Maintainable Automated Acceptance Tests from unclebob on Vimeo.


screencast.com

(QuickTime) link
Comments

Leave a response

  1. Avatar
    Pekka Klärck about 3 hours later:

    Good video based on an awesome article. But why is Robot Framework “wrong” tool for this kind of testing? It even seems to me that FitNesse scenario tables are copied from RF user keyword concept.

  2. Avatar
    Wes Williams about 8 hours later:

    nice video Uncle Bob. I like the way you cleaned up the examples Dale had. I think it will also allow further enhancements. You could even enhance this to show what happens when the next requirement comes. (which is more difficult than the name change requirement) the next requirement related to this could be the ability to change a password and this would easily reuse the scenarios but with the application in a different state. both tests should indicate the starting state and then reuse the password verification.

  3. Avatar
    Andras Hatvani about 13 hours later:

    The presentation was entertaining, interesting and useful, too. In my opinion it should be part of the http://fitnesse.org/FrontPage.VideoTutorials as writing maintainable tests is really essential to a successful FitNesse implementation. However, I do not agree that the Robot framework would be a “wrong” one. It depends on both, people and requirements, whether this or that tool/framework fits a project.

  4. Avatar
    Brian Ramsay about 16 hours later:

    I’m pretty sure that the “wrong tool” statement was meant to be tongue-in-cheek.

  5. Avatar
    Rakesh 4 days later:

    I’m sorry but if you really want to remove the setup code from your test then try Concordion (http://www.concordion.org/).

    It uses html so all the setup code can go into the html code that isn’t displayed.

    We’ve been using it for 2+ years and think its the bee’s knees.

    In fact the author wrote it because he didn’t like Fit/Fitness.

    R

  6. Avatar
    RyanT 27 days later:

    Nice video. Really helps with understanding the concept of automated acceptance tests – also nice usage of FitNesse, something I am not familiar with.

  7. Avatar
    Professional CV Service about 1 month later:

    This video represents good information.

  8. Avatar
    floor steam cleaner about 1 month later:

    It depends on both, people and requirements, whether this or that tool/framework fits a project before you can say that the Robot framework would be a “wrong” one.

  9. Avatar
    iphone fix 3 months later:

    your ariticle is lovely, too.

  10. Avatar
    janeyi 4 months later:

    If,overhead trolleyif you’re ,trolley conveyor if you’

    re hounded by people trying to bring you down, turn rollerdemanding your time and attention, X678 you can afford to be direct. X458 Because truth

    cuts through the bullshit.yy2010.3.24

  11. Avatar
    disney restaurants 4 months later:

    I think it will also allow further enhancements and we could even enhance this to show what happens when the next requirement comes.

  12. Avatar
    parça TL kontör 4 months later:

    I like This site! Thank you for your information.

  13. Avatar
    Blu-ray ripper mac 4 months later:

    Free download Blu-ray to iPad Mac, you can easily convert Blu ray and DVDs to iPad for playing.

  14. Avatar
    PDF to epub Converter 5 months later:

    gdb thanks

  15. Avatar
    Honeywell 38002 5 months later:

    Seems comparable to excel functions. Instead of having your formula’s in the foreground, it’s like you’re doing a =sum(XX). Well simplified.

  16. Avatar
    Carter Eduardo 5 months later:

    I think it depends a lot on the area where you live and the different cultures that you are exposed to. I think that folks are on the whole, more accepting of those that are “different”. rehearsal dinner

  17. Avatar
    logo designs 5 months later:

    You even can improve this to show what happens when demand is below. (Which is more difficult than the requirement of a name change), the following requirements related to what might be possible to change the password and easily reuse scenarios, but with the application in a different state. Both tests should indicate the starting position, then re-use your password for verification.

  18. Avatar
    animal charms 6 months later:

    I had gone much.I couldn t judge that I fell in adore with links of london heart bracelets That was one of my big changes. heart bracelet After all, I didn’t like ornaments at all in the launch. Since I fell in dear with links of london Sweetie necklaces , I had realized that an instance of links of london Sweetie rings could bring me much more links of london watch charms

  19. Avatar
    angular cheilitis treatment 6 months later:

    yes thanks very much for the indepth video and following feedback

  20. Avatar
    writing essay 6 months later:

    this video is awesome. thank you for sharing. :)

  21. Avatar
    Phlebotomy Certification 6 months later:

    I am lost… Someone please explain what that video is about.

  22. Avatar
    Yellow Shower Curtain 6 months later:

    I agree with Mr. Phlebotomy…I don’t deal with software very much so when I see or read something like this, it usually goes way over my head!

  23. I learned new things from your video. It was really interesting! Thanks!

  24. Avatar
    Electrician 7 months later:

    Its always good to learn tips like you share for blog posting.Electrician As I just started posting comments for blog and facing problem of lots of rejections.I think your suggestion would be helpful for me. I will let you know if its work for me too. Thanks and keep post such a informative blogs.

  25. Avatar
    Local seo uk 7 months later:

    Automation is the use of control systems and information technologies reducing the need for human intervention. In the scope of industrialization, automation is a step beyond mechanization. Whereas mechanization provided human operators with machinery to assist them with the muscular requirements of work, automation greatly reduces the need for human sensory and mental requirements as well. Automation plays an increasingly important role in the world economy and in daily experience.

  26. Avatar
    executive consulting 7 months later:

    The widespread impact of industrial automation raises social issues, among them its impact on employment. Historical concerns about the effects of automation date back to the beginning of the industrial revolution, when a social movement of English textile machine operators in the early 1800s known as the Luddites protested against Jacquard’s automated weaving looms4 — often by destroying such textile machines— that they felt threatened their jobs. One author made the following case. When automation was first introduced, it caused widespread fear. It was thought that the displacement of human operators by computerized systems would lead to severe unemployment

  27. Avatar
    adwords google 7 months later:

    ritics of automation contend that increased industrial automation causes increased unemployment; this was a pressing concern during the 1980s. One argument claims that this has happened invisibly in recent years, as the fact that many manufacturing jobs left the United States during the early 1990s was offset by a one-time massive increase in IT jobs at the same time. Some authors argue that the opposite has often been true, and that automation has led to higher employment. Under this point of view, the freeing up of the labor force has allowed more people to enter higher skilled managerial as well as specialized consultant/contractor jobs (like cryptographers), which are typically higher paying. One odd side effect of this shift is that “unskilled labor” is in higher demand in many first-world nations, because fewer people are available to fill such jobs.

  28. Avatar
    best dating 7 months later:

    The old focus on using automation simply to increase productivity and reduce costs was seen to be short-sighted, because it is also necessary to provide a skilled workforce who can make repairs and manage the machinery. Moreover, the initial costs of automation were high and often could not be recovered by the time entirely new manufacturing processes replaced the old. (Japan’s “robot junkyards” were once world famous in the manufacturing industry.)

Comments