Revision: 2627
Author: janne.t.harkonen
Date: Mon Mar 15 13:15:50 2010
Log: Fleshed out get user test
http://code.google.com/p/robotframework/source/detail?r=2627
Modified:
/trunk/proto/atdd_example/VacalcLibrary.py
/trunk/proto/atdd_example/atest/add_employee.txt
=======================================
--- /trunk/proto/atdd_example/VacalcLibrary.py Mon Mar 15 06:45:32 2010
+++ /trunk/proto/atdd_example/VacalcLibrary.py Mon Mar 15 13:15:50 2010
@@ -20,6 +20,9 @@
def add_user(self, name, startdate):
self._run('add_user', name, startdate)
+ def get_user(self, name):
+ self._run('get_user', name)
+
def _run(self, command, *args):
cmd = [sys.executable, 'vacalc.py', command] + list(args)
print subprocess.list2cmdline(cmd)
=======================================
--- /trunk/proto/atdd_example/atest/add_employee.txt Mon Mar 15 06:43:29
2010
+++ /trunk/proto/atdd_example/atest/add_employee.txt Mon Mar 15 13:15:50
2010
@@ -9,7 +9,7 @@
Given no users exist in the system
And employee Pekka K is added with start date 2009-1-1
When user queries info about Pekka K
- Then message "Pekka K: start date 2009-1-1" is shown
+ Then message "Pekka K: start date 2009-01-01" is shown
Add already existing employee
Given no users exist in the system
@@ -26,6 +26,10 @@
Then message "${msg}" is shown
Status Should Be ${msg}
+
+User queries info about ${name}
+ Get User ${name}
+
*** Settings ***
Resource resource.txt