Re: [jbehave-user] Passing null integer from story file to step class
Just to make sure, your parameter in the step method has Integer as parameter type, not int?` If true, you probably have to write your own ParameterConverter. http://jbehave.org/reference/stable/parameter-converters.html Andreas 2013/12/18 Mary Walshe mary.wal...@gmail.com Hi All, I'm trying to pass a null integer into my step from my story file and I can't seem to do this. I know I can send it in as a string and just convert it but it would be nice to be able to pass in null. Has anyone come across this before? Cheers, Mary -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] JBehave vs Cucumber
no, sorry :) Andreas 2013/11/21 Hans Schwäbli bugs.need.love@gmail.com 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 that since today I have seen that 2 books on Cucumber exist. But I think many of the information in it can be applied to JBehave as well since they seem to be similiar tools. 2013/11/13 Karlsson Christian christian.karls...@cag.se Thanks Hans Checked it and will read it through. Regards, *Christian Karlsson* CAG Contactor AB Adress: Jan Stenbecks Torg 17, SE-164 40 Kista Mobil: +46 (0)706694527 Mail: christian.karlsson at cag.se www.cag.sehttps://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] JBehave vs Cucumber 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 colleagues. One of my colleagues then did the similar regarding Cucumber. Several members of the audience then wondered about the upsides/downsides of the aforementioned tools with respect to each other and we couldn’t really give a proper answer. What do you guys think are the advantages/disadvantages of JBehave over Cucumber? Thx, Christian *Christian Karlsson* CAG Contactor AB Adress: Jan Stenbecks Torg 17, SE-164 40 Kista Mobil: +46 (0)706694527 Mail: christian.karlsson at cag.se www.cag.sehttps://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.URL=http%3a%2f%2fwww.cag.se%2f -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?
Hi, you have to choose if you EITHER use the maven-eclipse-plugin (what you just did: mvn eclipse:eclipse). That one generates the eclipse project metadata and eclipse knows nothing about maven. OR you use the eclipse plugin m2e to enable eclipse to work with maven projects. Don't 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 examples folder. However it does not create these files for https://github.com/jbehave/jbehave-sitehttps://github.com/jbehave/jbehave-site/tree/master/site-frontend/src/site/content for some reason, although site-frontend for instance appears like a project to me. After mvn eclipse:eclipse has run, they are no Maven projects in Eclipse since the .project file has no Maven nature configuration inside it. Instead 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 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. Then I was asked to fork the JBehave repository to reproduce it in the sources. After I registered at Github and learned how to do that I could not push it in the forked repository. So I attached the files and a patch to the Jira issue. This all took me quite some time. Now I read in the JIra comment and seen in the sources that my issue is not going to be fixed. If I was told that right from the start when I wrote about my problem in this forum, I would not had not lost so much time with no gain for me. 2013/11/13 louis gueye louis.gu...@gmail.com .project and .classpath are not to be committed in the source file there is a maven goal that creates them for you based on the pom.xml mvn idea:idea or mvn 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, 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 create and copy them myself in each project folder? -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?
2013/11/13 Hans Schwäbli bugs.need.love@gmail.com By the way, as it seems we will meet next month. :-) I hope so, or shall I be frightened now? Maybe you also want to tell me your real name :) -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Importing JBehave Sources in Eclipse, how?
Am 13. November 2013 14:12 schrieb Hans Schwäbli bugs.need.love@gmail.com: Excuse me, I don't use my real name in online forums or usernames. But I will write you quickly an email. I figured that out :) And that was my intention, that you get in contact with me off from the mailing list. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Screenshots in test result HTML protocol?
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 Schwäbli bugs.need.love@gmail.com On failure screenshots are made by JBehave. I have configured it so that this is done. They appear in the target folder. But if I open the HTML report, they are not included in the HTML page. Is it possible to include it on the report pages? -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Story language settings improvement suggestion
2013/10/5 Mauro Talevi mauro.tal...@aquilonia.org We could make the language default to the platform locale, for example, instead of the English locale. No, please don't do that. This would mean that an identical setup would run on a developer PC and stops working on the CI environment, since the developer PC might run on a different locale than the integration environment. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Parsing GivenStories
Hi, looks great. Thanks, will try that out! -- Andreas Ebbert-Karroum (mobil) Am 05.10.2013 13:36 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi Andreas, in StoryRunner you'll find the method that does the parsing based on the configuration and story path: public Story storyOfPath(Configuration configuration, String storyPath) { String storyAsText = configuration.storyLoader().loadStoryAsText(storyPath); return configuration.storyParser().parseStory(storyAsText, storyPath); } Cheers On 04/10/2013 10:08, Andreas Ebbert-Karroum wrote: Hi, as Hans correctly pointed out in a recent post, the jbehave-junit-runner currently ignores the given stories. I agree that this is a feature, that is desireable to have. When we wrote the extension to JBehave, we have not implemented that, since we thought - and still think - that the jbehave-junit-runner provided enough value to be released. But the time has come to think about including that feature. Now, the way the jbehave-junit-runner works is that it needs to know all stories, scenarios and steps, before the execution starts, in order to forward that information to JUnit, so that it knows how many and which tests to expect. I do have access to the Story object, but from there I only get the given stories as paths and probably need to parse them myself. Can somebody point me to some source code in the original JBehave sources how that should be done best? Here's the class that generates the JUnit description objects: https://github.com/codecentric/jbehave-junit-runner/blob/master/src/main/java/de/codecentric/jbehave/junit/monitoring/JUnitDescriptionGenerator.java The method should include a addAllGivenStories(...) in between. public Description createDescriptionFrom(Story story) { Description storyDescription = createDescriptionForStory(story); addAllScenariosToDescription(story, storyDescription); return storyDescription; } Thanks for your help! -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Parsing GivenStories
Hi, as Hans correctly pointed out in a recent post, the jbehave-junit-runner currently ignores the given stories. I agree that this is a feature, that is desireable to have. When we wrote the extension to JBehave, we have not implemented that, since we thought - and still think - that the jbehave-junit-runner provided enough value to be released. But the time has come to think about including that feature. Now, the way the jbehave-junit-runner works is that it needs to know all stories, scenarios and steps, before the execution starts, in order to forward that information to JUnit, so that it knows how many and which tests to expect. I do have access to the Story object, but from there I only get the given stories as paths and probably need to parse them myself. Can somebody point me to some source code in the original JBehave sources how that should be done best? Here's the class that generates the JUnit description objects: https://github.com/codecentric/jbehave-junit-runner/blob/master/src/main/java/de/codecentric/jbehave/junit/monitoring/JUnitDescriptionGenerator.java The method should include a addAllGivenStories(...) in between. public Description createDescriptionFrom(Story story) { Description storyDescription = createDescriptionForStory(story); addAllScenariosToDescription(story, storyDescription); return storyDescription; } Thanks for your help! -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Better JUnit reporting result view
Hi Hans, it would have been perfectly sufficient 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 wrote earlier), I cannot do that. I work in the financial industry and must be very careful what I share (which means spend extra time to be sure that it contains nothing confidential). Sorry. 2013/10/3 Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de Hi Hans, do you mind sharing the scenario for which you get the NPE? A wild guess: You have an empty examples table in that scenario. The jbehave-junit-runner usually works fine for valid 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 Hello Andreas, thank you, this works. I had used JUnitReportingRunner.recommandedControls(configuredEmbedder()) in the beginning, but had a StackOverflowError. Now I discovered that I have misplaced this code line. But I get another error now: java.lang.NullPointerException at de.codecentric.jbehave.junit.monitoring.JUnitScenarioReporter.example(JUnitScenarioReporter.java:187) at org.jbehave.core.reporters.DelegatingStoryReporter.example(DelegatingStoryReporter.java:85) at org.jbehave.core.reporters.ConcurrentStoryReporter.example(ConcurrentStoryReporter.java:197) at org.jbehave.core.embedder.StoryRunner.runScenariosParametrisedByExamples(StoryRunner.java:405) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:301) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.runGivenStories(StoryRunner.java:386) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:270) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:180) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) The actions are not executed because of this. Nevertheless the JUnit view says the test is a success. No, really, JUnitReportingRunner is not reliable at all for me. Even without these bugs and tricky configurations of it, the information it shows in the JUnit view are wrong since it does not show the given stories. Because of this I will not use it. I need a reliable and complete test result, so I will look into the JBehave result protocol. 2013/9/30 Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de Hi Alex, I'd love to do that as well! However, this is (to the best of my knowledge) not possible due to some limitiations in JUnit and the JUnit-View in eclipse itself. Let's see if I remember correctly what happens: A JUnit-Test maps to a step, a suite to a scenario or story. Every unit test in JUnit is only executed once, while steps can be executed possibly multiple times. That's why we have something like a name uniquifier that appends invisible characters, if a step is used multiple times. But, the methods in JUnit to construct Descriptions only take a class and a name as String, and that name has to be unique. Hence, I could no map it to a method name, that is potentially not unique. See the method addSuite in the very end: https://github.com/codecentric/jbehave-junit-runner/blob/master/src/main/java/de/codecentric/jbehave/junit/monitoring/JUnitReportingRunner.java And JUnits API docs: http://www.cs.rice.edu/~javaplt/javadoc/junit4.4/org/junit/runner/Description.html But, since this is open source. If you can figure out a way, by all means, let us know, send a pull request, whatever. I'd love to have that feature! Kind Regards, Andreas 2013/9/30 Alex Filatau fila...@gmail.com Sorry for a bit of off topic, but jbehave-junit-runner is indeed great addition for running JBehave tests and I'd vote for inclusion of it into standard package if it's proper place to do so. The only 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
Re: [jbehave-user] Better JUnit reporting result view
Hi Hans, do you mind sharing the scenario for which you get the NPE? A wild guess: You have an empty examples table in that scenario. The jbehave-junit-runner usually works fine for valid 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 Hello Andreas, thank you, this works. I had used JUnitReportingRunner.recommandedControls(configuredEmbedder()) in the beginning, but had a StackOverflowError. Now I discovered that I have misplaced this code line. But I get another error now: java.lang.NullPointerException at de.codecentric.jbehave.junit.monitoring.JUnitScenarioReporter.example(JUnitScenarioReporter.java:187) at org.jbehave.core.reporters.DelegatingStoryReporter.example(DelegatingStoryReporter.java:85) at org.jbehave.core.reporters.ConcurrentStoryReporter.example(ConcurrentStoryReporter.java:197) at org.jbehave.core.embedder.StoryRunner.runScenariosParametrisedByExamples(StoryRunner.java:405) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:301) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.runGivenStories(StoryRunner.java:386) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:270) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:180) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) The actions are not executed because of this. Nevertheless the JUnit view says the test is a success. No, really, JUnitReportingRunner is not reliable at all for me. Even without these bugs and tricky configurations of it, the information it shows in the JUnit view are wrong since it does not show the given stories. Because of this I will not use it. I need a reliable and complete test result, so I will look into the JBehave result protocol. 2013/9/30 Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de Hi Alex, I'd love to do that as well! However, this is (to the best of my knowledge) not possible due to some limitiations in JUnit and the JUnit-View in eclipse itself. Let's see if I remember correctly what happens: A JUnit-Test maps to a step, a suite to a scenario or story. Every unit test in JUnit is only executed once, while steps can be executed possibly multiple times. That's why we have something like a name uniquifier that appends invisible characters, if a step is used multiple times. But, the methods in JUnit to construct Descriptions only take a class and a name as String, and that name has to be unique. Hence, I could no map it to a method name, that is potentially not unique. See the method addSuite in the very end: https://github.com/codecentric/jbehave-junit-runner/blob/master/src/main/java/de/codecentric/jbehave/junit/monitoring/JUnitReportingRunner.java And JUnits API docs: http://www.cs.rice.edu/~javaplt/javadoc/junit4.4/org/junit/runner/Description.html But, since this is open source. If you can figure out a way, by all means, let us know, send a pull request, whatever. I'd love to have that feature! Kind Regards, Andreas 2013/9/30 Alex Filatau fila...@gmail.com Sorry for a bit of off topic, but jbehave-junit-runner is indeed great addition for running JBehave tests and I'd vote for inclusion of it into standard package if it's proper place to do so. The only 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 to JBehave. It does not make much sense to me to run it as JUnit test and seeing nearly nothing in the JUnit view but only in the logs. And a good quality of this feature would be more likely. Besides this, the Codecentric addon is not as I expect it. If a story has given stories then the JUnit view does not show the given stories (which must be executed first) but only the actual story. As ist seems Codecentric does not use the GivenStories as they are inteded by JBehave, because they seem to be using them just to read common data (this is how
Re: [jbehave-user] Better JUnit reporting result view
Hi Hans, the problem with the given story is not that I didn't want to provide more details, but that JBehave is not sending any events about executed given stories. At least is that what I think what happened, I have not worked on the jbehave-junit-runner for more than a year now. Can you please post your configuration? When JBehave exits the execution with reporting errors on its own, JUnit does not have a chance to handle these errors correctly. Please use JUnitReportingRunner.recommandedControls(configuredEmbedder()); as suggested on the github page in order to configure JBehave to work properly with the jbehave-junit-runner. Kind Regards, Andreas 2013/9/30 Hans Schwäbli bugs.need.love@gmail.com I wanted to suggest that the JBehave people add such a feature to JBehave. It does not make much sense to me to run it as JUnit test and seeing nearly nothing in the JUnit view but only in the logs. And a good quality of this feature would be more likely. Besides this, the Codecentric addon is not as I expect it. If a story has given stories then the JUnit view does not show the given stories (which must be executed first) but only the actual story. As ist seems Codecentric does not use the GivenStories as they are inteded by JBehave, because they seem to be using them just to read common data (this is how they consulted a cutomer to do). But okay, here is the Stacktrace for you. Maybe you can fix and improve it: Reports view generated with 0 stories (of which 0 pending) containing 0 scenarios (of which 0 pending) java.lang.RuntimeException: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories: stories/logout.story: org.jbehave.core.embedder.StoryManager$StoryExecutionFailed: stories/logout.story at de.codecentric.jbehave.junit.monitoring.JUnitReportingRunner.run(JUnitReportingRunner.java:81) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories: stories/logout.story: org.jbehave.core.embedder.StoryManager$StoryExecutionFailed: stories/logout.story at org.jbehave.core.embedder.Embedder$ThrowingRunningStoriesFailed.handleFailures(Embedder.java:495) at org.jbehave.core.embedder.Embedder.handleFailures(Embedder.java:224) at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:205) at de.codecentric.jbehave.junit.monitoring.JUnitReportingRunner.run(JUnitReportingRunner.java:79) ... 6 more 2013/9/27 Robert Hostlowsky robert.hostlow...@codecentric.de Hi Hans, thanks for your description. So there is a problem when running this in the Eclipse junit view, right? Can you provide a short snapshot, or just the stacktrace from the console view? Thx, Robert -- Robert Hostlowsky | Senior Software Developer | Agile Software Factory codecentric AG | Landsberger Straße 302 | 80687 München | Deutschland www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de 2013/9/27 Hans Schwäbli bugs.need.love@gmail.com: 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 https://blog.codecentric.de/files/2012/06/JBehave_JUnit_Results_for_Scenarios_and_Steps.png But it does not seem to work correctly for jbehave-web-3.6 since a exception occurs. Maybe some talented guy can contribute such an feature to JBehave? I would contribute it myself, but I don't know the JBehave and JUnit details good enough. - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und
Re: [jbehave-user] Sort Reports in HTML by execution order
Hi, thanks for sharing that idea. Doesn't sound too complicated to sort by File modified date! Regards, Andreas 2013/8/7 Mauro Talevi mauro.tal...@aquilonia.org Hi Andreas, in effect there is an implicit ordering based on the report name. As a temporary workaround you could extend the method createReports in the TempletableViewGenerator and reorder the MapString,ListFile based on the File.lastModified() method. More generically we can add the execution start time to the metadata already collected on 4.x branch for StoryDuration, which we can rename to StoryTiming. Please raise a JIRA issue for this. Cheers On 7 Aug 2013, at 16:22, Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de wrote: Hi, how would a rough solution concept look like to sort the reports table by execution order of the stories rather than by name? A quick investigation revealed that this is not so trivial, since there is no stats for when the story was executed. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Sort Reports in HTML by execution order
Hi, how would a rough solution concept look like to sort the reports table by execution order of the stories rather than by name? A quick investigation revealed that this is not so trivial, since there is no stats for when the story was executed. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Bug in StoryManager regarding timeouts?
Done: http://jira.codehaus.org/browse/JBEHAVE-933 2013/7/16 Mauro Talevi mauro.tal...@aquilonia.org Hi Andreas, yes, currently the timeout is a global one. It could be enhanced to be story specific. Please raise a JIRA issue for it. Cheers On 15/07/2013 15:36, Andreas Ebbert-Karroum wrote: Hi, as I read the specification of a timeout, it is setting the controls to let a story time out, when a specified amount of time has passed. By the name this is a setting per story. So, when I have a timeout of 300s per story, I should be able to have 100 stories, which take 250 seconds each. The way it is implemented is different, though. The StoryManager measures the start time right after it kicked off all stories, and is waiting for all of them to be completed. https://github.com/jbehave/jbehave-core/blob/master/jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java public void waitUntilAllDoneOrFailed(BatchFailures failures) { long start = System.currentTimeMillis(); boolean allDone = false; while (!allDone) { allDone = true;for (RunningStory runningStory : runningStories.values()) { FutureThrowableStory future = runningStory.getFuture(); if (!future.isDone()) { allDone = false; long durationInSecs = storyDurationInSecs(start); long timeoutInSecs = embedderControls.storyTimeoutInSecs(); if (durationInSecs timeoutInSecs) { Story story = runningStory.getStory(); StoryDuration storyDuration = new StoryDuration(durationInSecs, timeoutInSecs); embedderMonitor.storyTimeout(story, storyDuration); storyRunner.cancelStory(story, storyDuration); future.cancel(true); }break; Is it just my thinking, or is that a bug in JBehave? -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Bug in StoryManager regarding timeouts?
Hi, as I read the specification of a timeout, it is setting the controls to let a story time out, when a specified amount of time has passed. By the name this is a setting per story. So, when I have a timeout of 300s per story, I should be able to have 100 stories, which take 250 seconds each. The way it is implemented is different, though. The StoryManager measures the start time right after it kicked off all stories, and is waiting for all of them to be completed. https://github.com/jbehave/jbehave-core/blob/master/jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java public void waitUntilAllDoneOrFailed(BatchFailures failures) { long start = System.currentTimeMillis(); boolean allDone = false; while (!allDone) { allDone = true; for (RunningStory runningStory : runningStories.values()) { FutureThrowableStory future = runningStory.getFuture(); if (!future.isDone()) { allDone = false; long durationInSecs = storyDurationInSecs(start); long timeoutInSecs = embedderControls.storyTimeoutInSecs(); if (durationInSecs timeoutInSecs) { Story story = runningStory.getStory(); StoryDuration storyDuration = new StoryDuration(durationInSecs, timeoutInSecs); embedderMonitor.storyTimeout(story, storyDuration); storyRunner.cancelStory(story, storyDuration); future.cancel(true); } break; Is it just my thinking, or is that a bug in JBehave? -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] HTML report of parameterized steps
Hi, the html report seems to be broken for parameterized steps. When the table is the only parameter to the step, it works fine, but when I have another parameter embedded in the step, the report doesn't generate a nice looking table, but includes the raw text in the report. Is that something that I can configure somehow? Or can I fix the template? Is it even reproducable? [image: Inline-Bild 1] -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. image.png
Re: [jbehave-user] HTML report of parameterized steps
Hi, it's version 3.7.5. I'll try to assemble an example project today. Andreas Am 5. Juni 2013 12:33 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi, Which version? Can you provide a sample project reproducing issue? Cheers On 5 Jun 2013, at 11:17, Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de wrote: Hi, the html report seems to be broken for parameterized steps. When the table is the only parameter to the step, it works fine, but when I have another parameter embedded in the step, the report doesn't generate a nice looking table, but includes the raw text in the report. Is that something that I can configure somehow? Or can I fix the template? Is it even reproducable? image.png -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Re: Loading Stories in OSGi Environment
Hi, The system under test is a web based application. Hence RFT to interact with the UI. I cannot share details about he configuration, but it s absolutely standard. Nothing extraordinary. The most extraordinary item is the classloading line :) -- Andreas Ebbert-Karroum (mobil) Am 17.04.2013 17:10 schrieb Cristiano Gavião cvgav...@gmail.com: Hi, So, could you tell me if the system under test is a RCP ? I don't know RFT but the normal Eclipse contains two types of Junit launchers one for normal classes and one for plugins that has the same behavior that you are describing and used to test RCP applications. Are you using Junit based test classes ? Could you send me the way you are configuring the Jbehave execution? regards, Cristiano On 17/04/13 08:09, Andreas Ebbert-Karroum wrote: Hi, the use case is quite simple. For that customer, we're using Rational Functional Tester for GUI automation. And in order to use RFT, we have to launch JBehave from within RFT. RFT is based on Eclipse, and apparently, when launching a Testing-Script in RFT, it launches a headless version of itself, which is of course an OSGi environment. All stories and steps live in a simple testing project inside RFT, nothing fancy there. Kind Regards, Andreas Am Mittwoch, 17. April 2013 schrieb Cristiano Gavião : Hello Andreas, I got curious. Could you explain me your use case? Are you trying to run just stories inside bundles? the system under test is OSGi based too? and the Step classes are inside bundles? regards, Cristiano On 15/04/13 09:44, Andreas Ebbert-Karroum wrote: Hi, I'd like to use JBehave in combination with Rational Functional Tester. So far, we did not use the jbehave-osgi library [1]. Even without the library, most things work. Our major pain at the moment is, that givenStories don't work, because the ContextLoader cannot find the resources for story files, when it's accessed from the ExecutorService. We hope that we can eliminate that problem with the jbehave-osgi library. But, that library requires OSGi 4.3, while RFT is based on Eclipse with Osgi 3.6.2. So before we invest time trying to make the jbehave-osgi library work with OSGi 3.6.2, I'd love to hear a quick opinion * if the above described problem can potentially be solved by using the jbehave-osgi library * if you have any idea what it takes to make the jbehave-osgi library compatible with an older OSGi version. (I already raised an issue for that [2]) [1] https://github.com/jbehave/jbehave-osgi [2] https://github.com/jbehave/jbehave-osgi/issues/1 -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Loading Stories in OSGi Environment
Hi, before trying out loading the stories by URL, I tried something inspired by the answer on SO. And indeed, that did the trick. In OSGi environments you should avoid the ThreadContext Classloader. So all I did was this: embedder.configuration().useStoryLoader(new LoadFromClasspath(this. getClass())); And now it works :) Thanks for your support! Andreas 2013/4/15 Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de Great idea. Will try local file URL tomorrow! Thanks! -- Andreas Ebbert-Karroum (mobil) Am 15.04.2013 22:13 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi, if you're having trouble using the classloader to find resources, why not use other means, e.g. URL, either on local filesystem or remote? Classloading is the most common but not the only way to find the stories: http://jbehave.org/reference/stable/locating-stories.html Cheers On 15/04/2013 21:36, Andreas Ebbert-Karroum wrote: Hi Mauro, I've posted more details on Stackoverflow: http://stackoverflow.com/questions/16019502/classloader-finds-resource-only-in-specific-threads While further investigating the issue I came to the conclusion that jbehave-osgi would not help solving the problem we're having right now. Maybe it can be extended to do so. -- Andreas Ebbert-Karroum (mobil) Am 15.04.2013 21:25 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi Andreas, please use JIRA http://jira.codehaus.org to raise issues and not Github, which is only used for source repo replication. As for compatibility with previous versions of OSGi, you could consider writing your own implementation of ResourceLoader or StoryLoader. Cheers On 15/04/2013 14:44, Andreas Ebbert-Karroum wrote: Hi, I'd like to use JBehave in combination with Rational Functional Tester. So far, we did not use the jbehave-osgi library [1]. Even without the library, most things work. Our major pain at the moment is, that givenStories don't work, because the ContextLoader cannot find the resources for story files, when it's accessed from the ExecutorService. We hope that we can eliminate that problem with the jbehave-osgi library. But, that library requires OSGi 4.3, while RFT is based on Eclipse with Osgi 3.6.2. So before we invest time trying to make the jbehave-osgi library work with OSGi 3.6.2, I'd love to hear a quick opinion * if the above described problem can potentially be solved by using the jbehave-osgi library * if you have any idea what it takes to make the jbehave-osgi library compatible with an older OSGi version. (I already raised an issue for that [2]) [1] https://github.com/jbehave/jbehave-osgi [2] https://github.com/jbehave/jbehave-osgi/issues/1 -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 %2B49%20%280%29%20212.23362825 | fax: +49 (0) 212.23362879 %2B49%20%280%29%20212.23362879 | mobil: +49 (0) 175.2664109 %2B49%20%280%29%20175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist
[jbehave-user] Loading Stories in OSGi Environment
Hi, I'd like to use JBehave in combination with Rational Functional Tester. So far, we did not use the jbehave-osgi library [1]. Even without the library, most things work. Our major pain at the moment is, that givenStories don't work, because the ContextLoader cannot find the resources for story files, when it's accessed from the ExecutorService. We hope that we can eliminate that problem with the jbehave-osgi library. But, that library requires OSGi 4.3, while RFT is based on Eclipse with Osgi 3.6.2. So before we invest time trying to make the jbehave-osgi library work with OSGi 3.6.2, I'd love to hear a quick opinion * if the above described problem can potentially be solved by using the jbehave-osgi library * if you have any idea what it takes to make the jbehave-osgi library compatible with an older OSGi version. (I already raised an issue for that [2]) [1] https://github.com/jbehave/jbehave-osgi [2] https://github.com/jbehave/jbehave-osgi/issues/1 -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Re: Loading Stories in OSGi Environment
Hi, minor correction. Rational Functional Tester is based on Eclipse 3.6.2 ... I have no clue what OSGi version that Eclipse version supports. Apparently something less than 4.3. Thanks for your input, Andreas Am 15. April 2013 14:44 schrieb Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de: Hi, I'd like to use JBehave in combination with Rational Functional Tester. So far, we did not use the jbehave-osgi library [1]. Even without the library, most things work. Our major pain at the moment is, that givenStories don't work, because the ContextLoader cannot find the resources for story files, when it's accessed from the ExecutorService. We hope that we can eliminate that problem with the jbehave-osgi library. But, that library requires OSGi 4.3, while RFT is based on Eclipse with Osgi 3.6.2. So before we invest time trying to make the jbehave-osgi library work with OSGi 3.6.2, I'd love to hear a quick opinion * if the above described problem can potentially be solved by using the jbehave-osgi library * if you have any idea what it takes to make the jbehave-osgi library compatible with an older OSGi version. (I already raised an issue for that [2]) [1] https://github.com/jbehave/jbehave-osgi [2] https://github.com/jbehave/jbehave-osgi/issues/1 -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Loading Stories in OSGi Environment
Hi Mauro, I've posted more details on Stackoverflow: http://stackoverflow.com/questions/16019502/classloader-finds-resource-only-in-specific-threads While further investigating the issue I came to the conclusion that jbehave-osgi would not help solving the problem we're having right now. Maybe it can be extended to do so. -- Andreas Ebbert-Karroum (mobil) Am 15.04.2013 21:25 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi Andreas, please use JIRA http://jira.codehaus.org to raise issues and not Github, which is only used for source repo replication. As for compatibility with previous versions of OSGi, you could consider writing your own implementation of ResourceLoader or StoryLoader. Cheers On 15/04/2013 14:44, Andreas Ebbert-Karroum wrote: Hi, I'd like to use JBehave in combination with Rational Functional Tester. So far, we did not use the jbehave-osgi library [1]. Even without the library, most things work. Our major pain at the moment is, that givenStories don't work, because the ContextLoader cannot find the resources for story files, when it's accessed from the ExecutorService. We hope that we can eliminate that problem with the jbehave-osgi library. But, that library requires OSGi 4.3, while RFT is based on Eclipse with Osgi 3.6.2. So before we invest time trying to make the jbehave-osgi library work with OSGi 3.6.2, I'd love to hear a quick opinion * if the above described problem can potentially be solved by using the jbehave-osgi library * if you have any idea what it takes to make the jbehave-osgi library compatible with an older OSGi version. (I already raised an issue for that [2]) [1] https://github.com/jbehave/jbehave-osgi [2] https://github.com/jbehave/jbehave-osgi/issues/1 -- Mit freundlichen Grüßen / Best regards *Event: Bald findet das erste Agile Code Camp 2013 statt. Jetzt anmelden unter: www.agilecodecamp.de* Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Documenting a Step catalogue
Hi, has someone generated a step catalogue from existing step definitions? I first tried to simply generate javadocs, but annotations are not enabled for documentation yet (I raised an issuehttp://jira.codehaus.org/browse/JBEHAVE-892 for that) My next step will be to try to achieve the same with the annotation processor. Maybe also a specific story reporter with some clever jbehave configuration can achieve the same. Has somebody already done so? -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Documenting a Step catalogue
Hi, I have not tried the web runner, but a simplified custom StepDocReporter is all we need at the moment. Thanks a lot! (and also for fixing the issue already :) Andreas Am 15. März 2013 10:46 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi Andreas, JBehave can already do this via its StepDoc functionality. http://jbehave.org/reference/stable/finding-steps.html You can run the StepFinder in Java or in Maven/Ant. A web front-end is also provided out of the box via the Web Runner app. Feel free to propose enhancements if needed. Mauro On 15 Mar 2013, at 09:36, Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de wrote: Hi, has someone generated a step catalogue from existing step definitions? I first tried to simply generate javadocs, but annotations are not enabled for documentation yet (I raised an issuehttp://jira.codehaus.org/browse/JBEHAVE-892 for that) My next step will be to try to achieve the same with the annotation processor. Maybe also a specific story reporter with some clever jbehave configuration can achieve the same. Has somebody already done so? -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Add custom entries to reporting
Hi, is it possible to add extra logging to the generated reports? For example, I'd like to add some details what exactly happened while a certain step was executed. From the documentation I could figure that out. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Add custom entries to reporting
Hi Mauro, the use-case is that readers of the report (testers) should be able to understand why a test case failed. Right now you more or less see that a step failed and get a stacktrace, that may be meaningful - but often it's not. What I did today is extending the XML Output Format and integrate a Log4J appender into it - Everything you log with log4j shows up in the XML report too. It's a nice technical concept, which I can probably share and blog about. I could imagine that also the HTML report could be extended to show more details in an expandable div for each step. Andreas Am 14. März 2013 22:04 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi Andreas, the reports are generated using freemarker, so you could configure logging for the relevant packages. Or is it something more specific you had in mind. Feel free to provide a concrete use case. Cheers On 14/03/2013 11:05, Andreas Ebbert-Karroum wrote: Hi, is it possible to add extra logging to the generated reports? For example, I'd like to add some details what exactly happened while a certain step was executed. From the documentation I could figure that out. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Re: [jbehave-dev] JBehave Integration with HP Quality Centre
Hi, I have the same or similar use case right now. as a first step I would like to define the story in QC. when heave is started, it is passed an argument, which test to run. behave connects to QC, retrieves the story and executes it. that would work fairly easy, right? what I was wondering about is the usage of examples tables. does QC offer something like parametrised test cases that mayo to examples tables? I'd like to see in the QC results which of the examples passed and which failed. -- Andreas Ebbert-Karroum (mobil) Am 21.02.2013 11:29 schrieb Mauro Talevi mauro.tal...@aquilonia.org: Hi, As JBehave supports storing stories in remote, e.g. a wiki or another web-storage that is able to return a story in a textual form, you may be able to configure QC to be the story storage accessible via a URL. Unfortunately, QC is very closed source, Windows-specific, and hence difficult to set up a test env. So no specific support out-of-the box. Best approach would be interoperate with it, possibly via REST or WS, but it depends what kind of integration you were after. Feel free to chip in ideas and usecases. Cheers On 21/02/2013 11:18, Cramb, Jamie wrote: Hi all, ** ** Has anyone had success in integrating JBehave Selenium with HP Quality Centre? We are currently looking for examples / third-party solutions on how to achieve this and what level of integration can be achieved so any info would be appreciated. ** ** Thanks in advance. ** ** Cheers, Jamie
Re: [jbehave-user] Re: intelij and eclipse jBehave plugins
Hi, it's true, the jbehave-junit-runner enhances the integration between jbehave and junit. The JUnit Plugin in Eclipse benefits from that better integration. I assume something similar should work out of the box as well with other IDEs (IntelliJ, Netbeans, ...). Please let us know the results. I am happy to extend the documentation of the plugin to mention other IDEs. Kind Regards, Andreas Ebbert-Karroum 2012/12/30 Alexander Lehmann alexl...@gmail.com I haven't used much of the features inside the IDE except running all the tests together during deployment (however I have a bit of a different use case for jbehave), I assume the junit notifier feature should work in different IDEs, since it is not directly a feature of the IDE (haven't explored that feature further, maybe that would be interesting though). Jbehave doesn't have a product management department that decides on marketable features, if you consider this relevant, maybe you could contribute such a feature, most of the things I seen in Jbehave recently have either been contributed by different people or some where suggestions by users. There is an eclipse specific plugin being developed outside of the main jbehave project, maybe something similar can be done for intelij. On 24.12.2012 00:55, Iulian Greculescu wrote: Thanks Alex. After changing the RunWith to point to JUnitReportingRunner and making a minor change to load the spring steps context in a different way it worked perfectly in eclipse. A pity it does not work with intelij as well. Just wondering why jBehave does not support such am IDE reporting plugin natively? These small things can weigh a lot when it comes to the decision of whether to go jBehave way or another. My team uses intelij and it was not an easy job for me to make them switch from cucumber jvm to jBehave :) Regards, Julian --**--**- To unsubscribe from this list, please visit: http://xircles.codehaus.org/**manage_emailhttp://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] General question about JBehave, BDD and JUnit's assertXX methods
Hi, it means: you can use JUnit asserts methods :) in addition, every method that has a throw statement, that is not caught, can be used to let a scenario fail. Andreas 2012/10/2 Julien Martin bal...@gmail.com Thank you Louis, :-) I rather meant is there a jbehave-specific way to throwing the error? For instance if I have an assertEqual(expected, actual) that evaluates to false what is meant by Mauro's statement in his prior email? Regards, Julien. 2012/10/2 louis gueye louis.gu...@gmail.com Hi Julien, It means an instance of java.lang.Throwable which is the top ancestor of all error notification mechanism (Error, Exception). -- Cordialement/Regards, Louis GUEYE linkedin http://fr.linkedin.com/in/louisgueye | bloghttp://deepintojee.wordpress.com/ | twitter http://twitter.com/#%21/lgueye 2012/10/2 Julien Martin bal...@gmail.com Mauro, What do you mean by a Throwable instance is thrown? Can you please give me a short example? Regards, J. 2012/10/2 Mauro Talevi mauro.tal...@aquilonia.org Any assertion mechanism is allowed. What matters is that in case of failures a Throwable instance is thrown. On 02/10/2012 09:21, Julien Martin wrote: Hello, I would like to know whether it is correct from a BDD point of view to use JUnit's assertXX methods in my steps or selenium pages (mine is a webapp). Regards, Julien. --**--** - To unsubscribe from this list, please visit: http://xircles.codehaus.org/**manage_emailhttp://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Parametrisation when calling same step with different values
Hi Marius, in your configuration, you have to use a different than default behaviour for ParameterControlshttp://jbehave.org/reference/stable/javadoc/core/org/jbehave/core/steps/ParameterControls.html : configuration = new MostUsefulConfiguration() .useParameterControls(new ParameterControls(, , true)); The third parameter to the constructor sets the boolean DelimiterNamedParameters to false. When true, it uses the name enclosed in the delimiter as the variable names, in your case user1 and user2, which is totally insane in my opinion. I have absolutely no idea, why this is the default behaviour. And also your method should probably look like this: @Given(a user called $user) public void aUser(@Named(user) String user) { // .. } Andreas 2012/7/23 Marius Brot marb-n...@live.de Hello, how do you handle Parametrisation of Stories when the same step should be called multiple with different parameters? I'm wondering the following example was not running like expected. My Story file: --**--** Scenario: Some jobs with multiple users Given a user called user1 Given a user called user2 ... Examples: | user1 | user2 | | mario | lena | Console Output (when running the Story - like expacted): --**--** Example: {user1=mario, user2=lena} Given a user called mario Given a user called lena ... The implementation of the Steps looks like: --**--** @Given(a user called $user) public void aUser(String user) { // .. } The Problem --**--** When debugging the method aUser will be called with parameter values user1 and user2 insted of the user names. Why the console is showing my expected behavior but the code itselfs don't do so? When changing one of the parameter names to user they will work. But I need to specify different users. cheers Marius --**--**- To unsubscribe from this list, please visit: http://xircles.codehaus.org/**manage_emailhttp://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Parametrisation when calling same step with different values
That's the default, you actually DON'T want to use it. Andreas 2012/7/23 Mauro Talevi mauro.tal...@aquilonia.org Use parametrisation by name delimiters: new MostUsefulConfiguration() .useParameterControls(new ParameterControls().useDelimiterNamedParameters(true)) http://jbehave.org/reference/stable/parametrised-scenarios.html On 23/07/2012 18:26, Marius Brot wrote: Hello, how do you handle Parametrisation of Stories when the same step should be called multiple with different parameters? I'm wondering the following example was not running like expected. My Story file: Scenario: Some jobs with multiple users Given a user called user1 Given a user called user2 ... Examples: | user1 | user2 | | mario | lena | Console Output (when running the Story - like expacted): Example: {user1=mario, user2=lena} Given a user called mario Given a user called lena ... The implementation of the Steps looks like: @Given(a user called $user) public void aUser(String user) { // .. } The Problem When debugging the method aUser will be called with parameter values user1 and user2 insted of the user names. Why the console is showing my expected behavior but the code itselfs don't do so? When changing one of the parameter names to user they will work. But I need to specify different users. cheers Marius - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] Parametrisation when calling same step with different values
I should stop sending emails for today... sorry for the spam. Andreas 2012/7/23 Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de Sorry, I read your email wrong. false is default, you *DON'T* want to use it. But I still don't understand the default :) And to correct my mixed up sentence: The third parameter to the constructor sets the boolean DelimiterNamedParameters to *true*. When *false*, it uses the name enclosed in the delimiter as the variable names, in your case user1 and user2, which is totally insane in my opinion. I have absolutely no idea, why this is the default behaviour. Andreas 2012/7/23 Andreas Ebbert-Karroum andreas.ebbert-karr...@codecentric.de That's the default, you actually DON'T want to use it. Andreas 2012/7/23 Mauro Talevi mauro.tal...@aquilonia.org Use parametrisation by name delimiters: new MostUsefulConfiguration() .useParameterControls(new ParameterControls().useDelimiterNamedParameters(true)) http://jbehave.org/reference/stable/parametrised-scenarios.html On 23/07/2012 18:26, Marius Brot wrote: Hello, how do you handle Parametrisation of Stories when the same step should be called multiple with different parameters? I'm wondering the following example was not running like expected. My Story file: Scenario: Some jobs with multiple users Given a user called user1 Given a user called user2 ... Examples: | user1 | user2 | | mario | lena | Console Output (when running the Story - like expacted): Example: {user1=mario, user2=lena} Given a user called mario Given a user called lena ... The implementation of the Steps looks like: @Given(a user called $user) public void aUser(String user) { // .. } The Problem When debugging the method aUser will be called with parameter values user1 and user2 insted of the user names. Why the console is showing my expected behavior but the code itselfs don't do so? When changing one of the parameter names to user they will work. But I need to specify different users. cheers Marius - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger
Re: [jbehave-user] Announcement: Beta Release of new jbehave-junit-runner
Hi, thank you for trying it out, and your initial - and very helpful - feedback! 2012/5/14 HAAS Christian christian.h...@frequentis.com I did some tests and have found the following things:- JUnitStory is not supported, only JUnitStories We’re using the single-story embedder and while a switch could be done with not much effort, it would be great if your runner would be capable of handling this case on its own. I know there are myriad ways to configure JBehave, some are working already, most of them probably are not. Thanks for making us aware of this one :) ** ** - Missing steps are not reported, related scenarios are OK If a new scenario is added with missing steps (no binding code exists), the steps are not added to the report tree and even worse, the scenario is marked OK. Personally I’d want those to be reported as failures (with a stub implementation text extractable from the failure trace) – but I can imagine others might not want this behaviour; Is there a possibility to add configuration options to the JUnitReportingRunner? The missing steps should at least be reported as pending steps. I agree. Missing steps should be reported. Reporting the scenario as failed or reporting pending steps, should be in line with the general reporting configuration in JBehave (PendingStepsStrategy, ...) - After/Before Story/Scenario not listed For me a minor issue: “After/Before Stories” is always listed although not present, but for Story or Scenario they are not listed, even when present. I guess this stems from the problem not to know which steps class has (or hasn’t) such methods and which one of them failed. Hm, you could possible go through all Step classes and look for annotated methods. Should not be too much work. Thanks for reporting this as issues. What's your order for them? (which one should be first?) -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] Announcement: Beta Release of new jbehave-junit-runner
Hi, it has always been a problem that when jbehave is run via junit, the reporting to junit was less than helpful. With the jbehave-junit-runner all your stories, scenarios and steps are reported to JUnit. We based the library on the inital work of Mark Burnett and Aaron von der Haar. You find the project now hosted on GitHub. Please feel free to raise issues, when things don't work for you. https://github.com/codecentric/jbehave-junit-runner The final release will be made available on maven central, but we wanted to give the community the possibility to provide early feedback. Have fun. We hope you find that useful! -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Re: [jbehave-user] getting started
Hi George :) I don't know the gameoflife example, but this is how I've setup my devenv (and also that for the professional scrum developer training). from the command line you would use maven to run the stories. In order to do that, This is how I have configured the plugin: plugin groupIdorg.jbehave/groupId artifactIdjbehave-maven-plugin/artifactId version${jbehave.core.version}/version executions execution idunpack-view-resources/id phaseprocess-resources/phase goals goalunpack-view-resources/goal /goals /execution execution idembeddable-stories/id phaseintegration-test/phase configuration includes include${embeddables}/include /includes excludes / ignoreFailureInStoriestrue/ignoreFailureInStories ignoreFailureInViewfalse/ignoreFailureInView threads1/threads metaFilters metaFilter/metaFilter /metaFilters /configuration goals goalrun-stories-as-embeddables/goal /goals /execution /executions /plugin ... properties jbehave.core.version3.5.4/jbehave.core.version jbehave.site.version3.1.1/jbehave.site.version embeddables**/*Stories.java/embeddables /properties Then, in order to make them execute with JUnit, my *Stories.java class looks like this: public class AllAcceptanceTestStories extends JUnitStories { public AllAcceptanceTestStories() { configuredEmbedder().embedderControls() .doGenerateViewAfterStories(true) .doIgnoreFailureInStories(true).doIgnoreFailureInView(false) .useThreads(1).useStoryTimeoutInSecs(60); } @Override public Configuration configuration() { Class? extends Embeddable embeddableClass = this.getClass(); ... } ... } Hope that helps, Andreas On Thu, Dec 8, 2011 at 4:39 PM, George Dinwiddie li...@idiacomputing.comwrote: I'm finding it surprisingly difficult to get started with JBehave, when I find Cucumber so easy to use. Mostly it's my unfamiliarity with Maven, but some of it seems to be difficulty in finding current information on jbehave.org. Please bear with my ignorant questions and help me move forward. I've got the gameoflife example loaded into Eclipse. It compiles and runs the junit tests. My current question: How can I run the stories either from the command line or within the Eclipse junit runner? thanks, George -- --**--** -- * George Dinwiddie * http://blog.gdinwiddie.com Software Developmenthttp://www.idiacomputing.com Consultant and Coachhttp://www.agilemaryland.org --**--** -- --**--**- To unsubscribe from this list, please visit: http://xircles.codehaus.org/**manage_emailhttp://xircles.codehaus.org/manage_email -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
[jbehave-user] JUnitStories and Guice?
Hi, I started first with a rather simple example and used JUnitStories. Now I would like to use DI with Guice and from the examples I conclude that I have to extend from InjectableEmbedder instead of JUnitStories. Is it not possible to combine both? I'd hate losing the possibility to run the stories as junit test. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.