← Back to team overview

openerp-expert-framework team mailing list archive

Re: why Tiny cannot make an OERPScenario clone, so please just use it!

 

Hi again,


First some answer to Olivier:

> 1. It was definitely non-trivial to write the steps definition and get
> the syntax right to make the test work, even with the basic
> documentation provided with ooor and oerpscenario. The barrier is not
> that small for an openobject python developer, I'm afraid.

May be having a look on the cucumber doc will help you : 

http://wiki.github.com/aslakhellesoy/cucumber/

I agree it takes me like one full day to understand all stuff around this new tool. But considering the power, I think it's fair!

> 2. Debugging errors is a challenge. Even if that's already the case with
> OpenErp, at least I am already familiar with them.
> E.g. here I have no idea why an ActiveResource suddenly calls a random
> "allowed!" method, and how I could solve that.
> (See bottom for some of the errors I encountered)
> It feels a bit sluggish on my machine, but that's probably irrelevant.

Well, we may be have a talk for this.. Just call me. 

> 3. I am not sure how this could scale for a large scenario base if we
> have to rely on a small number of oerpscenario developers writing the
> steps definition for everyone else.
> (Compare this with recording the actual scenario in OpenERP directly
> with an improved base_module_record that would output yaml?)

I think one of the high added value of OERPScenario is that more tests you code, more
 easily it became to write them. You can re-use the "already coded" sentences. With something like
2 people from your team, and my staff, we can handle something like 8 to 10 complex tests 
case a day, which is good I think..

You also have to consider that one scenario tests a lot of functions into OpenERP (on_change,
wizard, object methods, ...).


> 4. Finally, I really like cucumber's output for the test results.
> Note to team: arrange something similar for regular OpenERP tests!

+1

> PS: Raphael, I'm not in the openerp-expert-framework, thanks for adding
> me ;-)

Could you please also add nicolas.bessi@xxxxxxxxxxxxxx from my staff ?


Now, on the way home, I though about a few things. All we all want here is to have a better
OpenERP system right ! Based on that, I though about:

- Adding YAML to OpenERP sounds good, keep going !

- Improving the module recorder sounds good also, let's go for that too ! With OERPScenario, 
  we can launch the demo data "tests set" (if I can called them like that), so we're going to 
  be able to launch them ! Having a nice output "a la Cucumber".
 
- Including more tests directly in the YAML files to tests some basic stuff sounds good also.
  Let's do that too ! (OERPScenario will be able to launch them too)

- Complex scenario based on expert knowledge (even with translation support in the future),
  should be coded into OERPScenario. OpenERP SA should communicate about this. Making this 
  tool the way experts can request complex test case by writing them in the Gherkin syntax. C2C and
  OpenERP SA Staff will try to code every request to make this happen and working.

- OpenERP SA will ensure OERPScenario to be launched before every release, and all found 
  trouble will be solved. On certain complex business bug, providing an OERPScenario test will be
  approved as a good way to ensure no regressions.

- We'll try to write a better doc, and we're open to make one day training to some of your
  team if you want.

- OpenERP SA start to contribute and invest their self into the project, or at least, communicate
  on their favorable position regarding OERPScenario. This will ensure people that the tool will be there
  in the future. They will only invest time on a project like this if you support it !

- We'll try together to support with all our strength every questions asked on LP to help people understand
  how to use and run OERPScenario as well as all other tests tools.

Fabien, I ask you to consider my suggestions. This is only with one goal in mind: Make and keep OpenERP the best 
Open Source ERP ever :) !

Thanks for your attention,

Best regards,

Joël


-- 

Joël Grand-Guillaume 
Division Manager
Business Solutions

Camptocamp SA
PSE A, CH-1015 Lausanne
 www.camptocamp.com 

Phone: +41 21 619 10 28
Office: +41 21 619 10 10
Fax: +41 21 619 10 00
Email: joel.grandguillaume@xxxxxxxxxxxxxx
http://www.camptocamp.com/fr/business-solutions/formations


References