[REVIEW] HR: testing cases of Human Resource Management

bzr revid: hmo@tinyerp.com-20111128054605-8wb7xpf3fn9ntiea
This commit is contained in:
Harry (OpenERP)
2011-11-28 11:16:05 +05:30
parent 2275d445f9
commit a0f45aedd5
4 changed files with 13 additions and 26 deletions
+1 -1
View File
@@ -55,8 +55,8 @@ You can manage:
'hr_department_demo.xml',
],
'test': [
'test/hr_employee_demo.yml',
'test/open2recruit2close_job.yml',
'test/hr_demo.yml',
],
'installable': True,
'active': False,
+10
View File
@@ -0,0 +1,10 @@
-
!record {model: hr.job, id: job_jr_appli, view: False}:
no_of_employee: 0.0
no_of_recruitment: 5.0
-
!record {model: hr.employee, id: employee1, view: False}:
address_id: base.main_address
company_id: base.main_company
department_id: dep_technical
user_id: base.user_demo
-21
View File
@@ -1,21 +0,0 @@
-
!record {model: hr.department, id: dep_technical, view: False}:
manager_id: base.user_root
name: 'R & D'
-
!record {model: hr.job, id: job_jr_appli, view: False}:
department_id: 'dep_technical'
description: 'Position of Junior Application Engineer'
expected_employees: 5.0
name: 'JAE'
no_of_employee: 0.0
no_of_recruitment: 5.0
state: open
-
!record {model: hr.employee, id: employee1, view: False}:
address_id: base.main_address
company_id: base.main_company
department_id: dep_technical
name: smith
parent_id: hr.employee1
user_id: base.user_demo
+2 -4
View File
@@ -1,8 +1,6 @@
-
I test the process of Job position in hr module of OpenERP,
In order to test the process of Human Resource Management, I open Job Postion for "Jr. Application Engineer".
-
I open Job Postion for "Jr. Application Engineer".
-
!python {model: hr.job}: |
self.job_open(cr, uid, [ref('job_jr_appli')])
-
@@ -37,4 +35,4 @@
-
!assert {model: hr.job, id: job_jr_appli, string: Job position is in 'old' state and no_of_recruitment = 0}:
- state == 'old'
- no_of_recruitment == 0
- no_of_recruitment == 0