The JBehave Eclipse plugin is only for editing/navigating from text to steps methods. It does not have any role in execution of stories (for now, planned features).

To access and use the archetypes you only need to use Maven - either installed standalone on your system or via the Eclipse m2e plugin.

The JBehave Maven projects are executable in command-line and - at the same time - loadable in any IDE that supports Maven (Eclipse, IDEA, etc ... )

As most of the examples of JBehave are Maven-based I advise you lookup Maven - http://maven.apache.org or http://www.sonatype.com/Support/Books

And the examples are the best way to start with JBehave.

Cheers

On 21/11/2012 00:30, Mani Sarkar wrote:
Thanks Mauro, I will revisit my code and attempt applying the suggestions you have made.

Just another question, apart from installing he JBehave plug-in in Eclipse what else needs to be setup / applied so to be able to access these archetypes when creating projects and also when building projects (pom, maven plug-ins)?

Are you getting the drift of what I'm referring to? I have come across tags like <maven-jbehave-plugins>, how do they interact with our projects ?

On Tue, Nov 20, 2012 at 8:28 AM, Mauro Talevi <[email protected] <mailto:[email protected]>> wrote:

    Hi Mani,

    it looks like you've gone off in the wrong direction (you should
    not need to touch the model classes, e.g. Scenario, and that's not
    the way to define the steps).

    Have a look at the documentation -
    http://jbehave.org/reference/stable/getting-started.html

    or use a Maven archetype -
    http://jbehave.org/reference/stable/archetypes.html

    Cheers


    On 20/11/2012 00:53, Mani Sarkar wrote:
    Hi Mauro, All,

    My query is simple, can you help me fix the BDD scenario and
    story I have written - some how the link between the story file
    and the class files are not in place like they have been for my
    other projects and I can't see why? Is it a bug or have I not
    used the notations correctly - you can see it once you load it
    Eclipse.

    Also I would like to know if the way I have converted the
    requirements to BDD stories to classes is how you would do it. My
    list of requirements can be found
    
athttps://github.com/neomatrix369/PatchReviewUtilities/blob/master/mani/openJDKProdTool/stories%20to-do/OpenJDKProductivityTool-original-requirements.txt

    Here's the story conversion of the first requirement:
    
https://github.com/neomatrix369/PatchReviewUtilities/blob/master/mani/openJDKProdTool/src/main/java/org/ljc/adoptojdk/ClassContributorRetriever/ClassContributorRetrieverScenario.story

    And the classes with steps and scenarios can be found in the same
    folder where the story file is - for the first requirement only.

    Just to understand what the purpose of my project is, have a look
    at my blog which explains it in the form of a fictional story:
    
http://neomatrix369.wordpress.com/2012/11/14/where-in-the-world-is-carmen-sandiego/.

    Basically I would like to do it right and get a hang of the
    process using JBehave for the first requirement so that I can
    repeat it for the others.

    How do you also make sure your BDD and TDD tests have full
    coverage? What are the questions you ask, I guess there must be a
    method to the madness? When implementing BDD, how do you apply
    the TDD principles so to get the unit tests as well - so you have
    the best of the two approaches tied in? The last few questions
    might be outside the scope of JBehave, but any feedback will be
    useful.

    Thanks again.

    Cheers,
    Mani

    On Mon, Nov 19, 2012 at 8:44 AM, Mauro Talevi
    <[email protected] <mailto:[email protected]>>
    wrote:

        Hi Mani,

        I think it'd be better to pose more specific questions on the
        list.

        We're happy to respond to them.

        Cheers


        On 18/11/2012 16:56, Mani Sarkar wrote:
        Hi,

        I haven't heard from anyone from the group since I posted
        the below message. Would be nice to get feedback on the
        things done right and others that could be done differently.

        I'm more concerned about the JBehave approach I have taken,
        what would you have done if you were me?

        Regards,
        Mani

        On Wed, Nov 14, 2012 at 6:42 PM, Mani Sarkar
        <[email protected] <mailto:[email protected]>> wrote:

            Hi All,

            I'm learning BDD and TDD using Java and got myself on a
            project so as to get me thinking on how to go about
            using the three together. I had put together a list of
            requirements and expanded on one of the requirements by
            writing a BDD story and scenarios for it.

            Here's the github link to the project:
            
https://github.com/neomatrix369/PatchReviewUtilities/tree/master/mani/openJDKProdTool

            Requirements list:
            
https://github.com/neomatrix369/PatchReviewUtilities/blob/master/mani/openJDKProdTool/stories%20to-do/OpenJDKProductivityTool-original-requirements.txt

            Expanded BDD Story on first requirement (some classes):
            
https://github.com/neomatrix369/PatchReviewUtilities/tree/master/mani/openJDKProdTool/src/main/java/org/ljc/adoptojdk/ClassContributorRetriever

            It is still work in progress and I would like to develop
            the rest of the system using these agile techniques, and
            expand on the rest of the requirements. I thought before
            I think I got it right, I rather run my work by others
            for expert opinions, and so here I'm. I might have done
            an a** job at it, and you might find gaps, but thats
            great, I'll fix them and learn from it.

            If you could give me your feedback, hints for
            improvements on the existing work and also on how I
            should go about expanding on the rest of the
            requirements it would be of great help. I have used
            JBehave as my BDD framework, and I have used pretty
            basic concepts, but I would love to expand on them as we
            go along. Examples that related my project are also
            welcome, i'll use whatever comes my way.

            Basically I want to learn how to do things right and how
            not to, using these techniques!

            Thanks again for considering my request.

            Cheers,
            Mani
            PS: Btw if you have some spare moments you can also be
            part of of the FOSS group
            (http://java.net/projects/adoptopenjdk/pages/AdoptOpenJDK)
            I have joined - it surely will help you improve your
            tech skills.
-- Twitter: @theNeomatrix369
            Blog: http://neomatrix369.wordpress.com
            <http://neomatrxi369.wordpress.com/>

            */Don't chase success, rather aim for "Excellence", and
            success will come chasing after you!/*
            */
            /*




-- Twitter: @theNeomatrix369
        Blog: http://neomatrix369.wordpress.com
        <http://neomatrxi369.wordpress.com>

        */Don't chase success, rather aim for "Excellence", and
        success will come chasing after you!/*





-- Twitter: @theNeomatrix369
    Blog: http://neomatrix369.wordpress.com
    <http://neomatrxi369.wordpress.com>

    */Don't chase success, rather aim for "Excellence", and success
    will come chasing after you!/*





--
Twitter: @theNeomatrix369
Blog: http://neomatrix369.wordpress.com <http://neomatrxi369.wordpress.com>

*/Don't chase success, rather aim for "Excellence", and success will come chasing after you!/*


Reply via email to