Hi Maxime,

please to have been of help!

And thanks for the kind words, much appreciated :-)

Cheers

On 5 May 2011, at 15:55, SCHNEIDER-DUFEUTRELLE Maxime 
<[email protected]> wrote:

> Hi,
> 
>  
> 
> You were right, the problem was coming from my pattern in protected 
> List<String> storyPaths(); which was not corresponding to my project 
> structure.
> 
>  
> 
> It’s now working fine. Thanks a lot !
> 
>  
> 
> Thanks a lot and bravo to the jBehave team too which made a really great job 
> :)
> 
>  
> 
> Maxime
> 
>  
> 
> From: Mauro Talevi [mailto:[email protected]] 
> Sent: Wednesday,May 04,2011 5:52 PM
> To: [email protected]
> Subject: Re: [jbehave-user] Stories running in Eclipse but not with maven
> 
>  
> 
> Looks like your embeddable MyAppWebStories is found and run, but then no 
> textual story paths are found, hence only the Before/AfterStories steps are 
> executed. 
> 
> What does you MyAppWebStories look like, in particular how do you implement 
> the method:
> 
>     protected List<String> storyPaths();
> 
> When running with Maven, bear in mind that the path of the stories is 
> relative to the module basedir. 
> 
> Cheers
> 
> On 04/05/2011 13:56, SCHNEIDER-DUFEUTRELLE Maxime wrote:
> 
> Hi all,
> 
>  
> 
> I have a strange problem with jBehave when I try to run my stories with maven.
> 
> I followed the documentation on jbehave.org to make it work with Selenium. My 
> stories are running fine in Eclipse but I can’t find a way to make them work 
> in maven. Selenium server starts then run-stories-as-embeddables execute but 
> stories are not run correctly :
> 
>  
> 
> C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit>mvn install
> 
> [INFO] Scanning for projects...
> 
> [INFO] 
> ------------------------------------------------------------------------
> 
> [INFO] Building testMyAppWithJUnit
> 
> [INFO]    task-segment: [install]
> 
> [INFO] 
> ------------------------------------------------------------------------
> 
> [INFO] [resources:resources {execution: default-resources}]
> 
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> 
> [INFO] skip non existing resourceDirectory 
> C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit\src\main\resources
> 
> [INFO] [compiler:compile {execution: default-compile}]
> 
> [INFO] Nothing to compile - all classes are up to date
> 
> [INFO] [resources:testResources {execution: default-testResources}]
> 
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> 
> [INFO] skip non existing resourceDirectory 
> C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit\src\test\resources
> 
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> 
> [INFO] Nothing to compile - all classes are up to date
> 
> [INFO] [surefire:test {execution: default-test}]
> 
> [INFO] No tests to run.
> 
> [INFO] [jar:jar {execution: default-jar}]
> 
> [INFO] Building jar: 
> C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit\target\testMyAppWithJUnit-1.0-SNAPSHOT.jar
> 
> [INFO] [selenium:start-server {execution: start}]
> 
> Launching Selenium Server
> 
> Waiting for Selenium Server...
> 
> [INFO] User extensions: 
> C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit\target\selenium\user-extensions.js
> 
> 14:38:17,192 INFO  [org.openqa.selenium.server.SeleniumServer] Java: Sun 
> Microsystems Inc. 16.0-b13
> 
> 14:38:17,192 INFO  [org.openqa.selenium.server.SeleniumServer] OS: Windows XP 
> 5.1 x86
> 
> 14:38:17,192 INFO  [org.openqa.selenium.server.SeleniumServer] v2.0 [b3], 
> with Core v2.0 [b3]
> 
> 14:38:17,302 INFO  [org.openqa.selenium.server.SeleniumServer] 
> RemoteWebDriver instances should connect to: http://127.0
> 
> .0.1:4444/wd/hub
> 
> 14:38:17,302 INFO  [org.openqa.jetty.http.HttpServer] Version Jetty/5.1.x
> 
> 14:38:17,302 INFO  [org.openqa.jetty.util.Container] Started 
> HttpContext[/selenium-server/driver,/selenium-server/driver]
> 
> 14:38:17,302 INFO  [org.openqa.jetty.util.Container] Started 
> HttpContext[/selenium-server,/selenium-server]
> 
> 14:38:17,302 INFO  [org.openqa.jetty.util.Container] Started HttpContext[/,/]
> 
> 14:38:17,395 INFO  [org.openqa.jetty.util.Container] Started 
> org.openqa.jetty.jetty.servlet.ServletHandler@1c5f743
> 
> 14:38:17,395 INFO  [org.openqa.jetty.util.Container] Started 
> HttpContext[/wd,/wd]
> 
> 14:38:17,395 INFO  [org.openqa.jetty.http.SocketListener] Started 
> SocketListener on 0.0.0.0:4444
> 
> 14:38:17,395 INFO  [org.openqa.jetty.util.Container] Started 
> org.openqa.jetty.jetty.Server@95c083
> 
> 14:38:17.442 INFO - Checking Resource aliases
> 
> Selenium Server started
> 
> [INFO] [jbehave:run-stories-as-embeddables {execution: 
> run-stories-as-embeddables}]
> 
> [INFO] Running stories using embedder 
> Embedder[configuration=org.jbehave.core.configuration.MostUsefulConfiguration@93b5
> 
> 2b,candidateSteps=[],stepsFactory=<null>,classLoader=EmbedderClassLoader[urls=[/C:/HOMEWARE/Maxime/testsMyAppSelenium/test
> 
> MyAppWithJUnit/target/classes/, selenium-maven-plugin-1.1.jar, 
> gmaven-mojo-1.3.jar, gmaven-runtime-api-1.3.jar, gmaven-fea
> 
> ture-api-1.3.jar, gmaven-runtime-1.5-1.3.jar, slf4j-api-1.5.10.jar, 
> gmaven-feature-support-1.3.jar, gmaven-runtime-suppo
> 
> rt-1.3.jar, gshell-io-2.0.jar, gossip-1.0.jar, plexus-utils-2.0.5.jar, 
> qdox-1.10.jar, ant-1.7.1.jar, ant-launcher-1.7.1.
> 
> jar, jline-0.9.94.jar, maven-project-2.0.10.jar, maven-settings-2.0.10.jar, 
> maven-model-2.0.10.jar, plexus-interpolation
> 
> -1.1.jar, plexus-container-default-1.0-alpha-9-stable-1.jar, 
> classworlds-1.1-alpha-2.jar, maven-profile-2.0.10.jar, mave
> 
> n-artifact-manager-2.0.10.jar, maven-repository-metadata-2.0.10.jar, 
> maven-artifact-2.0.10.jar, wagon-provider-api-1.0-b
> 
> eta-2.jar, maven-plugin-registry-2.0.10.jar, maven-plugin-api-2.0.10.jar, 
> gmaven-mojo-support-1.3.jar, groovy-all-1.7.5.
> 
> jar, selenium-server-2.0b3-standalone.jar, commons-lang-2.4.jar, 
> jbehave-core-3.3.2.jar, commons-collections-3.2.1.jar,
> 
> commons-io-1.4.jar, freemarker-2.3.16.jar, paranamer-2.3.jar, 
> xstream-1.3.1.jar, xpp3_min-1.1.4c.jar, junit-dep-4.8.2.ja
> 
> r, hamcrest-all-1.1.jar, jbehave-web-selenium-3.3.1.jar, 
> selenium-remote-control-2.0b3.jar, selenium-chrome-driver-2.0b3
> 
> .jar, selenium-remote-driver-2.0b3.jar, cglib-nodep-2.1_3.jar, 
> json-20080701.jar, selenium-api-2.0b3.jar, guava-r07.jar,
> 
>  httpclient-4.0.2.jar, httpcore-4.0.1.jar, commons-logging-1.1.1.jar, 
> commons-codec-1.4.jar, selenium-htmlunit-driver-2.
> 
> 0b3.jar, htmlunit-2.8.jar, xalan-2.7.1.jar, serializer-2.7.1.jar, 
> xml-apis-1.3.04.jar, httpmime-4.0.1.jar, apache-mime4j
> 
> -0.6.jar, htmlunit-core-js-2.8.jar, xercesImpl-2.9.1.jar, 
> nekohtml-1.9.14.jar, cssparser-0.9.5.jar, sac-1.3.jar, seleniu
> 
> m-firefox-driver-2.0b3.jar, selenium-ie-driver-2.0b3.jar, jna-3.2.2.jar, 
> selenium-iphone-driver-2.0b3.jar, selenium-supp
> 
> ort-2.0b3.jar],parent=org.codehaus.classworlds.RealmClassLoader@a45536],embedderControls=UnmodifiableEmbedderControls[Em
> 
> bedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=false,ignoreFailureInView=fal
> 
> se,storyTimeoutInSecs=300,threads=1]],metaFilters=[],systemProperties={},storyMapper=StoryMapper,storyRunner=StoryRunner
> 
> ,embedderMonitor=MavenEmbedderMonitor,executorService=<null>]
> 
> [INFO] Found class names: [test.Selenium.JUnit.MyAppWebStories]
> 
> [INFO] Running embeddable test.Selenium.JUnit.MyAppWebStories
> 
> [INFO] Processing system properties {}
> 
>  
> 
> (BeforeStories)
> 
> 14:38:18,426 INFO  [org.openqa.jetty.util.Credential] Checking Resource 
> aliases
> 
> 14:38:18.426 INFO - Command request: getNewBrowserSession[*iexplore, 
> http://localhost:4444/, ] on session null
> 
> 14:38:18.426 INFO - creating new remote session
> 
> 14:38:18.458 INFO - Allocated session f823b226ffea4d89ac908ca099ddafde for 
> http://localhost:4444/, launching...
> 
> 14:38:18.551 INFO - Launching Embedded Internet Explorer...
> 
> 14:38:18.551 INFO - Launching Internet Explorer HTA...
> 
> 14:38:21.098 INFO - Got result: OK,f823b226ffea4d89ac908ca099ddafde on 
> session f823b226ffea4d89ac908ca099ddafde
> 
>  
> 
> (AfterStories)
> 
> 14:38:21.098 INFO - Command request: close[, ] on session 
> f823b226ffea4d89ac908ca099ddafde
> 
> 14:38:21.223 INFO - Got result: OK on session f823b226ffea4d89ac908ca099ddafde
> 
> 14:38:21.223 INFO - Command request: testComplete[, ] on session 
> f823b226ffea4d89ac908ca099ddafde
> 
> [INFO] Generating reports view to 
> 'C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit\target\jbehave' 
> using formats '[
> 
> stats, console, txt, html, xml]' and view properties '{defaultFormats=stats, 
> decorateNonHtml=true, viewDirectory=view, d
> 
> ecorated=ftl/jbehave-report-decorated.ftl, 
> reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, navig
> 
> ator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, 
> nonDecorated=ftl/jbehave-report-non-decorated.ftl}'
> 
> 14:38:21.364 INFO - Got result: OK on session f823b226ffea4d89ac908ca099ddafde
> 
> [INFO] Reports view generated with 2 stories (of which 0 pending) containing 
> 0 scenarios (of which  0 failed and 0 pendi
> 
> ng)
> 
> [INFO] [selenium:stop-server {execution: stop}]
> 
> Stopping Selenium server...
> 
> 14:38:21.551 INFO - Command request: shutDownSeleniumServer[, ] on session 
> null
> 
> 14:38:21.551 INFO - Shutdown command received
> 
> Stop request sent
> 
> 14:38:21.551 INFO - Got result: OK on session null
> 
> 14:38:21.567 INFO - initiating shutdown
> 
> [INFO] [install:install {execution: default-install}]
> 
> [INFO] Installing 
> C:\HOMEWARE\Maxime\testsMyAppSelenium\testMyAppWithJUnit\target\testMyAppWithJUnit-1.0-SNAPSHOT.jar
>  to C:\HO
> 
> MEWARE\maven-2_local\tests\Selenium\JUnit\testMyAppWithJUnit\1.0-SNAPSHOT\testMyAppWithJUnit-1.0-SNAPSHOT.jar
> 
> [INFO] 
> ------------------------------------------------------------------------
> 
> [INFO] BUILD SUCCESSFUL
> 
> [INFO] 
> ------------------------------------------------------------------------
> 
> [INFO] Total time: 8 seconds
> 
> [INFO] Finished at: Wed May 04 14:38:21 CEST 2011
> 
> [INFO] Final Memory: 24M/60M
> 
>  
> 
>  
> 
> The structure of MyApp is like:
> 
>  
> 
> MyApp
> 
>   |------src/main/java
> 
>   |                     |-------------test.Selenium.JUnit
> 
>   |                                                              
> |-------------MyAppWebStories.java
> 
>   |                                                              
> |---------------------pages
> 
>   |                                                              |            
>                             |---1Page.java
> 
>   |                                                              |            
>                             |---2Page.java
> 
>   |                                                              |            
>                             |---3Page.java
> 
>   |                                                              |
> 
>   |                                                              
> |---------------------steps
> 
>   |                                                              |            
>                             |---MyAppWebSteps.java
> 
>   |                                                              |
> 
>   |                                                              
> |---------------------stories
> 
>   |                                                                           
>                              |---first_story.story
> 
>   |                                                                           
>                              |--- second_story.story
> 
> pom.xml
> 
>  
> 
> I attach my pom file. If anybody have an idea of what I could have forget…
> 
>  
> 
> Thanks in advance,
> 
> Maxime
> 
>  
> 
> *************************************************************************
> This message and any attachments (the "message") are confidential, intended 
> solely for the addressee(s), and may contain legally privileged information.
> Any unauthorised use or dissemination is prohibited. E-mails are susceptible 
> to alteration.  
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
> liable for the message if altered, changed or
> falsified.
>                               ************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont 
> confidentiels et susceptibles de contenir des informations couvertes 
> par le secret professionnel. 
> Ce message est etabli a l'intention exclusive de ses destinataires. Toute 
> utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration. 
> La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre 
> de ce message s'il a ete altere, deforme ou falsifie.
> *************************************************************************
> 
>  
>  
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>  
>     http://xircles.codehaus.org/manage_email
>  

Reply via email to