Provide an API for test coding
For every test case, we need a lot of shared infos, for example in accounting, we'll very oftenly need to find a journal with a specific type and currency or to find the default debit account....
So I'm thinking on a way to provide to everyone a kind of API to request all of those typical infos. It should be something loaded for every scenario, and should be able to provide every developers a unique way to request those values / ids.
This API should also provide the creation of "good state" before the tests start as, for example, create all missing journal and put the tested instance in a valid state before testing it (ensure avery needed journal, account, currency etc.. are set correctly).
Blueprint information
- Status:
- Started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Joël Grand-Guillaume @ camptocamp
- Definition:
- Drafting
- Series goal:
- None
- Implementation:
- Started
- Milestone target:
- 0.9
- Started by
- Joël Grand-Guillaume @ camptocamp
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
== Joel 17.12.2009 ==
First start coding those helpers:
- Object creation utility to make things easier
- Invoice (done)
- SO
- PO
- Packing list
- Product
- Partner (partially done)
- Wizard caller utility link to every object
- Workflow helpers to ease their use in complex cases
- Cancel SO (with packing,...)
- Cancel reconciled invoice