Re: [jbehave-dev] skip scenario based on tags
Hi Ajay Thanks for the project. I was able to reproduce the problem which is in effect present when using filters with the 4.0 code base. Need to look into it to find the root cause. In the meantime you can use latest 3.9.x release. Cheers, M On 14 Aug 2014, at 02:00, अजय सिंह sir...@gmail.com wrote: Hi Mauro, Thanks for your reply Please find the project attached Thanks Ajay On Wed, Aug 13, 2014 at 5:01 PM, Mauro Talevi mauro.tal...@aquilonia.org wrote: The error does not seem related to meta filters. But you'll need to provide a way for us to reproduce the issue because it's not possible to help you otherwise. Can you share your Maven project reproducing the behaviour? On 13/08/2014 01:56, अजय सिंह wrote: Hi I have three scenario and i would like to run scenarios in different env based on the tags. I have tagged my 3 scenario as @env SIT [to run in SIT] //.scenario1 @env QA [to run in QA] //.scenario2 @env SITQA [to run in both]//.scenario3 and in my meta filter i use metaFilters metaFilter-env QA/metaFilter /metaFilters With these i get following exceptions [logs attached] (BeforeStories) [INFO] Running story org/test/sample/stories/my.story (org/test/sample/stories/my.story) Scenario: this scenario should run in SIT Given I am a SIT step Scenario: this scenario should run in QA [WARNING] Failed to run story org/test/sample/stories/my.story org.jbehave.core.failures.UUIDExceptionWrapper: java.lang.NullPointerException at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:366) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:238) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:217) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Can anyone explain me whats wrong or how can i achieve this including excluding scenario based on tags ? Thanks Ajay - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email metatags.zip - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] skip scenario based on tags
Hi mauro Thanks. I will. Regards Ajay On 14/08/2014 6:42 pm, Mauro Talevi mauro.tal...@aquilonia.org wrote: Hi Ajay Thanks for the project. I was able to reproduce the problem which is in effect present when using filters with the 4.0 code base. Need to look into it to find the root cause. In the meantime you can use latest 3.9.x release. Cheers, M On 14 Aug 2014, at 02:00, अजय सिंह sir...@gmail.com wrote: Hi Mauro, Thanks for your reply Please find the project attached Thanks Ajay On Wed, Aug 13, 2014 at 5:01 PM, Mauro Talevi mauro.tal...@aquilonia.org wrote: The error does not seem related to meta filters. But you'll need to provide a way for us to reproduce the issue because it's not possible to help you otherwise. Can you share your Maven project reproducing the behaviour? On 13/08/2014 01:56, अजय सिंह wrote: Hi I have three scenario and i would like to run scenarios in different env based on the tags. I have tagged my 3 scenario as @env SIT [to run in SIT] //.scenario1 @env QA [to run in QA] //.scenario2 @env SITQA [to run in both]//.scenario3 and in my meta filter i use metaFilters metaFilter*-env QA*/metaFilter /metaFilters With these i get following exceptions [logs attached] *(BeforeStories)* *[INFO] Running story org/test/sample/stories/my.story* *(org/test/sample/stories/my.story)* *Scenario: this scenario should run in SIT* *Given I am a SIT step* *Scenario: this scenario should run in QA* *[WARNING] Failed to run story org/test/sample/stories/my.story* *org.jbehave.core.failures.UUIDExceptionWrapper: java.lang.NullPointerException* * at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:366)* * at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:238)* * at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:217)* * at java.util.concurrent.FutureTask.run(FutureTask.java:262)* * at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* * at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* * at java.lang.Thread.run(Thread.java:745)* Can anyone explain me whats wrong or how can i achieve this including excluding scenario based on tags ? Thanks Ajay - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email metatags.zip - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] skip scenario based on tags
The error does not seem related to meta filters. But you'll need to provide a way for us to reproduce the issue because it's not possible to help you otherwise. Can you share your Maven project reproducing the behaviour? On 13/08/2014 01:56, ??? wrote: Hi I have three scenario and i would like to run scenarios in different env based on the tags. I have tagged my 3 scenario as @env SIT [to run in SIT] //.scenario1 @env QA [to run in QA] //.scenario2 @env SITQA [to run in both]//.scenario3 and in my meta filter i use metaFilters metaFilter*-env QA*/metaFilter /metaFilters With these i get following exceptions [logs attached] /(BeforeStories)/ / / /[INFO] Running story org/test/sample/stories/my.story/ / / /(org/test/sample/stories/my.story)/ /Scenario: this scenario should run in SIT/ /Given I am a SIT step/ / / /Scenario: this scenario should run in QA/ /[WARNING] Failed to run story org/test/sample/stories/my.story/ /org.jbehave.core.failures.UUIDExceptionWrapper: java.lang.NullPointerException/ /at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:366)/ /at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:238)/ /at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:217)/ /at java.util.concurrent.FutureTask.run(FutureTask.java:262)/ /at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)/ /at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)/ /at java.lang.Thread.run(Thread.java:745)/ Can anyone explain me whats wrong or how can i achieve this including excluding scenario based on tags ? Thanks Ajay - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] skip scenario based on tags
Hi I have three scenario and i would like to run scenarios in different env based on the tags. I have tagged my 3 scenario as @env SIT [to run in SIT] //.scenario1 @env QA [to run in QA] //.scenario2 @env SITQA [to run in both]//.scenario3 and in my meta filter i use metaFilters metaFilter*-env QA*/metaFilter /metaFilters With these i get following exceptions [logs attached] *(BeforeStories)* *[INFO] Running story org/test/sample/stories/my.story* *(org/test/sample/stories/my.story)* *Scenario: this scenario should run in SIT* *Given I am a SIT step* *Scenario: this scenario should run in QA* *[WARNING] Failed to run story org/test/sample/stories/my.story* *org.jbehave.core.failures.UUIDExceptionWrapper: java.lang.NullPointerException* * at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:366)* * at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:238)* * at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:217)* * at java.util.concurrent.FutureTask.run(FutureTask.java:262)* * at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* * at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* * at java.lang.Thread.run(Thread.java:745)* Can anyone explain me whats wrong or how can i achieve this including excluding scenario based on tags ? Thanks Ajay [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building JBehave Stories 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ metatags --- [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] Copying 1 resource [INFO] [INFO] --- jbehave-maven-plugin:4.0-beta-8:unpack-view-resources (unpack-view-resources) @ metatags --- [INFO] Unpacked c:\maven\repository\org\jbehave\site\jbehave-site-resources\3.1.1\jbehave-site-resources-3.1.1.zip to C:\Users\dsoxajay\Desktop\metatags\target\jbehave\view [INFO] Unpacked c:\maven\repository\org\jbehave\jbehave-core\4.0-beta-8\jbehave-core-4.0-beta-8-resources.zip to C:\Users\dsoxajay\Desktop\metatags\target\jbehave\view [INFO] [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ metatags --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ metatags --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\dsoxajay\Desktop\metatags\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ metatags --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ metatags --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ metatags --- [INFO] Building jar: C:\Users\dsoxajay\Desktop\metatags\target\metatags-1.0-SNAPSHOT.jar [INFO] [INFO] --- jbehave-maven-plugin:4.0-beta-8:run-stories-as-embeddables (embeddable-stories) @ metatags --- [INFO] Running stories as embeddables using embedder Embedder[storyMapper=StoryMapper,storyRunner=null,embedderMonitor=MavenEmbedderMonitor,classLoader=EmbedderClassLoader[urls=[/C:/Users/dsoxajay/Desktop/metatags/target/classes/, jbehave-core-4.0-beta-8.jar, junit-4.11.jar, hamcrest-core-1.3.jar, hamcrest-library-1.3.jar, hamcrest-integration-1.3.jar, commons-collections-3.2.1.jar, commons-io-2.4.jar, commons-lang-2.6.jar, plexus-utils-3.0.10.jar, freemarker-2.3.20.jar, paranamer-2.4.jar, xstream-1.4.5.jar, xmlpull-1.1.3.1.jar, xpp3_min-1.1.4c.jar],parent=ClassRealm[pluginorg.jbehave:jbehave-maven-plugin:4.0-beta-8, parent: sun.misc.Launcher$AppClassLoader@7b76fb04]],embedderControls=UnmodifiableEmbedderControls[EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=true,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs=300,failOnStoryTimeout=false,threads=1]],embedderFailureStrategy=null,configuration=org.jbehave.core.configuration.MostUsefulConfiguration@44732a9e,candidateSteps=null,stepsFactory=null,metaFilters=[-env QA],systemProperties=null,executorService=null,executorServiceCreated=false,performableTree=PerformableTree,storyManager=null] [INFO] Found class names: [org.test.sample.MyStories] [INFO] Using controls