Hi,
You can reproduce by using a "given" implementation using that ctx.data, for
instance: "Given I install the required modules with dependencies:"
Here is an feature file to reproduce the error:
@init
Feature: Parameter the new database
In order to have a coherent installation
I've automated the manual steps.
@modules
Scenario: install modules
Given I install the required modules with dependencies:
| name |
| account |
Then run using the feature tag and scenario tag.
behave -k -t@init -t@modules Scenario/features........
kr
J-E
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OERPScenario.
https://bugs.launchpad.net/bugs/1154208
Title:
ctx.data not initialized when executing a step
Status in OpenERP Scenario : Functional tests by Camptocamp:
New
Bug description:
Hi,
ctx.data is initialized inside before_feature (environment.py). However, the
before_feature method is only called when running a feature, it's not called
when executing only one step.
Can you please ensure ctx.data is initialized in before_step, e.g.
| if not hasattr(ctx,'data'):
| ctx.data = {}
By the way, what's the purpose of that data dict?
kr,
J-E
To manage notifications about this bug go to:
https://bugs.launchpad.net/oerpscenario/+bug/1154208/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp