Mark Michaelis' Weblog :
Updated: 9/1/2004; 6:56:26 AM.

 








Subscribe to "Mark Michaelis' Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Subscribe To
Mark's Weblog

 
 

Friday, January 31, 2003

Acceptance Testing
Google Search It

For sevearl months I have been looking at the eXtreme Programming practice that says you must have automated acceptance tests and essentially ignoring it because I couldn't figure out how best to go about it.

After my time at ObjectMentor I have an approach.  Here is what I envision:

  1. As part of requirements gathering/story creation first define what an acceptance test looks like, what is the language that one would use to run a specific test.  This step is performed by collaboration between the engineers and the customers.
    For example:
    1. PlaceItemUpForAuction("Cow");
    2. PlaceItemUpForAuction("Sheep");
    3. VerifyItemIsOnAuctionBlock("Sheep");
    4. BidOnItem("James", "Sheep", 30);
    5. BidOnItem("Mary", "Sheep", 45);
    6. BidOnItem("James", "Sheep", 59);
    7. VerifyCurrentWinner("Sheep", "James");
    8. VerifyCurrentHighBid("Sheep", 59);
  2. Write unit tests and code implementation for first acceptance test instruction.
  3. Create AuctionAcceptanceTestBase class inside unit test assembly with a static method called PlaceItemUpForAuction(string itemName).
  4. Repeat steps 2 and 3 for all acceptance test instructions.

Notes:

  • There is not necessarily a acceptance test for every assembly. 

1:56:30 PM   []    comment []

© Copyright 2004 Mark Michaelis.



 


January 2003
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Dec   Feb


Recent Posts