--
You received this message because you are subscribed to the Google Groups "Thucydides Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send an email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
BTW, since I am not using Junit, I look for multi-threading
configuration for jbehave (story files).
On Fri, Nov 1, 2013 at 10:38 AM, Ali Ostadsaraie
<aostad...@gmail.com <mailto:aostad...@gmail.com>> wrote:
Hi John,
I've noticed Jbehave supports multi-thrading and concurrent
execution of story files. Just wondering, if it can be done in
thucydides by configuring number of threads instead of batching
story files as you've described in your blog. For example, we can
set the number of threads to 10. That means if we run 10 story
files, each will be executed on one thread concurrently.
Any idea how this can be done in Tucydides?
Thanks,
Ali
On Wed, Oct 30, 2013 at 1:12 PM, Ali Ostadsaraie
<aostad...@gmail.com <mailto:aostad...@gmail.com>> wrote:
Thanks for the links. I've used both of them to make it work
in my framework.
Just wondering if there is any API that returns the number of
test scenarios. Something like storyPaths() that returns
number of story files. Distributing test cases among
agents/batches is better than distributing story files.
Thanks,
Ali
On Fri, Oct 25, 2013 at 2:06 PM, John Smart
<john....@wakaleo.com <mailto:john....@wakaleo.com>> wrote:
Hi Ali,
You might find this approach useful:
https://weblogs.java.net/blog/johnsmart/archive/2011/12/26/faster-web-tests-parallel-batches-thucydides
There is also this approach if you are using JBehave:
https://weblogs.java.net/blog/johnsmart/archive/2013/08/18/running-parallel-acceptance-tests-using-jbehave-thucydides-and-bamboo
- John
On 26 October 2013 03:18, Ali Ostadsaraie
<aostad...@gmail.com <mailto:aostad...@gmail.com>>
To post to this group, send an email to
thucydid...@googlegroups.com
<mailto:thucydid...@googlegroups.com>.
For more options, visit
https://groups.google.com/groups/opt_out.
--
___________________________________________________
John Smart | Wakaleo Consulting | +61 407 247 642
<tel:%2B61%20407%20247%20642>
Optimizing your software development process
http://www.wakaleo.com | john....@wakaleo.com
<mailto:john....@wakaleo.com>___________________________________________________
Check out our upcoming *BDD/TDD Master classes*
<http://wakaleo.com/training/testing-and-tdd-for-java-developers>,
coming
soon to *Sydney*
<http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses>,
*Melbourne*
<http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses>,
*Canberra*
<http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses>,
*Brisbane*
<http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses>
and *Perth*
<http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses>
___________________________________________________
Yes, that is currently the case - I couldn't figure out how to do it in JBehave at the time of implementation. The JBehave API may have evolved since then.On 5 November 2013 10:05, Ali Ostadsaraie <aostad...@gmail.com> wrote:HI John,I just want to double check that based on you thucydides doesn't support multi-thread feature as suggested in Jbejave. It only supports it for Junit.Is that true?Thanks,Ali
On Sat, Nov 2, 2013 at 10:19 PM, Ali Ostadsaraie <aostad...@gmail.com> wrote:
Based on suggestion in Jbehave, I thought all I need to do is changing the pom.xml. I have done that but no luck yet. I think the source code needs to be changed to. This is what I have added to the pom.xml:Hi John,I'll be more than happy to start working on this issue, however, I should say my knowledge of Java programming language is basic as I used to be a C/C++ programmer. Therefore, I need a little bit help in preparing my development environment for making changes in the code as well as I need to know which source code I start looking at and where to find them. As first step, I,ve created a git account to access the project but did not go further yet. Your help in this regard is much appreciated.
<plugin>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-maven-plugin</artifactId>
<version>${jbehave_core.version}</version>
<executions>
<execution>
<id>embeddable-stories</id>
<phase>integration-test</phase>
<configuration>
<includes>
<include>**/*Stories.java</include>
</includes>
<ignoreFailureInStories>true</ignoreFailureInStories>
<ignoreFailureInView>false</ignoreFailureInView>
<threads>5</threads>
<executorsClass>org.jbehave.core.embedder.executors.SameThreadExecutors</executorsClass>
</configuration>
<goals>
<goal>run-stories-as-embeddables</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>
</plugin>
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send an email to thucydid...@googlegroups.com.
--
___________________________________________________
John Smart | Wakaleo Consulting | +61 407 247 642
___________________________________________________
Hi John,
Could you please provide information in how to use the new feature
(multi-threading) in Thucydides-jbehave-plugin 0.9.222. I'm kind of
stuck and don't know how to use it.
Thanks,
Ali
On Fri, Nov 8, 2013 at 10:24 PM, Ali Ostadsaraie
<aostad...@gmail.com <mailto:aostad...@gmail.com>> wrote:
What changes are needed in pom.xml, thucydides.properties, or in
java code? How to use multi-threading feature?
Thanks.
On Fri, Nov 8, 2013 at 6:49 PM, Ali Ostadsaraie
<aostad...@gmail.com <mailto:aostad...@gmail.com>> wrote:
Hi John,
It's not clear to me how to configure the system. Could you
please light some shed on this.
Thanks,
Ali
On Fri, Nov 8, 2013 at 2:04 PM, Derek <derekd...@gmail.com
an email to thucydides-use...@__googlegroups.com.
To post to this group, send an email to
thucydid...@googlegroups.__com.
For more options, visit
https://groups.google.com/__groups/opt_out
<https://groups.google.com/groups/opt_out>.
--
You received this message because you are subscribed to
the Google Groups "Thucydides Users Group" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
thucydides-use...@googlegroups.com
To post to this group, send an email to
thucydid...@googlegroups.com
<mailto:thucydid...@googlegroups.com>.
Parallel execution with failsafe plugin works, but run not all of tests.Now i am making some investigation about this.
Hi Mike,Yes fix all known issues. And know you can run all your test in parallel modeor some test in fixed order and other in parallel (using "execution" section in maven failsafe configuration).I create post with example how to do this http://mdolinin.github.io/blog/2014/01/19/thucydides-plus-jbehave-plus-maven-run-tests-in-fixed-order/
Den tisdagen den 21:e januari 2014 kl. 21:21:58 UTC+1 skrev m.dolinin:Hi Mike,Yes fix all known issues. And know you can run all your test in parallel modeor some test in fixed order and other in parallel (using "execution" section in maven failsafe configuration).I create post with example how to do this http://mdolinin.github.io/blog/2014/01/19/thucydides-plus-jbehave-plus-maven-run-tests-in-fixed-order/That sounds great. However, I couldn't install the current v. 0.9.230-SNAPSHOT of the plugin as there are 4 test failures and 1 skip. I'm trying a previous version instead
CrossReference xref = new CrossReference().withThreadSafeDelegateFormat( new Format("XREF") { private final ThreadLocal<Story> curStory = new ThreadLocal<>(); private final ThreadLocal<String> curScenario = new ThreadLocal<>(); private final ThreadLocal<Map<String, String>> curTableRow = new ThreadLocal<>(); @Override public StoryReporter createStoryReporter(FilePrintStreamFactory factory, StoryReporterBuilder storyReporterBuilder) { return new NullStoryReporter() { @Override public void beforeStory(Story story, boolean givenStory) { curStory.set(story); } @Override public void beforeScenario(String title) { curScenario.set(title); } @Override public void example(Map<String, String> tableRow) { curTableRow.set(tableRow); } }; } });
configuration().useStoryReporterBuilder( new StoryReporterBuilder().withCrossReference(xref));