[IMP] project_scrum: rename file with proper name, change string of test change
bzr revid: hmo@tinyerp.com-20111128092547-yr2t7elicvtmj1ld
This commit is contained in:
@@ -65,11 +65,10 @@ More information on the methodology:
|
||||
"board_project_scrum_view.xml",
|
||||
],
|
||||
'demo_xml': ['project_scrum_demo.xml'],
|
||||
'test': ['test/draft2open2close_backlog.yml',
|
||||
'test/draft2open2close_sprint.yml',
|
||||
'test': ['test/backlog_process.yml',
|
||||
'test/sprint_process.yml',
|
||||
'test/cancel_backlog.yml',
|
||||
'test/project_scrum_demo.yml',
|
||||
'test/project_scrum_report.yml',
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
|
||||
+4
-6
@@ -1,5 +1,5 @@
|
||||
-
|
||||
In Order to Test process of Backlog,
|
||||
In Order to Test process of Project Agile Methology,
|
||||
-
|
||||
I put Backlog in pending state because of specification is not ready.
|
||||
-
|
||||
@@ -21,7 +21,7 @@
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_0, severity: error, string: Backlog should be in open state}:
|
||||
- state == "open"
|
||||
-
|
||||
I close Backlog after review
|
||||
I close Backlog after review.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_close(cr, uid, [ref("scrum_product_backlog_0")])
|
||||
@@ -31,11 +31,9 @@
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_0, severity: error, string: Backlog should be in close state}:
|
||||
- state == "done"
|
||||
-
|
||||
I merge two Backlogs in to one Backlog
|
||||
-
|
||||
First check If only one product backlog selected and If any of the backlog state is done Then not allow merge.then do merge
|
||||
I merge two Backlogs in to one Backlog.
|
||||
-
|
||||
!python {model: project.scrum.backlog.merge}: |
|
||||
self.check_backlogs(cr, uid, [ref("scrum_product_backlog_1"),ref("scrum_product_backlog_2")], {"active_ids": [ref("scrum_product_backlog_1"),ref("scrum_product_backlog_2")],
|
||||
"active_id": ref("scrum_product_backlog_1")
|
||||
})
|
||||
})
|
||||
@@ -1,5 +1,3 @@
|
||||
-
|
||||
In Order to Test process of Backlog cancellation,
|
||||
-
|
||||
I cancel Backlog "Automatic migration system" from draft state.
|
||||
-
|
||||
@@ -11,7 +9,7 @@
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_0, severity: error, string: backlog should be in cancel state}:
|
||||
- state == "cancel"
|
||||
-
|
||||
I cancel Backlog "Editable Trees" from open state.
|
||||
I cancel opened Backlog "Editable Trees".
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_cancel(cr, uid, [ref("scrum_product_backlog_7")])
|
||||
@@ -21,7 +19,7 @@
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_7, severity: error, string: backlog should be in cancel state}:
|
||||
- state == "cancel"
|
||||
-
|
||||
I put Backlog in pending state because of resource unavailability.
|
||||
I put Backlog in pending due to resource unavailability.
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_pending(cr, uid, [ref("scrum_product_backlog_0")])
|
||||
@@ -31,7 +29,7 @@
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_0, severity: error, string: Backlog should be in pending state}:
|
||||
- state == "pending"
|
||||
-
|
||||
I cancel Backlog "Automatic migration system" from pending state.
|
||||
I cancel pending Backlog "Automatic migration system".
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_cancel(cr, uid, [ref("scrum_product_backlog_0")])
|
||||
@@ -41,7 +39,7 @@
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_0, severity: error, string: backlog should be in cancel state}:
|
||||
- state == "cancel"
|
||||
-
|
||||
I Postpone Backlog "Reshape the complete menu" from open state.
|
||||
I Postpone opened Backlog "Reshape the complete menu".
|
||||
-
|
||||
!python {model: project.scrum.product.backlog}: |
|
||||
self.button_postpone(cr, uid, [ref("scrum_product_backlog_6")])
|
||||
@@ -49,4 +47,4 @@
|
||||
I check state of Backlog after Postpone.
|
||||
-
|
||||
!assert {model: project.scrum.product.backlog, id: scrum_product_backlog_6, severity: error, string: backlog should be in cancel state}:
|
||||
- state == "cancel"
|
||||
- state == "cancel"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
-
|
||||
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)
|
||||
+10
-3
@@ -1,5 +1,3 @@
|
||||
-
|
||||
In Order to Test process of Sprint,
|
||||
-
|
||||
I put sprint in pending state to allocate task to resources.
|
||||
-
|
||||
@@ -68,4 +66,13 @@
|
||||
I check state after closed sprint.
|
||||
-
|
||||
!assert {model: project.scrum.sprint, id: scrum_sprint_0, severity: error, string: Sprint shoud be in close state}:
|
||||
- state == "done"
|
||||
- state == "done"
|
||||
-
|
||||
I print Burndown chart of Sprint.
|
||||
-
|
||||
!python {model: project.scrum.sprint}: |
|
||||
import netsvc, tools, os
|
||||
data_dict = {'model': 'project.scrum.sprint', 'id':ref('scrum_sprint_0')}
|
||||
(data, format) = netsvc.LocalService('report.scrum.sprint.burndown').create(cr, uid, [ref('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)
|
||||
Reference in New Issue
Block a user