It's rather difficult to help you do you don't provide a working sample with your configuration.

The threads example shows that it's possible to run multiple stories in parallel - both via IDE and via mvn.

https://github.com/jbehave/jbehave-core/tree/master/examples/threads

Please try to base your setup on the example or provide us with a working mvn project that reproduces your problem.

On 06/07/2013 17:31, Balabharat bayyavarapu wrote:
Hi All,

Main Issue:
-----------
 When using JUnitStories and running stories as paths, Stories are not
running in parallel.



Description:
-------------
I am using JUnitStories and running stories as paths. Actually i am taking
this approach because, i want my email program to gather the report(by
reading reports.html) after all tests are completed and send a mail with
consolidated report. I am successful in doing that.

But I encountered a problem .My stories are not running in parallel

1)When i used multiple threads using below code: automation tests are
failing in sauce due to synchonization issues.
EmbedderControls embedderControls = embedder.embedderControls();
embedderControls.useThreads(2);

2)I tried passing the below values from pom.xml, still don't see stories
running in parallel.
-DthreadCount=3 -Dparallel=classes -DforkMode=never
-DuseUnlimitedThreads=false -DperCoreThreadCount=false


Please tell me if multi threading works when i run stories as paths using
JUnitStories ?



On Fri, Jul 5, 2013 at 4:26 AM, balabharat <[email protected] <mailto:[email protected]>> wrote:

    Hi All,

    Main Issue:
    -----------
     When using JUnitStories and running stories as paths, Stories are not
    running in parallel.



    Description:
    -------------
    I am using JUnitStories and running stories as paths. Actually i
    am taking
    this approach because, i want my email program to gather the report(by
    reading reports.html) after all tests are completed and send a
    mail with
    consolidated report. I am successful in doing that.

    But I encountered a problem .My stories are not running in parallel

    1)When i used multiple threads using below code: automation tests are
    failing in sauce due to synchonization issues.
    EmbedderControls embedderControls = embedder.embedderControls();
    embedderControls.useThreads(2);

    2)I tried passing the below values from pom.xml, still don't see
    stories
    running in parallel.
    -DthreadCount=3 -Dparallel=classes -DforkMode=never
    -DuseUnlimitedThreads=false -DperCoreThreadCount=false


    Please tell me if multi threading works when i run stories as
    paths using
    JUnitStories ?


    ---------------------------------------------------------------------
    To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




Reply via email to