From 87f2ff759d912f82b1fc6374bf5ae70ff029e8aa Mon Sep 17 00:00:00 2001 From: "atp (Open ERP)" Date: Fri, 28 May 2010 16:26:57 +0530 Subject: [PATCH] [IMP]: Minor Improvement in comment of yaml file. bzr revid: atp@tinyerp.co.in-20100528105657-vhre832jnwh7elze --- addons/hr/test/test_hr.yml | 22 +++++++++--------- addons/hr_contract/test/test_hr_contract.yml | 6 ++--- addons/hr_holidays/test/test_hr_holiday.yml | 23 +++++++++---------- .../test/test_hr_recruitment.yml | 6 ++--- 4 files changed, 28 insertions(+), 29 deletions(-) diff --git a/addons/hr/test/test_hr.yml b/addons/hr/test/test_hr.yml index 494111737b1..74d7c8de8d1 100644 --- a/addons/hr/test/test_hr.yml +++ b/addons/hr/test/test_hr.yml @@ -1,15 +1,15 @@ - | - In order to test the hr module in OpenERP, I will create new Employee , Department and Job Position. + In order to test hr module in OpenERP, I will create new Employee , Department and Job Position. - | - First I create Department "R & D" in Department form. + I create "R & D" Department in Department form. - !record {model: hr.department, id: hr_department_rd0}: manager_id: base.user_root name: 'R & D ' - | - Now, I create a new employee “employee1”. + Now, I create a new employee “Mark Johnson”. select "R & D" Department which I had created. - !record {model: hr.employee, id: hr_employee_employee0}: @@ -22,7 +22,7 @@ department_id: 'hr_department_rd0' - | - In order to check the wizard “Employee Hierarchy” I will create new employee “employee2” and select "employee1" as + In order to check the wizard “Employee Hierarchy” , I will create new employee “Phil Graves ” and select "Mark Johnson" as Manager. - !record {model: hr.employee, id: hr_employee_employee1}: @@ -33,11 +33,11 @@ user_id: base.user_demo parent_id: 'hr_employee_employee0' - | - Now I will open up form view of “employee1” and test the wizard “Employee Hierarchy” so it display the employee - hierarchy starting from “employee1”. + I will open up form view of “Mark Johnson” and test the wizard “Employee Hierarchy” so it display the employee + hierarchy starting from “Mark Johnson”. - | - Now I will create new Job Position. I will check successfull creation of new Job Position by adding the information. + I will create new Job Position. I will check successfull creation of new Job Position by adding the information. - !record {model: hr.job, id: hr_job_jea0}: department_id: 'hr_department_rd0' @@ -51,17 +51,17 @@ - state == 'open' - | - I create Employee for this position in this Job Position form. + I create Employee for job position. - !record {model: hr.job, id: hr_job_jea0}: employee_ids: - address_home_id: base.res_partner_address_1 - name: employee3 + name: Manuel Lehba department_id: 'hr_department_rd0' gender: male parent_id: 'hr_employee_employee0' -- - I check that "NO of Employee" is "1" +- | + I check that "Number of Employees" field have some value. - !assert {model: hr.job, id: hr_job_jea0}: - no_of_employee != False diff --git a/addons/hr_contract/test/test_hr_contract.yml b/addons/hr_contract/test/test_hr_contract.yml index 87c44722e2c..cbcc7e67fda 100644 --- a/addons/hr_contract/test/test_hr_contract.yml +++ b/addons/hr_contract/test/test_hr_contract.yml @@ -3,7 +3,7 @@ I will create contract for "Mark Johnson" employee. - | - First I create Employee "Mark Johnson" + I create Employee "Mark Johnson" to assign contract. - !record {model: hr.employee, id: hr_employee_employee0}: address_home_id: base.res_partner_address_1 @@ -30,9 +30,9 @@ type: gross - | - Now I start by create contract for "Mark Johnson". + Now I start by creating contract for "Mark Johnson". Select wage type "Monthly Gross Wage" and Wage period "monthly" - which I have given. + which I had given. - !record {model: hr.contract, id: hr_contract_contract0}: advantages_gross: 0.0 diff --git a/addons/hr_holidays/test/test_hr_holiday.yml b/addons/hr_holidays/test/test_hr_holiday.yml index 960d12f23bd..68d58b1791b 100644 --- a/addons/hr_holidays/test/test_hr_holiday.yml +++ b/addons/hr_holidays/test/test_hr_holiday.yml @@ -1,6 +1,5 @@ - | - In order to test the hr_holiday in OpenERP, I will Manage leaves for employee, - Leave requests. + In order to test the hr_holiday in OpenERP, I will Allocate leaves for Employee and manage leaves and leaves requests. - | For that First I create new user "user1" to make leave request. - @@ -15,7 +14,7 @@ name: user1 password: user1 - | - Now, I create a new employee “Mark Johnshon” as Manager to validate employee leave. + I create a new employee “Mark Johnshon” as Manager to validate employee leave. - !record {model: hr.employee, id: hr_employee_employee0}: address_home_id: base.res_partner_address_1 @@ -24,11 +23,11 @@ name: Mark Johnson user_id: base.user_root - | - create another employee "Brijesh Patel" as "user1" who make leave request. + Create another employee "Phil Graves" as "user1" who make leave request. - - !record {model: hr.employee, id: hr_employee_brijeshpatel0}: + !record {model: hr.employee, id: hr_employee_philgraves0}: address_home_id: base.res_partner_address_8 - name: Brijesh Patel + name: Phil Graves parent_id: 'hr_employee_employee0' user_id: 'res_users_user0' - | @@ -40,11 +39,11 @@ limit: 1 - | - After that I allocate leave request for employee "Brijesh Patel". + After that I allocate leave request for employee "Phil Graves". - !record {model: hr.holidays, id: hr_holidays_allocateleaveforuser0}: allocation_type: employee - employee_id: 'hr_employee_brijeshpatel0' + employee_id: 'hr_employee_philgraves0' holiday_status_id: hr_holidays_status_fullleave0 name: Allocate leave for user1 number_of_days_temp: 12.0 @@ -62,13 +61,13 @@ !workflow {model: hr.holidays, action: validate, ref: hr_holidays_allocateleaveforuser0} - | - Now employee "Brijesh Patel" want to leave. so, I connect as user1 which is username of this employee and want to make leave request. + Now employee "Phil Graves" want to leave. so, I connect as user1 which is username of this employee and want to make leave request. - !record {model: hr.holidays, id: hr_holidays_iwanttoleaveforgotohospital0}: allocation_type: employee date_from: '2010-05-20 11:48:00' date_to: '2010-05-21 11:48:00' - employee_id: 'hr_employee_brijeshpatel0' + employee_id: 'hr_employee_philgraves0' holiday_status_id: 'hr_holidays_status_fullleave0' name: I want to leave for go to hospital notes: I want to leave for go to hospital. so please accept my leave. @@ -82,12 +81,12 @@ - state == 'draft' - | - Now I confirm my leave Request by click on "Confirm" button. + I confirm my leave Request by click on "Confirm" button. - !workflow {model: hr.holidays, action: confirm, ref: hr_holidays_iwanttoleaveforgotohospital0} - | - Now I connect as Admin user and Open Leave request of "Brijesh Patel". + I connect as Admin user and Open Leave request of "Phil Graves". and "validate" it by click on "validate" button. - !workflow {model: hr.holidays, action: validate, ref: hr_holidays_iwanttoleaveforgotohospital0} diff --git a/addons/hr_recruitment/test/test_hr_recruitment.yml b/addons/hr_recruitment/test/test_hr_recruitment.yml index bf5da78c69a..3b865efe113 100644 --- a/addons/hr_recruitment/test/test_hr_recruitment.yml +++ b/addons/hr_recruitment/test/test_hr_recruitment.yml @@ -1,10 +1,10 @@ - | - In order to test hr_recruitment module for OpenERP object, I create applicants form and Manages job positions and the recruitement process. + In order to test hr_recruitment module for OpenERP, I will create applicants form, Manages job positions and the recruitement process. - | - I create job possition for employee to manage job position. + I create job position for employee to manage job position. - | - First I create Department "R & D" in Department form for which I make recruitment. + For that First I create Department "R & D" in Department form for which I make recruitment. - !record {model: hr.department, id: hr_department_rd0}: manager_id: base.user_root