I created such an example for jbehave-core now and attached it to this posting. I still cannot work on a clone the Github project because of company restrictions (I haven't yet received an answer why it is not working inside the company proxy).
In case the mailing list does not support attachments I have also sent them directly to Mauro. To reproduce it you will need this in the Maven pom.xml: <metaFilters> <metaFilter>*+component order -skip*</metaFilter> </metaFilters> On Wed, May 7, 2014 at 11:03 AM, Hans Schwäbli <bugs.need.love....@gmail.com > wrote: > I committed it here: > https://github.com/OttoDiesel/jbehave-shop-example.git > > I will add such a scenario to the core examples. Until then you could use > that other example if you like. It is the example for the article on > JBehave by the way. > > > On Tue, May 6, 2014 at 3:04 PM, Mauro Talevi > <mauro.tal...@aquilonia.org>wrote: > >> Yes, it looks likely to be unrelated to given stories and such. >> >> Could you please add a scenario reproducing the behaviour to the >> meta_filtering.story in the core examples (preferably in English)? >> >> Does it work with 3.x? >> >> On 06/05/2014 11:34, Hans Schwäbli wrote: >> >> I already use StoryControls.doIgnoreMetaFiltersIfGivenStory(true). And >> I removed the given story in the story. >> >> But the result is the same. >> >> Maybe tomorrow I can commit the whole project, so that you can reproduce >> it. >> >> >> On Tue, May 6, 2014 at 11:00 AM, Stephen de Vries <stephe...@gmail.com>wrote: >> >>> >>> On 6 May 2014, at 10:51, Hans Schwäbli <bugs.need.love....@gmail.com> >>> wrote: >>> >>> I have the example story, see below. It runs not as expected when >>> filtering by: +Komponente Bestellung -Skip >>> >>> VorgegebeneStories: >>> shop/stories/Login.story >>> >>> >>> My guess is that the given story doesn’t have the same meta-tags. Fix >>> is to set: StoryControls.doIgnoreMetaFiltersIfGivenStory(true) >>> >>> See: http://jira.codehaus.org/browse/JBEHAVE-789 >>> >>> >> >> >
For orders it has to be checked whether discounts apply. In addition, no shipping costs will be calculated with a high value of goods. Meta: @component order Narrative: In order to create quotes and invoices As a agend in the sales department I want to take discounts into account Scenario: Discount limits are reached !--TODO: Total value could also be examined. When a customer orders <amount> T-Shirts Then the discount is <discount> percent And the price for one T-Shirt is <price> Euro Examples: |------|--------|-----| |amount|discount|price| |------|--------|-----| |49 |0 |10 | |50 |10 |9 | |99 |10 |9 | |100 |20 |8 | |------|--------|-----|
OderSteps.java
Description: Binary data
ShopStories.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email