ah, I see:

public class LifecycleSteps extends PerStoryWebDriverSteps

initialises WebDriver

On 19/02/2012 12:40, Christopher Townson wrote:
Hi,

Following the example provided in the etsy-stories-java-spring tutorial,
I have been attempting to get up and running with a very simple scenario
using WebDriverProvider with page objects and injected steps via Spring.
I am looking to integrate this into my maven build using the
jbehave-maven-plugin ... however, I am encountering 2 issues that it is
not clear to me how to resolve:

First, executing my test in Eclipse:

(bdd/com/foo/story/homepage.story)
Narrative:
In order to find out how JBehave WebDriverProvider works
As a developer
I want to successfully demonstrate a basic scenario
Scenario: Hello world
When I go to the homepage (FAILED)
(org.jbehave.web.selenium.DelegatingWebDriverProvider$DelegateWebDriverNotFound:
WebDriver has not been found for this thread.
Please verify you are using the correct WebDriverProvider, with the
appropriate credentials if using remote access, e.g. to SauceLabs.)

Since I can execute the AnnotatedEtsyDotComStories (which my test is
basically a direct copy of) fine this way, I was wondering whether this
is some dependency I am missing or something to do with changes in
Spring 3.x? (As these are the only significant differences between the
tutorial and my test project that immediately come to mind.)

I have not been able so far to verify whether this problem also occurs
during normal command line execution of the maven build because, as yet,
I have not been able to get the plugin to find my stories, always ending
up with:

[INFO] Running stories with annotated embedder runner
[INFO] Found class names: []

Attached is my small test project which has 1 "hello, world!" controller
and a story which asserts that this is the message displayed.

I would be most grateful for any pointers on what I am doing wrong here.

Thanks,

Chris



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

     http://xircles.codehaus.org/manage_email



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

   http://xircles.codehaus.org/manage_email


Reply via email to