Revision: 4193
Author: jprantan
Date: Thu Sep 30 00:40:19 2010
Log: Finalized one failing test and updated tests to push New Employee
button.
http://code.google.com/p/robotframework/source/detail?r=4193
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/src/vacalc/ui.py
=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt
Thu Sep 30 00:22:18 2010
+++ /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt
Thu Sep 30 00:40:19 2010
@@ -7,11 +7,11 @@
and "Juha" exists in the employee listing
and "Juha" with start date 2010-01-01 exists in the database
-Adding employee with same ID
- Given employee "Juha" with start date 2010-1-1 exists in the system
- When "Juha" with start date 2010-2-2 is added
- Then message "Employee 'Juha' already exists in the system" is shown
- and "Juha" with start date 2010-1-1 exists in the database
+Adding employee with same name
+ Given employee "Juha" with start date 2010-01-01 exists in the system
+ When "Juha" with start date 2010-02-02 is added
+ 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
@@ -35,6 +35,10 @@
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
+ Clear Database
+ Add Employee ${name} ${date}
***Settings***
=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt Wed
Sep 29 23:52:34 2010
+++ /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt Thu
Sep 30 00:40:19 2010
@@ -19,6 +19,7 @@
Add Employee
[Arguments] ${name} ${date}
+ Push Button new_employee_button
Insert Into Text Field name_input ${name}
Insert Into Text Field start_input ${date}
Push Button save_button
=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/src/vacalc/ui.py Wed Sep 29
23:52:28 2010
+++ /trunk/proto/atdd-tutorial-berlin-2010/src/vacalc/ui.py Thu Sep 30
00:40:19 2010
@@ -50,7 +50,7 @@
return list
def _create_new_employee_button(self):
- btn = JButton('New Employee')
+ btn = JButton('New Employee', name='new_employee_button')
btn.addActionListener(ListenerFactory(ActionListener,
self._new_employee))
return btn
@@ -116,7 +116,7 @@
self._status_label = JLabel(name='status_label',
font=Font(Font.SERIF, Font.PLAIN, 9))
self.add(self._status_label)
- self.add(Box.createRigidArea(Dimension(0,5)))
+ self.add(Box.createRigidArea(Dimension(0, 5)))
def _create_name_editor(self):
self.add(JLabel(text='Name'))