[jbehave-user] Transitive Scenarios

2013-09-11 Thread Hans Schwäbli
I am new with JBehave. When writing my first three login tests, I discovered that they depend on each other. - Scenario 1 Positive Login: User can login and is on homepage then. - Scenario 2 Positive Logout: User can logout successfully. - Scenario 3 Positive Re-Login: User can login

[jbehave-user] Fwd: Transitive Scenarios

2013-09-12 Thread Hans Schwäbli
and maybe I have to implement logic to optimize execution. -- Forwarded message -- From: Hans Schwäbli bugs.need.love@gmail.com Date: 2013/9/11 Subject: Transitive Scenarios To: user@jbehave.codehaus.org I am new with JBehave. When writing my first three login tests, I

[jbehave-user] Re: Transitive Scenarios

2013-09-12 Thread Hans Schwäbli
Unfortunately there seems to be a bug concerning GivenStories in 4.0-beta-3. It did not work with that version. But it works with JBehave 3.8.0. 2013/9/12 Hans Schwäbli bugs.need.love@gmail.com Great, thank you for that answer. I was looking for something like Given Scenario

[jbehave-user] Re: Transitive Scenarios

2013-09-12 Thread Hans Schwäbli
Hans Schwäbli bugs.need.love@gmail.com Unfortunately there seems to be a bug concerning GivenStories in 4.0-beta-3. It did not work with that version. But it works with JBehave 3.8.0. 2013/9/12 Hans Schwäbli bugs.need.love@gmail.com Great, thank you for that answer. I was looking

Re: [jbehave-user] Do I really need Page Objects?

2013-09-17 Thread Hans Schwäbli
it (and the recommended design pattern) and it works very well for us. ** ** Thanks, Enrique ** ** *From:* Hans Schwäbli [mailto:bugs.need.love@gmail.com] *Sent:* Monday, September 16, 2013 9:20 AM *To:* user@jbehave.codehaus.org *Subject:* Re: [jbehave-user] Do I really need Page

Re: [jbehave-user] Do I really need Page Objects?

2013-09-23 Thread Hans Schwäbli
be repeating the same arguments (probably in worst English) that they did. Once again is design is very subjective and as you pointed out there is more than 1 right answer. ** ** Thanks, Enrique ** ** *From:* Hans Schwäbli [mailto:bugs.need.love@gmail.com] *Sent:* Thursday

Re: [jbehave-user] Do I really need Page Objects?

2013-09-23 Thread Hans Schwäbli
. ** ** Happy JBehaving! Enrique ** ** *From:* Hans Schwäbli [mailto:bugs.need.love@gmail.com] *Sent:* Monday, September 23, 2013 6:04 AM *To:* user@jbehave.codehaus.org *Subject:* Re: [jbehave-user] Do I really need Page Objects? ** ** Hello Enrique

Re: [jbehave-user] Do I really need Page Objects?

2013-09-26 Thread Hans Schwäbli
. On 24/09/2013 06:05, Hans Schwäbli wrote: Hello Enrique, no problem, but I don't understand why you don't provide arguments as I have done. You seem to be easily offended by just one ironic sentence. I intended a productive discussion with you, no quarrel. This requires arguments

Re: [jbehave-user] Do I really need Page Objects?

2013-09-26 Thread Hans Schwäbli
. Now we have Gradle and Ant can be used with Groovy. I feel that Ant's XML is todays page objects for JBehave. But I might be wrong. I will try it without page objects and then see for myself if I am right or wrong. 2013/9/26 Hans Schwäbli bugs.need.love@gmail.com Hi Stephen, your

[jbehave-user] Better JUnit reporting result view

2013-09-27 Thread Hans Schwäbli
As it seems some people from Codecentric have written a custom JUnit-Runner for JBehave. It shows what stories and scenarios are run in the Eclipse JUnit view, even hierarchical. https://github.com/codecentric/jbehave-junit-runner

Re: [jbehave-user] Better JUnit reporting result view

2013-10-03 Thread Hans Schwäbli
thing I'd love to see there now is ability to go to the step candidate definition by click in the JUnit report in Eclipse. Regards, Alex Filatau. On Mon, Sep 30, 2013 at 12:33 AM, Hans Schwäbli bugs.need.love@gmail.com wrote: I wanted to suggest that the JBehave people add such a feature

Re: [jbehave-user] Better JUnit reporting result view

2013-10-04 Thread Hans Schwäbli
scenarios and stories. But, there may be bugs, in case you discover one, it'd be extremely nice, if you raise an issue on github: https://github.com/codecentric/jbehave-junit-runner/issues?milestone=nonestate=open Kind Regards, Andreas 2013/10/3 Hans Schwäbli bugs.need.love@gmail.com

[jbehave-user] Result report with css files and images, how to do?

2013-10-04 Thread Hans Schwäbli
The test result report of JBehave are HTML files. Unfortunately the referenced images and CSS file is not present in the target folder. I spend quite some time figuring out how to add these resources by some Maven configuration, but I could not get it working. Is there a small example for

Re: [jbehave-user] Better JUnit reporting result view

2013-10-04 Thread Hans Schwäbli
to say if you had an empty examples table in your scenario that produced that error. Thanks, Andreas 2013/10/4 Hans Schwäbli bugs.need.love@gmail.com Hello Andreas, If this becomes a part of JBehave I would share the scenario, but since I don't intend to use it (because of the reasons I

Re: [jbehave-user] Result report with css files and images, how to do?

2013-10-07 Thread Hans Schwäbli
/goals /execution That's it. It results in target/jbehave directory to get images and css etc in my case. Or were you asking about customization of all this? Regards, Alex Filatau. On Fri, Oct 4, 2013 at 7:54 AM, Hans Schwäbli bugs.need.love@gmail.com wrote: The test

[jbehave-user] Re: StepMonitor not displayed anymore

2013-10-07 Thread Hans Schwäbli
I discovered that the GivenStories are not executed too. That worked previously. Something is rotten in the state of Denmark. 2013/10/7 Hans Schwäbli bugs.need.love@gmail.com I wonder why the StepMonitor I configured is not displayed anymore. It used to work before I made some changes

Re: [jbehave-user] Result report with css files and images, how to do?

2013-10-07 Thread Hans Schwäbli
Thank you, this worked. 2013/10/7 Mauro Talevi mauro.tal...@aquilonia.org http://wiki.eclipse.org/M2E_plugin_execution_not_covered On 07/10/2013 08:28, Hans Schwäbli wrote: Thank you Alex! It worked now. I had forgot to add the jbehave-site-resources dependency. But I get this XML

Re: [jbehave-user] Story language settings improvement suggestion

2013-10-07 Thread Hans Schwäbli
, Cristiano Gavião wrote: good code contributions are always welcomed ! 2013/10/4 Hans Schwäbli bugs.need.love@gmail.com I tried to use JBehave with German language. Then I discovered that you have to configure a lot to achieve this. This is because you have to create a Keywords object

Re: [jbehave-user] Story language settings improvement suggestion

2013-10-08 Thread Hans Schwäbli
That would be no problem since you can set the language explicitly with a property like -Duser.language. I know that Oracle database has such defaults when you install it, but you can configure it afterwards to other timezones etc. This is not uncommon to do so. If you have a better idea of

[jbehave-user] Re: StepMonitor not displayed anymore

2013-10-08 Thread Hans Schwäbli
to chery pick transitive versions and safer to use the ones already configured in JBehave Web. Maybe it works more easily for chery picking Selenium dependencies. 2013/10/7 Hans Schwäbli bugs.need.love@gmail.com I discovered that the GivenStories are not executed too. That worked previously

[jbehave-user] Gradle and JBehave

2013-10-08 Thread Hans Schwäbli
A few weeks ago I started experimenting using Gradle on JBehave. I never became an expert on Maven although I think it is better than Ant. So I wanted to give Gradle a chance. I like the concept of it to mix imperative and declarative statements. This is the future I think. But things did not

[jbehave-user] How to access the JBehave system property?

2013-10-08 Thread Hans Schwäbli
I set a system property according to this description: http://jbehave.org/reference/stable/maven-goals.html But I could not figure out how to use it then, starting it with Maven goals clean and integration-test. I extend JUnitStories. In that class I try to access the property in the constructor

[jbehave-user] Re: How to access the JBehave system property?

2013-10-08 Thread Hans Schwäbli
embeddable, the method useEmbedder(...) could be called. Then one could use configuredEmbedder() even in the constructor of his embeddable class without getting just an inital embedder. This is just a possible suggestion, I didn't analyse it completely. 2013/10/8 Hans Schwäbli bugs.need.love

[jbehave-user] Re: How to access the JBehave system property?

2013-10-08 Thread Hans Schwäbli
My idea won't work. I don't know if it is possible to set the embedder earlier by JBehave so that he can be used in the embeddable constructor. 2013/10/8 Hans Schwäbli bugs.need.love@gmail.com I found a solution. Good that it is open source, so I can look into the code to find answers

Re: [jbehave-user] Screenshots in test result HTML protocol?

2013-10-16 Thread Hans Schwäbli
to the wider community. Cheers On 15/10/2013 12:59, Andreas Ebbert-Karroum wrote: Hans, I assume that you are working in that compandy, where codecentric helped to introduced JBehave. Please consult with the people there, they can show you how we implemented that. Andreas 2013/10/15 Hans

[jbehave-user] No annotation @BeforeStep and @AfterStep

2013-10-30 Thread Hans Schwäbli
There is no annotation @BeforeStep and @AfterStep. Why not? I tried to reset implicit wait time for Selenium in a method annotated with @BeforeStep.

Re: [jbehave-user] Support for dynamic variables?

2013-10-31 Thread Hans Schwäbli
define an API to access these variables. This is something that you cannot really generalise. If on the other hand you know these variable at execution time, you could pass them as system properties in the jbehave maven goal or ant task. On 31 Oct 2013, at 11:12, Hans Schwäbli

[jbehave-user] Potential for context view to get real monitoring capabilities

2013-11-05 Thread Hans Schwäbli
I like the context view feature of JBehave. I mean the LocalFrameContextView. You see what actually happens. But very few information are displayed. Here are some ideas what could be displayed additionally to scenario and step data: * which story is running * how many stories, scenarios and

Re: [jbehave-user] Support for dynamic variables?

2013-11-05 Thread Hans Schwäbli
and it works for us. Thanks, Enrique *From:* Hans Schwäbli [mailto:bugs.need.love@gmail.com] *Sent:* Thursday, October 31, 2013 8:24 AM *To:* user@jbehave.codehaus.org *Subject:* Re: [jbehave-user] Support for dynamic variables? I see. So there is no use looking for a existing JBehave

Re: [jbehave-user] How to define test run configurations with JBehave?

2013-11-06 Thread Hans Schwäbli
On 27 Sep 2013, at 10:54, Hans Schwäbli bugs.need.love@gmail.com wrote: What is the JBehave way to use test configurations? For instance I want to configure the base URL, the browser(s) to be used, some common data like username and password and so on. I could write

Re: [jbehave-user] Support for dynamic variables?

2013-11-06 Thread Hans Schwäbli
are looking for is called ScenarioContext, if my memory serves me right. Kind Regards -- Andreas Ebbert-Karroum (mobil) Am 05.11.2013 16:14 schrieb Hans Schwäbli bugs.need.love@gmail.com : Enrique, I was asking for information not demanding a feature. Can you guarantee that that page object

Re: [jbehave-user] JBehave vs Cucumber

2013-11-13 Thread Hans Schwäbli
I don't know Cucumber but a few month ago I read this comparison: http://mkolisnyk.blogspot.ch/2013/03/jbehave-vs-cucumber-jvm-comparison.html 2013/11/12 Karlsson Christian christian.karls...@cag.se Hi People I recently presented JBehave as a user acceptance automation tool to my

[jbehave-user] Importing JBehave Sources in Eclipse, how?

2013-11-13 Thread Hans Schwäbli
When I clone the JBehave sources, like jbehave-core, there is no .project and .classpath file inside the sources. So it cannot be imported and run in Eclipse. Aren't you JBehave developers working with Eclipse at all? How do you expect contributors to deal with this missing files? Do I have to

Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?

2013-11-13 Thread Hans Schwäbli
eclipse:eclipse no need to be rude. Cordialement/Regards, Louis GUEYE linkedin http://fr.linkedin.com/in/louisgueye | bloghttp://deepintojee.wordpress.com/| twitter http://twitter.com/#%21/lgueye 2013/11/13 Hans Schwäbli bugs.need.love@gmail.com When I clone the JBehave sources

Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?

2013-11-13 Thread Hans Schwäbli
Btw. thank you (still angry because of that other issue). 2013/11/13 Hans Schwäbli bugs.need.love@gmail.com Okay, I see. I will try that. Sorry if I sounded a bit angry. Maybe it is because I had to spend a lot of time in an JBehave issue. I first described the bug in this forum

Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?

2013-11-13 Thread Hans Schwäbli
there is a comment: NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse. Still it helps using mvn eclipse:eclipse I think. 2013/11/13 Hans Schwäbli bugs.need.love@gmail.com Btw. thank you (still angry because of that other issue). 2013/11/13 Hans

Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?

2013-11-13 Thread Hans Schwäbli
do both. My recommendation is to use the eclipse plugin. Andreas 2013/11/13 Hans Schwäbli bugs.need.love@gmail.com It works to some degree with mvn eclipse:eclipse. It creates a .project and .classpath file, but not for all folders. Maybe it is because they are just containers, like

Re: [jbehave-user] JBehave vs Cucumber

2013-11-13 Thread Hans Schwäbli
://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.URL=http%3a%2f%2fwww.cag.se%2f *Från:* Hans Schwäbli [mailto:bugs.need.love@gmail.com] *Skickat:* den 13 november 2013 10:33 *Till:* user@jbehave.codehaus.org *Ämne:* Re: [jbehave-user

Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?

2013-11-13 Thread Hans Schwäbli
I don't know why you should be frightened. I am glad to meet you. Excuse me, I don't use my real name in online forums or usernames. But I will write you quickly an email. Am 13. November 2013 14:04 schrieb Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de: 2013/11/13 Hans

[jbehave-user] JUnit result is OK although JBehave story failed

2013-11-14 Thread Hans Schwäbli
Is it a normal behavior that the JUnit result sometimes differ from the JBehave result? If I run the stories with as JUnitStories within Eclipse it can be that the JUnit result is green but that there are failures in the JBehave result (steps which failed). If it is not considered normal, I will

[jbehave-user] About a configuration method

2013-11-14 Thread Hans Schwäbli
I would like to ask a question about this method: org.jbehave.core.ConfigurableEmbedder.configuration(). Sometimes errors can occur if always a new instance of this object is returned, for example new report format objects are created. This is why they are constants in

[jbehave-user] Using inline comments in stories?

2013-11-21 Thread Hans Schwäbli
Is it possible to use inline comments in examples like below? *Examples:* |accountNr |city | |123 !-- private customer|Zuerich| |312 |Zuerich| |999 !-- company customer|Basel | The above example does not work, neither with !-- nor with |--. As it seems,

Re: [jbehave-user] JBehave vs Cucumber

2013-11-21 Thread Hans Schwäbli
Hello Andreas (Ebbert-Karroum), maybe you know the advantages of JBehave vs Cucumber and the main differences? 2013/11/13 Hans Schwäbli bugs.need.love@gmail.com I noticed that the comparison says that JBehave is a bit better than Cucumber concerning documentation. I would doubt

[jbehave-user] No access to web page with mailing list

2013-11-21 Thread Hans Schwäbli
This page does not work since today: http://www.mail-archive.com/user@jbehave.codehaus.org/ Message is: Forbidden. You don't have permission to access / user@jbehave.codehaus.org/ on this server.

Re: [jbehave-user] Using inline comments in stories?

2013-11-21 Thread Hans Schwäbli
I see. Thank you for the quick response. I have created a Jira issue with an improvement suggestion (low priority): http://jira.codehaus.org/browse/JBEHAVE-962 2013/11/21 Mauro Talevi mauro.tal...@aquilonia.org Inline comments are not currently supported. On 21 Nov 2013, at 14:40, Hans

[jbehave-user] Re: JBehave Stories Best Practices?

2013-11-26 Thread Hans Schwäbli
where you have to use productive data as test data and have nearly no control over them? 2013/11/22 Hans Schwäbli bugs.need.love@gmail.com I would like to discuss best practices in using JBehave/BDD concerning story writing. So I will assert some best practices now as a JBehave/BDD beginner

[jbehave-user] Some interesting features I discovered for JBehave

2013-11-27 Thread Hans Schwäbli
I read a bit The Cucumber Book in order to find best practices when writing BDD tests. It is very similiar, so I could find some. When I read across the book, I discovered some cool features which might be good for JBehave too. *Background* For instance there is a feature called Background.

Re: [jbehave-user] Some interesting features I discovered for JBehave

2013-11-27 Thread Hans Schwäbli
scenario writers are non-technical it would be baffling to them (and not just to them - regex is not exactly a user-friendly syntax). 3. The examples table can be separated in groups by comment lines. Cheers On 27/11/2013 08:29, Hans Schwäbli wrote: I read a bit The Cucumber Book in order

Re: [jbehave-user] Re: JBehave Stories Best Practices?

2013-12-04 Thread Hans Schwäbli
evolve over time. Feel free to create a JIRA issue and provide a pull request to a new page in https://github.com/jbehave/jbehave-core/tree/master/distribution/src/site/content Cheers On 27/11/2013 07:58, Hans Schwäbli wrote: I would especially like to discuss this issue: *3. Each scenario

Re: [jbehave-user] SeleniumStepMonitor could be more general

2013-12-04 Thread Hans Schwäbli
this in core... check this example: https://github.com/jbehave/jbehave-core/tree/master/examples/gameoflife 2013/12/4 Hans Schwäbli bugs.need.love@gmail.com There is a nice SeleniumStepMonitor in jbehave-web which shows live the steps which are performed in a small window. I tried to have

Re: [jbehave-user] SeleniumStepMonitor could be more general

2013-12-05 Thread Hans Schwäbli
StepMonitor (as many other configs) is set automatically for JBehave runner/embedder. and this project is for test a Swing application 2013/12/4 Hans Schwäbli bugs.need.love@gmail.com Could you be more specific please? If I look into this class, there is no StepMonitor configured

Re: [jbehave-user] SeleniumStepMonitor could be more general

2013-12-06 Thread Hans Schwäbli
is very helpful. But it should not be limited for Selenium but be more general in my opinion, so that it can be used whenever someone wants to use JBehave for UI testing. What do you think (not you Christiano ;-))? 2013/12/5 Hans Schwäbli bugs.need.love@gmail.com Strange, since if I don't

[jbehave-user] Limiting scope of steps possible?

2014-02-05 Thread Hans Schwäbli
The application under test contains several different functional modules to test. These modules are tested by different testers. Currently, if a tester writes a JBehave story, the story editor proposes all steps which exist for all modules. Is it possible to restrict which steps are proposed in

Re: [jbehave-user] Limiting scope of steps possible?

2014-02-05 Thread Hans Schwäbli
: http://byclosure.com On Wed, Feb 5, 2014 at 10:55 AM, Hans Schwäbli bugs.need.love@gmail.com wrote: The application under test contains several different functional modules to test. These modules are tested by different testers. Currently, if a tester writes a JBehave story, the story

[jbehave-user] Problem with parameter injection when an examples table is used

2014-02-06 Thread Hans Schwäbli
I have two steps like this with a examples table where the values are defined: Given the account data of debitAccount is known Given the account data of creditAccount is known First I tried this in the step class method for the two steps above: @Given(the account data of $debitAccount is known)

Re: [jbehave-user] Problem with parameter injection when an examples table is used

2014-02-07 Thread Hans Schwäbli
. What if you support using an regular expression for the @Named annotation instead of allowing just one value? That could be one way to solve it. The method ParameterisedStep.parametriseStep() would need to be adapted accordingly to support that logic. 2014-02-07 Hans Schwäbli bugs.need.love

Re: [jbehave-user] Problem with parameter injection when an examples table is used

2014-02-07 Thread Hans Schwäbli
). I think this should be the default, using delimeter named parameters. 2014-02-07 Hans Schwäbli bugs.need.love@gmail.com: I debugged it and as it seems, this method does not work as I would expect it: org.jbehave.core.steps.StepCreator.ParameterisedStep.parametriseStep

[jbehave-user] How to include stacktrace in test result report?

2014-02-13 Thread Hans Schwäbli
If an exception occurs while a step is being executed, JBehave only prints the type of exception and its message. It does not print the stacktrace, which could contain valuable information to analyse the exception. Can I somehow configure JBehave so that it includes the stacktrace in the test

Re: [jbehave-user] How to include stacktrace in test result report?

2014-02-13 Thread Hans Schwäbli
Thank you. 2014-02-13 15:50 GMT+01:00 Mauro Talevi mauro.tal...@aquilonia.org: Configuration.storyReporterBuilder().withFailureTrace(true) On 13 Feb 2014, at 13:41, Hans Schwäbli bugs.need.love@gmail.com wrote: If an exception occurs while a step is being executed, JBehave only

Re: [jbehave-user] SeleniumStepMonitor does not show up in JBehave 4.0 beta 4

2014-02-20 Thread Hans Schwäbli
is the objective? Show the running progress? On 19/02/2014 16:34, Hans Schwäbli wrote: I am opening a new topic for the problem with the SeleniumStepMonitor in JBehave 4.0 beta 4 with JBehave-web 3.5.5 and 3.6-beta-1. It does not show up with that version. It works however with JBehave 3.9. I

Re: [jbehave-user] SeleniumStepMonitor does not show up in JBehave 4.0 beta 4

2014-02-24 Thread Hans Schwäbli
. It is not so easy with stuggling with Maven and Java code at the same time to get it working. 2014-02-20 18:53 GMT+01:00 Mauro Talevi mauro.tal...@aquilonia.org: CoreStories has a working example. On 20 Feb 2014, at 16:56, Hans Schwäbli bugs.need.love@gmail.com wrote: Yes, I want to show

[jbehave-user] Reporting step documentation

2014-02-27 Thread Hans Schwäbli
Hello JBehave developers, JBehave supports step documentation which is a cool feature. If I add a Javadoc comment to the method which implements a step, I can see that comment in the JBehave editor when I use code completion. However this information is not integrated in the JBehave report. Or

[jbehave-user] Project specific settings not persisted?

2014-02-28 Thread Hans Schwäbli
I use Eclipse Kepler and changed the JBehave story language from en to de in the project settings (not in the Eclipse preferences). I enabled project specific settings for my project in the JBehave project preferences. I supposed that this is saved in a [projectfolder]/.settings in a .conf file.

[jbehave-user] Unexpected resolving result of the parameter value

2014-03-14 Thread Hans Schwäbli
I stumpled upon an issue where I cannot use the parameters as I expected. See the example below. The problem line is the one starting with Then. Scenario: Create Screenshots Given Browser browser is used And Login with user Standard Then I create a screenshot with name homepage_browser Examples:

Re: [jbehave-user] JBehave learning curve

2014-03-14 Thread Hans Schwäbli
Hello Josef, I think the technical part of JBehave is really intended for software developers, so it requires that knowledge. JBehave is a tool with a lot of features and has its complexity. It is well designed, of good quality and free. So there are of course some drawbacks like little

Re: [jbehave-user] Unexpected resolving result of the parameter value

2014-03-25 Thread Hans Schwäbli
identified by surrounding spaces. That's why it interprets the value as homepage_browser. Your solutions seems the most logical one. On 14/03/2014 15:44, Hans Schwäbli wrote: I stumpled upon an issue where I cannot use the parameters as I expected. See the example below. The problem line

[jbehave-user] Behavior of org.jbehave.core.ConfigurableEmbedder.configuredEmbedder()

2014-03-26 Thread Hans Schwäbli
Hello Mauro, I stumbled upon a beheavior of this method: org.jbehave.core.ConfigurableEmbedder.configuredEmbedder() It always calls these methods when being called: embedder.useConfiguration(configuration()); embedder.useCandidateSteps(candidateSteps());

Re: [jbehave-user] Re: Behavior of org.jbehave.core.ConfigurableEmbedder.configuredEmbedder()

2014-04-04 Thread Hans Schwäbli
I did: http://jira.codehaus.org/i#browse/JBEHAVE-1009 On Mon, Mar 31, 2014 at 11:49 PM, Mauro Talevi mauro.tal...@aquilonia.orgwrote: Could you please raise a JIRA issue for this? On 28/03/2014 11:59, Hans Schwäbli wrote: I could cache the embedder myself by using lazy initialization

[jbehave-user] Exporting test results into HP Quality Center (or any other test management tool)

2014-04-10 Thread Hans Schwäbli
I achieved to create Java classes which can export test results into HP Quality Center by using its REST interface. But now I wonder how to extract the outcome from the JBehave run so that I can export the results. I want to export that in a very basic way: test result with an attached XML

Re: [jbehave-user] Some issues with lifecyle steps

2014-04-28 Thread Hans Schwäbli
perhaps. Please send a scenario to reproduce the issue with given stories on 4.0 There is a case for lifecycle after steps to be executed depending on outcome, like the @AfterScenario steps. Please raise a JIRA issue. Cheers On 25 Apr 2014, at 13:23, Hans Schwäbli bugs.need.love

Re: [jbehave-user] How to get working JBehave sources in Eclipse?

2014-04-28 Thread Hans Schwäbli
have tips how to build outside eclipse: http://jbehave.org/reference/latest/building-source.html for the rest, I'm sure you will find lot of materials on the net... Cristiano On 25-04-2014 10:34, Hans Schwäbli wrote: I try to import the projects of jbehave-core (branch 4.x) into Eclipse

[jbehave-user] What about a Wiki?

2014-04-28 Thread Hans Schwäbli
There are no wiki pages for JBehave as it seems. What about looking for a free wiki hoster and registrating a offical wiki place for JBehave? This would be a place where the community can provide documentation on JBehave with very little overhead. After all wiki means fast. If you agree I can

Re: [jbehave-user] Lifecycle naming

2014-04-29 Thread Hans Schwäbli
the Gherkin syntax directly. On 28/04/2014 12:31, Hans Schwäbli wrote: I have a little suggestion concerning lifecycle steps. This is a cool feature. But the name lifecycle sounds quite technical and can intimidate testers and business analysts, unlike the other elements of a story

Re: [jbehave-user] How to get working JBehave sources in Eclipse?

2014-04-29 Thread Hans Schwäbli
settings.xml anywhere with Eclipse as long as I tell Eclipse where that file is. I will try that experimental feature next time. I now upgraded m2e from 1.4 to 1.5. On Tue, Apr 29, 2014 at 4:21 PM, Cristiano Gavião cvgav...@gmail.comwrote: On 29-04-2014 10:29, Hans Schwäbli wrote: It is a bit more

[jbehave-user] GivenStories does not work in my example (4.x branch)

2014-05-02 Thread Hans Schwäbli
Somehow GivenStories does not work as expected in the 4.x branch. It is not executed. But when I use jbehave-core 3.9, then the GivenStories are executed. See my example below. It is in German, I changed the story language. GivenStories is VorgegebeneStories. Maybe this information is enough to

[jbehave-user] Running on Emptiness

2014-05-02 Thread Hans Schwäbli
I discovered that I can run a completely empty story. It contains nothing, no narrative, no scenarios and no steps, nothing. If I run it then no failure is shown. Why is so much allowed when writing a story? Why is it not required that a story has at least one step and that there is no scenario

[jbehave-user] StoryReporter does not contain storyMeta(Meta meta) method

2014-05-02 Thread Hans Schwäbli
org.jbehave.core.reporters.StoryReporter contains a scenarioMeta(Meta meta) method. But it does not contain a method like storyMeta(Meta meta). I need to access the Meta information for the story in the StoryReporter. Was it forgotton to add that method into StoryReporter or did I overlook

Re: [jbehave-user] StoryReporter does not contain storyMeta(Meta meta) method

2014-05-02 Thread Hans Schwäbli
...@aquilonia.orgwrote: The meta at story level is always merged with the meta at scenario level. This is why only the resulting meta is reported. We could add the reporting of story level meta, but what is your use-case? On 02/05/2014 14:22, Hans Schwäbli wrote

Re: [jbehave-user] GivenStories does not work in my example (4.x branch)

2014-05-05 Thread Hans Schwäbli
: Hi Hans, the issue has been noted and fixed. The given stories were only executed at scenario level but not at story level. A new 4.0-beta-7 is being released. Cheers On 02/05/2014 11:36, Hans Schwäbli wrote: Somehow GivenStories does not work as expected in the 4.x branch

[jbehave-user] Unexpected behavior of meta filtering concering given stories

2014-05-05 Thread Hans Schwäbli
I discovered an unexpected behavior when I used meta filtering and a given story. The meta filter looks like this: +component sales This runs a story (lets call it sales.story) because it containes the meta information @component sales. The sales.story uses GivenStories: login.story. That given

[jbehave-user] Using regular expressions as a meta info value is not supported as it seems

2014-05-06 Thread Hans Schwäbli
I tried to use a regular expression as a meta info value: +component sales|purchasing With this I intend to run all the stories which are either declared as @component sales or @component purchasing. But it only includes sales but not purchasing. You can reproduce it with this code: String

[jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-06 Thread Hans Schwäbli
I have the example story, see below. It runs not as expected when filtering by: +Komponente Bestellung -Skip The first two scenarios are run, which is okay. But the last one with the exmaples table is NOT run. The log output is: Szenario: Rabattgrenzen werden erreicht Beispiele: Wenn ein Kunde

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-06 Thread Hans Schwäbli
: 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

Re: [jbehave-user] Using regular expressions as a meta info value is not supported as it seems

2014-05-06 Thread Hans Schwäbli
Thank you. I will try that. On Tue, May 6, 2014 at 10:08 AM, Mauro Talevi mauro.tal...@aquilonia.orgwrote: Groovy meta matcher supports regex: http://jbehave.org/reference/stable/meta-filtering.html On 06/05/2014 08:46, Hans Schwäbli wrote: I tried to use a regular expression

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-07 Thread Hans Schwäbli
...@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

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-07 Thread Hans Schwäbli
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

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-08 Thread Hans Schwäbli
/ On Wed, May 7, 2014 at 11:25 PM, Mauro Talevi mauro.tal...@aquilonia.orgwrote: This issue is now fixed in head of 4.x branch. It did not apply to 3.x. On 07/05/2014 10:55, Hans Schwäbli wrote: I created such an example for jbehave-core now and attached it to this posting. I still cannot

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-13 Thread Hans Schwäbli
Talevi mauro.tal...@aquilonia.orgwrote: No, a new beta has not been deployed yet. In the meantime, you can use the latest 3.9.x or build the 4.0 snapshot from source. On 8 May 2014, at 08:59, Hans Schwäbli bugs.need.love@gmail.com wrote: Thank you! Is it also deployed? I did not find

[jbehave-user] Comment lines are not parsed correctly in 4.x as it seems

2014-05-13 Thread Hans Schwäbli
In 4.x branch comments doen't seem to be allowed where they used to be allowed in version 3.x. Lets take this example (please ingore German language, it has nothing to do with the problem): Szenario: Kleine Menge wird bestellt Gegeben im Lager sind 300 T-Shirts Wenn ein Kunde 5 T-Shirts bestellt

Re: [jbehave-user] Comment lines are not parsed correctly in 4.x as it seems

2014-05-14 Thread Hans Schwäbli
:51, Hans Schwäbli wrote: In 4.x branch comments doen't seem to be allowed where they used to be allowed in version 3.x. Lets take this example (please ingore German language, it has nothing to do with the problem): Szenario: Kleine Menge wird bestellt Gegeben im Lager sind 300 T-Shirts

Re: [jbehave-user] Comment lines are not parsed correctly in 4.x as it seems

2014-05-14 Thread Hans Schwäbli
for this. On 14/05/2014 09:10, Hans Schwäbli wrote: I will do that, thank you. The story editor displays that line as a comment line, painting it green. It does not require a space after !-- for the story editor to detect it as a comment line. It is the same with some other keywords in the story

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-14 Thread Hans Schwäbli
the Lifecycle After upon outcome functionality for a spin while you're at it? On 13/05/2014 13:42, Hans Schwäbli wrote: I mixed up snapshot versions with beta-versions, sorry. I tried now the snapshot version and it works now as expected concerning the problem with the examples table. Thank you

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-05-15 Thread Hans Schwäbli
mauro.tal...@aquilonia.orgwrote: There was an issue with parsing with non-EN locales. Now fixed, try again with latest head. On 14/05/2014 17:35, Hans Schwäbli wrote: I quickly tested the lifecycle. Story: Lebenszyklus: Vorher: Gegeben im Lager sind 100 T-Shirts Nach: Ergebnis: ERFOLG

[jbehave-user] JBehave Preferences

2014-05-19 Thread Hans Schwäbli
It seems a bit difficult to me to see which preferences can be set and what the defaults are. For example where is a class EmbedderControls which contains some of the preferences and defaults. There are more preferences like in ParameterControls, StoryReporterBuilder and other classes. What

[jbehave-user] saveScreenshotTo(String) returns boolean

2014-05-19 Thread Hans Schwäbli
This method returns a boolean: org.jbehave.web.selenium.DelegatingWebDriverProvider.saveScreenshotTo(String) What if it would return a File instead if it succeeds and null if it does not succeed? Then the return value would contain more information and thus it would open up more possibilities.

[jbehave-user] Fwd: saveScreenshotTo(String) returns boolean

2014-05-19 Thread Hans Schwäbli
I seen that it originates from Selenium in the end: org.jbehave.web.selenium.WebDriverProvider.saveScreenshotTo(String) But I think I can achieve what I want anyway. You can forget that topic I think. -- Forwarded message -- From: Hans Schwäbli bugs.need.love@gmail.com Date

Re: [jbehave-user] JBehave Preferences

2014-05-20 Thread Hans Schwäbli
... so that should be your starting point. On 19/05/2014 12:45, Hans Schwäbli wrote: It seems a bit difficult to me to see which preferences can be set and what the defaults are. For example where is a class EmbedderControls which contains some of the preferences and defaults

[jbehave-user] NPE at org.jbehave.core.configuration.Configuration.doDryRun(Boolean)

2014-06-11 Thread Hans Schwäbli
Hello Mauro, today I had a NullPointerException at org.jbehave.core.configuration.Configuration.doDryRun(Boolean) with JBehave beta-6. It was because this.storyControls was null. Why don't you use storyControls().doDryRun(dryRun) instead of this.storyControls.doDryRun(dryRun)? Because the

[jbehave-user] Fwd: ContextView still works in 4.0-beta-7?

2014-06-16 Thread Hans Schwäbli
By the way: You can reproduce it with the same example which I mentioned in another issue: https://github.com/OttoDiesel/jbehave-selenium-example.git -- Forwarded message -- From: Hans Schwäbli bugs.need.love@gmail.com Date: Mon, Jun 16, 2014 at 8:56 AM Subject: ContextView

Re: [jbehave-user] Filtering works not as expected with a scenario containing an examples table

2014-06-24 Thread Hans Schwäbli
Thank you very much. It works now with my example. On Wed, Jun 18, 2014 at 6:39 PM, Mauro Talevi mauro.tal...@aquilonia.org wrote: 4.0-beta-8 has just been released, with the agreed keywords. On 18/06/2014 08:55, Hans Schwäbli wrote: When will there be a beta-8 version of the 4.x branch

  1   2   >