Hi Enrique,
the issue has to do with the number of threads, rather than the use or
not of the embedder controls.
If you use more than one thread then the selenium step monitor asks the
context view for the current scenario title and that may change. I
think the logic needs to be reviewed to take into account multi-threading.
Please raise a jira issue for this.
Cheers
On 17/07/2012 22:18, Jorge Pombar wrote:
I'm not sure if this is an artifact or I'm not setting the
configurations correctly
To reproduce:
-Start from the jBehave-spring-archetype
-Configure the Embedder I tried both setting it on the constructor. Ie
oconfiguredEmbedder().embedderControls().doGenerateViewAfterStories(true).doIgnoreFailureInStories(false).doIgnoreFailureInView(true).doVerboseFailures(true).useThreads(2).useStoryTimeoutInSecs(60);
-and overriding configuredEmbedder method. Ie
o@Override public Embedder configuredEmbedder() {
o //this line has no problems
osuper.configuredEmbedder().useMetaFilters(Arrays.asList("-theme"));
o //this is the problem line
super.configuredEmbedder().embedderControls().doGenerateViewAfterStories(true).doIgnoreFailureInStories(false).doIgnoreFailureInView(true).doVerboseFailures(true).useThreads(2).useStoryTimeoutInSecs(60);
o
o return super.configuredEmbedder();
o}
-Either one will reproduce the issue. Notice that in the ContextView
it shows "null" for the Scenario name. If you run the same stories
without using embedderControls the name displays correctly
Let me know if you want me to open an jira issue
Thanks,
Enrique