Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table
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.orgwrote: 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.comwrote: 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
Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table
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.orgwrote: 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.comwrote: 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
[jbehave-user] Re: Selenium Webdriver+Jbehave+Grid
Hi All Dev/user, Can any one provide the useful input for the problem mentioned in the trail of mail? Please advise. Hope it's okay as two days passed hence giving gentle reminder as if this problem gets solved then it would be useful for Jbehave users to do the execution on Local grid set up and not relying on souce labs any more. I've already provided sample Jbehave-selenium webdriver project to reproduce the problem and it does contain very basis framework for using selenium.This might be useful for the beginners to start with. Please let me know for any queries and concerns. Thanks On Mon, May 5, 2014 at 10:07 PM, Kaustubh Joshi kashu.jo...@gmail.comwrote: yes, sure Mauro..can you please share the sample project with dev's which I've sent in the first mail as for dev and user@jbehave mail list, I'd got bouncer mail because size was more than expected...?Please advise. Please let me know if you've any concern.. Thanks and Regards, K On Mon, May 5, 2014 at 8:10 PM, Mauro Talevi mauro.tal...@aquilonia.orgwrote: Please don't address emails to individuals and only use the mailing lists. On 5 May 2014, at 11:33, Kaustubh Joshi kashu.jo...@gmail.com wrote: Hi Dev/Jbehave users, Sorry to bother again! I wanted to incorporate Grid feature in selenium based Jbehave project but currently facing below mentioned problem.Attached is the sample project for further reference. 1)Created own custom driver provider to open browser on local machine 2) Now,I wanted to expand the capability via grid and don't want to use SAUCE as wanted to run on local grid structure.I've set up simple grid structure like 5 chrome,5 FF,1 IE instance. 3) I've done changes in code as mentioned in sample Jbehave git tutorial but the problem is when I'm running via command prompt, instead of opening remote browser , code is opening local chrome browser instance. The code I put in storyDriver.java file is :- if (System.getProperty(SAUCE_USERNAME) != null) { driverProvider = new SauceWebDriverProvider(); } else if (System.getProperty(REMOTE) != null) { driverProvider = new RemoteWebDriverProvider(); // replace with RemoteWebDriverProvider } else { driverProvider = new GoogleWebDriverProvided(); } The maven commands used are: For invoking browser on local : mvn test -Dtest.browser=chrome For invoking remote : mvn test -Dtest.browser=chrome -DREMOTE_WEBDRIVER_URL=http://remote machine IP:/wd/hub. I've seen code in RemoteWebDriverProvider where it has mentioned about propertly like REMOTE_WEBDRIVER_URL i meant public URL createRemoteURL() throws MalformedURLException { String url = System.getProperty(REMOTE_WEBDRIVER_URL); if (url == null) { throw new UnsupportedOperationException(REMOTE_WEBDRIVER_URL property not specified); } return new URL(url); } can any Dev/Mauro/Hans help in the code fix so that I can able to run stories in LOCAL GRID set up as well? Please advise. I've already attached the sample project. Please let me know if anybody got any questions. Regards, K Google-Core.rar