Revision: 2621
Author: janne.t.harkonen
Date: Mon Mar 15 01:37:26 2010
Log: cleanup, added user keyword
http://code.google.com/p/robotframework/source/detail?r=2621

Modified:
 /trunk/proto/atdd_example/atest/amount_of_vacation.txt

=======================================
--- /trunk/proto/atdd_example/atest/amount_of_vacation.txt Thu Mar 11 02:38:31 2010 +++ /trunk/proto/atdd_example/atest/amount_of_vacation.txt Mon Mar 15 01:37:26 2010
@@ -1,20 +1,29 @@
 *** Test Cases ***
-Employee have worked less than a year before the holiday credit year starts
-  Given employee starts working 1.1.2009
+Employee has worked less than a year before the holiday credit year starts
+  Given employee starts working 1.1.2010
   When she works 14 or more days per month
Then she has 6 day vacation on the holiday credit year 2010 (period from 1 April 2010 to 31 March 2011)

-Employee have worked exactly a year before the holiday credit year starts
-  When employee starts 1.4.2009 then she have 24 day vacation on year 2010
-
-Employee have worked day over a year before the holiday credit year starts
-  When employee starts 31.3.2009 then she have 30 day vacation on year 2010
-
-Employee have less than 14 days during the first month of employment
-  When employee starts 10.2.2010 then she have 2 day vacation on year 2010
-
-Employee have 14 days during the first month of employment
-  When employee starts 9.2.2010 then she have 4 day vacation on year 2010
-
-Employee have worked years before the holiday credit year starts
-  When employee starts 21.1.2000 then she have 30 day vacation on year 2010
+Employee has worked exactly a year before the holiday credit year starts
+ When employee starts on 1.4.2009 then she has 24 day vacation on year 2010
+
+Employee has worked day over a year before the holiday credit year starts
+ When employee starts on 31.3.2009 then she has 30 day vacation on year 2010
+
+Employee has less than 14 days during the first month of employment
+ When employee starts on 10.2.2010 then she has 2 day vacation on year 2010
+
+Employee has 14 days during the first month of employment
+  When employee starts on 9.2.2010 then she has 4 day vacation on year 2010
+
+Employee has worked years before the holiday credit year starts
+ When employee starts on 21.1.2000 then she has 30 day vacation on year 2010
+
+*** Keywords ***
+When employee starts on ${startdate} then she has ${exp_vacation} day vacation on year ${year}
+  ${vacation} =  Count Holiday  ${startdate}  ${year}
+  Should Be Equal As Integers  ${vacation}  ${exp_vacation}
+
+*** Settings ***
+Library  holidaycalc.HolidayCalculatorLibrary
+

Reply via email to