Stick to 3.x releases for the moment. Latest stable is 3.8, while
preview is 3.9-beta-3.
On 08/10/2013 08:06, Hans Schwäbli wrote:
It seems to be because of my POM configuration.
I use a dependency forJBehave Web 3.6-SNAPSHOT. But instead of using
JBehave-Core 3.7.4 I configured to use transitive dependency
JBehave-Core 4.0-beta3. When I changed it back to 3.7.4 then it worked
again.
As it seems it is a bit dangerous to chery pick transitive versions
and safer to use the ones already configured in JBehave Web. Maybe it
works more easily for chery picking Selenium dependencies.
2013/10/7 Hans Schwäbli <[email protected]
<mailto:[email protected]>>
I discovered that the GivenStories are not executed too. That
worked previously. Something is rotten in the state of Denmark.
2013/10/7 Hans Schwäbli <[email protected]
<mailto:[email protected]>>
I wonder why the StepMonitor I configured is not displayed
anymore.
It used to work before I made some changes to the Maven POM
file. Everything seems to work except that the StepMonitor is
not displayed for some reason.
What could it be?
public class MyStories extends JUnitStories {
private WebDriverProvider driverProvider = new
PropertyWebDriverProvider();
private WebDriverSteps lifecycleSteps = new
PerStoryWebDriverSteps(driverProvider);
private SeleniumContext context = new SeleniumContext();
private ContextView contextView = new
LocalFrameContextView().sized(500, 75).located(0, 0);
public MyStories() {
if (lifecycleSteps instanceof PerStoriesWebDriverSteps) {
configuredEmbedder().useExecutorService(new
SameThreadExecutors().create(configuredEmbedder().embedderControls()));
}
}
@Override
public Configuration configuration() {
Class<? extends Embeddable> embeddableClass =
this.getClass();
return new SeleniumConfiguration()
.useSeleniumContext(context)
.useWebDriverProvider(driverProvider)
.useStepMonitor(new
SeleniumStepMonitor(contextView, context, new
SilentStepMonitor()))
.useStoryLoader(new
LoadFromClasspath(embeddableClass))
.useStoryReporterBuilder(
new
StoryReporterBuilder().withCodeLocation(codeLocationFromClass(embeddableClass)).withDefaultFormats()
.withReporters(new
SeleniumContextStoryReporter(context)).withFormats(CONSOLE,
TXT, HTML, XML));
}
@Override
public InjectableStepsFactory stepsFactory() {
Configuration configuration = configuration();
return new InstanceStepsFactory(configuration, new
CommonSteps(this.driverProvider), new
HomeSteps(this.driverProvider), new LoginSteps(
this.driverProvider), new
LogoutSteps(this.driverProvider), new
WrapperSteps(this.driverProvider), lifecycleSteps,
new
WebDriverScreenshotOnFailure(driverProvider,
configuration.storyReporterBuilder()));
}
@Override
protected List<String> storyPaths() {
List<String> storyPaths = new ArrayList<>();
storyPaths.add("stories/login.story");
return storyPaths;
}
}