Hi Christian,
sorry about the dead link - it's the Codehaus git web view not working.
Here's the equivalent link on Github.
https://github.com/jbehave/jbehave-web/tree/master/examples/trader-runner
The trader-runner is a fully-working example of a webapp that extends
and customises the web runner app. There is a README with
instructions on how to build and use it.
The only thing is that there is no xml to configure (except for
web.xml). Configuration is done in Java. Essentially, you need to
provide your own extension class of WebRunnerApplication configuring
your own instances of configuration and steps classes (you can reuse
classes already defined in other modules, of course). We can provide
scripted extension layers (e.g. I'm currently adding support for
generic InjectableStepsFactory which would allow you to script the
steps contents in Spring) but at the moment it's Java.
Once you're written your WebRunnerApplication class (you can model it
on the TraderRunnerApplication) and configured it in the web.xml, then
you build and run as any webapp, which you can deploy in any web
container, e.g. Tomcat.
The example is standalone and can be used with any released version.
To use embedded jetty to run it from command-line via Maven:
mvn jetty:run-war -Djbehave.webrunner.version=3.4.3
Do let us know if this is enough info for you.
Cheers
On Tue Dec 20 14:07:45 2011, Christian Taylor wrote:
I love starting with a side-note:
There seems to be a number of dead links to trader-runner-examples from
http://jbehave.org/reference/web/stable/using-web-runner.html
but I am unsure whether to create a jira issue on it, and if so - if it
would go under "documentation"?
The actual question:
Regardless, I was looking at this in an effort to run something local on
my machine to see if it's for us.
My background is NOT technical (well - not technical in a
programmer/developer sense), and thus I find the documentation on the
tutorials somewhat lacking.
Can someone help uncover the secrets of getting started with web-runner?
The intension:
To get web-runner going locally, but hooking up to svn where we keep out
project code.
jBehave is already set up for the project.
So I would really appreciate some hints like (and these are just
examples):
1. get apache running locally
2. configure webrunner in file xxx.xml
3. dump files x,y,z in dir ../somedir
4. do some other stuff which makes things work
5. access web-runner on http://localhost:8080/web-runner and see it in
motion.
Is it at all possible to do this or am I just going to have to ask a
developer about this and see if he/she can figure it out?
Thanks
/Christian
---------------------------------------------------------------------
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