Revision: 4210
Author: jprantan
Date: Thu Sep 30 02:31:05 2010
Log: Added test for two employees.
http://code.google.com/p/robotframework/source/detail?r=4210

Modified:
 /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt
 /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt

=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt Thu Sep 30 00:40:19 2010 +++ /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt Thu Sep 30 02:31:05 2010
@@ -13,30 +13,34 @@
     Then message "Employee 'Juha' already exists in the system." is shown
     and "Juha" with start date 2010-01-01 exists in the database

-Viewing employees
-    Given employee "Janne" with start date 2010-2-2 exists in the system
-    When "Janne" is selected
-    Then UI shows "Janne" with start date 2010-02-02
-    And editing details is disabled
+Adding Two Employees
+    Given no employee exists in the system
+    When "Pekka" with start date 2010-01-01 is added
+    and "Janne" with start date 2010-01-01 is added
+    Then "Janne" exists in the employee listing
+    and "Janne" with start date 2010-01-01 exists in the database


 *** Keywords ***
 Given no employee "${name}" exists in the system
     Clear Database

-When "${name}" with start date ${date} is added
+Given no employee exists in the system
+    Clear Database
+
+"${name}" with start date ${date} is added
     Add Employee  ${name}  ${date}

 Then message "${message}" is shown
     Status Message Should Be  ${message}

-and "${name}" exists in the employee listing
+"${name}" exists in the employee listing
     Employee Should Be Selected  ${name}

 and "${name}" with start date ${date} exists in the database
     Employee exists in the database  ${name}  ${date}

- Given employee "${name}" with start date ${date} exists in the system
+Given employee "${name}" with start date ${date} exists in the system
     Clear Database
     Add Employee  ${name}  ${date}

=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt Thu Sep 30 00:40:19 2010 +++ /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt Thu Sep 30 02:31:05 2010
@@ -20,8 +20,8 @@
 Add Employee
     [Arguments]  ${name}  ${date}
     Push Button  new_employee_button
-    Insert Into Text Field  name_input  ${name}
-    Insert Into Text Field  start_input  ${date}
+    Type Into Text Field  name_input  ${name}
+    Type Into Text Field  start_input  ${date}
     Push Button  save_button

 Status Message Should Be

Reply via email to