[ADD]project_scrum : Add file for scrum sprit test cases
bzr revid: dbr@tinyerp.com-20110826121757-71ku92r0g5jnzipe
This commit is contained in:
@@ -65,7 +65,10 @@ More information on the methodology:
|
||||
"board_project_scrum_view.xml",
|
||||
],
|
||||
'demo_xml': ['project_scrum_demo.xml'],
|
||||
'test': ['test/project_scrum_report.yml'],
|
||||
'test': [
|
||||
'test/project_scrum_report.yml',
|
||||
'test/scrum_sprint_test.yml'
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
'certificate' : '00736750152003010781',
|
||||
|
||||
@@ -1,9 +1,146 @@
|
||||
-
|
||||
I assign an email address to Administrator.
|
||||
-
|
||||
!record {model: res.users, id: base.user_root}:
|
||||
user_email: admin@openerp.com
|
||||
-
|
||||
Test project template feature
|
||||
-
|
||||
Create project 'OpenERP Training Programme'
|
||||
-
|
||||
!record {model: project.project, id: project_project_0}:
|
||||
company_id: base.main_company
|
||||
name: OpenERP Training Test
|
||||
-
|
||||
In order to test the PDF reports defined on a Project Scrum, we will print Project Scrum Sprint Burndown Report
|
||||
-
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
import netsvc, tools, os
|
||||
data_dict = {'model': 'project.scrum.sprint', 'id':ref('project_scrum.scrum_sprint_0')}
|
||||
(data, format) = netsvc.LocalService('report.scrum.sprint.burndown').create(cr, uid, [ref('project_scrum.scrum_sprint_0')], data_dict, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'project_scrum-project_scrum_sprint_burndown.'+format), 'wb+').write(data)
|
||||
file(os.path.join(tools.config['test_report_directory'], 'project_scrum-project_scrum_sprint_burndown.'+format), 'wb+').write(data)
|
||||
-
|
||||
Creating a project.scrum.product.backlog record
|
||||
-
|
||||
!record {model: project.scrum.product.backlog, id: project_scrum_product_backlog0}:
|
||||
effective_hours: 0.0
|
||||
expected_hours: 0.0
|
||||
name: test
|
||||
project_id: project_project_0
|
||||
sequence: 0.0
|
||||
state: draft
|
||||
-
|
||||
In order to test the Product Backlog.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_draft(cr, uid, [ref("project_scrum_product_backlog0")],context=None)
|
||||
-
|
||||
Click on Open Button.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_open(cr, uid, [ref("project_scrum_product_backlog0")],context=None)
|
||||
-
|
||||
Click on Pending Button.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_pending(cr, uid, [ref("project_scrum_product_backlog0")],context=None)
|
||||
-
|
||||
Click on Open Button.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_open(cr, uid, [ref("project_scrum_product_backlog0")],context=None)
|
||||
-
|
||||
Creating a project.scrum.meeting record.
|
||||
-
|
||||
!record {model: project.scrum.meeting, id: project_scrum_meeting_0}:
|
||||
date: !eval time.strftime('%Y-%m-%d')
|
||||
sprint_id: project_scrum.scrum_sprint_0
|
||||
-
|
||||
In order to test the Scrum meeting
|
||||
-
|
||||
!python {model: project.scrum.meeting}: |
|
||||
try:
|
||||
self.button_send_to_master(cr, uid, [ref("project_scrum_meeting_0")],context=None)
|
||||
self.button_send_product_owner(cr, uid, [ref("project_scrum_meeting_0")],context=None)
|
||||
except:
|
||||
pass
|
||||
-
|
||||
Creating a project.scrum.email record.
|
||||
-
|
||||
!record {model: project.scrum.email, id: project_scrum_email_0}:
|
||||
subject: Subject
|
||||
message: test message
|
||||
-
|
||||
Send project scrum email
|
||||
-
|
||||
!python {model: project.scrum.email}: |
|
||||
try:
|
||||
self.button_send_scrum_email(cr, uid, [ref("project_scrum_email_0")],context=None)
|
||||
except:
|
||||
pass
|
||||
-
|
||||
Creating first scrum backlog for merge the record.
|
||||
-
|
||||
!record {model: project.scrum.backlog.merge, id: project_scrum_backlog_merge1}:
|
||||
project_id: project_project_0
|
||||
-
|
||||
Creating second scrum backlog for merge the record.
|
||||
-
|
||||
!record {model: project.scrum.backlog.merge, id: project_scrum_backlog_merge2}:
|
||||
project_id: project_project_0
|
||||
-
|
||||
Set project scrum backlog merge.
|
||||
-
|
||||
!python {model: project.scrum.backlog.merge}: |
|
||||
context['active_ids'] = [ref("project_scrum_backlog_merge1"),ref("project_scrum_backlog_merge2")]
|
||||
context['active_id'] = [ref("project_scrum_backlog_merge1")]
|
||||
try:
|
||||
self.check_backlogs(cr, uid, [ref("project_scrum_backlog_merge2")],context)
|
||||
except:
|
||||
pass
|
||||
-
|
||||
In order to test the project_scrum_backlog_create_task wizard
|
||||
-
|
||||
!record {model: project.scrum.backlog.create.task, id: project_scrum_backlog_task0}:
|
||||
user_id: base.user_root
|
||||
-
|
||||
Set project as project template
|
||||
-
|
||||
!python {model: project.scrum.backlog.create.task}: |
|
||||
context['active_ids'] = [ref("project_scrum_backlog_task0")]
|
||||
self.do_create(cr, uid, [ref("project_scrum_backlog_task0")],context)
|
||||
|
||||
-
|
||||
Creating a ScrumProduct Backlog Record.
|
||||
-
|
||||
!record {model: project.scrum.product.backlog, id: project_scrum_product_demobacklog0}:
|
||||
effective_hours: 0.0
|
||||
expected_hours: 0.0
|
||||
name: Demo Product backlog
|
||||
project_id: project_project_0
|
||||
sequence: 0.0
|
||||
|
||||
-
|
||||
Creating a postpone.wizard record.
|
||||
-
|
||||
!record {model: postpone.wizard, id: postpone_wizard_0}:
|
||||
{}
|
||||
|
||||
-
|
||||
Now I am postponding the Backlog "Demo Product backlog".
|
||||
-
|
||||
!python {model: postpone.wizard}: |
|
||||
context['active_ids'] = [ref("project_scrum_product_demobacklog0")]
|
||||
context['active_id'] = [ref("postpone_wizard_0")]
|
||||
self.button_postpone( cr, uid, [ref("postpone_wizard_0")], context=context)
|
||||
-
|
||||
Click on Postpone Button.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_postpone(cr, uid, [ref("project_scrum_product_backlog0")],context=None)
|
||||
-
|
||||
Click on Close Button.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_close(cr, uid, [ref("project_scrum_product_backlog0")],context=None)
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
-
|
||||
Creating a Scrum Sprint Record
|
||||
-
|
||||
!record {model: project.scrum.sprint, id: project_scrum_sprint_testsprint0}:
|
||||
date_start: !eval time.strftime('%Y-%m-01')
|
||||
date_stop: !eval time.strftime('%Y-%m-17')
|
||||
name: Demo Sprint
|
||||
product_owner_id: base.user_admin
|
||||
project_id: project.project_project_22
|
||||
scrum_master_id: base.user_admin
|
||||
state: draft
|
||||
-
|
||||
I am copying the "Demo Sprint" Sprint
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.copy(cr, uid, ref("project_scrum_sprint_testsprint0"))
|
||||
-
|
||||
I am changing the Project of the "Demo Sprint" Sprint
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.onchange_project_id(cr, uid, [ref("project_scrum_sprint_testsprint0")], ref("project.project_project_9"))
|
||||
|
||||
-
|
||||
I am Opeing the "Demo Sprint" Sprint
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.button_open(cr, uid, [ref("project_scrum_sprint_testsprint0")])
|
||||
|
||||
-
|
||||
I am Setting the "Demo Sprint" Sprint to Pending
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.button_pending(cr, uid, [ref("project_scrum_sprint_testsprint0")])
|
||||
|
||||
-
|
||||
I am Closing the "Demo Sprint" Sprint.
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.button_close(cr, uid, [ref("project_scrum_sprint_testsprint0")])
|
||||
|
||||
-
|
||||
I am Setting the "Demo Sprint" Sprint to Draft.
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.button_draft(cr, uid, [ref("project_scrum_sprint_testsprint0")])
|
||||
|
||||
-
|
||||
I am Cancelling the "Demo Sprint" Sprint.
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
self.button_cancel(cr, uid, [ref("project_scrum_sprint_testsprint0")])
|
||||
Reference in New Issue
Block a user