Re: [jbehave-user] Result report with css files and images, how to do?
Thank you Alex! It worked now. I had forgot to add the jbehave-site-resources dependency. But I get this XML error in Eclipse: Plugin execution not covered by lifecycle configuration: org.jbehave:jbehave-maven-plugin:4.0-beta-3:unpack- view-resources (execution: unpack-view-resources, phase: process-resources) I tried it with different versions of jbehave-maven-plugin, still I get that error message displayed in the XML editor and in the problem view. Why is that? It works, but it does not look good if Eclipse shows 1 error in the POM XML file. By the way, I have found no documentation on this on the JBehave site. 2013/10/5 Alex Filatau fila...@gmail.com I might be missing the question, but that's what working for me out of the box, by deploying jbehave with maven artifact. You need following dependency: dependency groupIdorg.jbehave.site/groupId artifactIdjbehave-site-resources/artifactId version${jbehave.site.version}/version typezip/type /dependency And then you need for your jbehave-maven-plugin add following execution: execution idunpack-view-resources/id phaseprocess-resources/phase goals goalunpack-view-resources/goal /goals /execution That's it. It results in target/jbehave directory to get images and css etc in my case. Or were you asking about customization of all this? Regards, Alex Filatau. On Fri, Oct 4, 2013 at 7:54 AM, Hans Schwäbli bugs.need.love@gmail.com wrote: The test result report of JBehave are HTML files. Unfortunately the referenced images and CSS file is not present in the target folder. I spend quite some time figuring out how to add these resources by some Maven configuration, but I could not get it working. Is there a small example for dummies showing how to do it? Please with no parents, really simple POM file or snippet please.
Re: [jbehave-user] Result report with css files and images, how to do?
http://wiki.eclipse.org/M2E_plugin_execution_not_covered On 07/10/2013 08:28, Hans Schwäbli wrote: Thank you Alex! It worked now. I had forgot to add the jbehave-site-resources dependency. But I get this XML error in Eclipse: Plugin execution not covered by lifecycle configuration: org.jbehave:jbehave-maven-plugin:4.0-beta-3:unpack- view-resources (execution: unpack-view-resources, phase: process-resources) I tried it with different versions of jbehave-maven-plugin, still I get that error message displayed in the XML editor and in the problem view. Why is that? It works, but it does not look good if Eclipse shows 1 error in the POM XML file. By the way, I have found no documentation on this on the JBehave site. 2013/10/5 Alex Filatau fila...@gmail.com mailto:fila...@gmail.com I might be missing the question, but that's what working for me out of the box, by deploying jbehave with maven artifact. You need following dependency: dependency groupIdorg.jbehave.site/groupId artifactIdjbehave-site-resources/artifactId version${jbehave.site.version}/version typezip/type /dependency And then you need for your jbehave-maven-plugin add following execution: execution idunpack-view-resources/id phaseprocess-resources/phase goals goalunpack-view-resources/goal /goals /execution That's it. It results in target/jbehave directory to get images and css etc in my case. Or were you asking about customization of all this? Regards, Alex Filatau. On Fri, Oct 4, 2013 at 7:54 AM, Hans Schwäbli bugs.need.love@gmail.com mailto:bugs.need.love@gmail.com wrote: The test result report of JBehave are HTML files. Unfortunately the referenced images and CSS file is not present in the target folder. I spend quite some time figuring out how to add these resources by some Maven configuration, but I could not get it working. Is there a small example for dummies showing how to do it? Please with no parents, really simple POM file or snippet please.
[jbehave-user] Re: StepMonitor not displayed anymore
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 bugs.need.love@gmail.com 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 ListString storyPaths() { ListString storyPaths = new ArrayList(); storyPaths.add(stories/login.story); return storyPaths; } }
Re: [jbehave-user] Result report with css files and images, how to do?
Thank you, this worked. 2013/10/7 Mauro Talevi mauro.tal...@aquilonia.org http://wiki.eclipse.org/M2E_plugin_execution_not_covered On 07/10/2013 08:28, Hans Schwäbli wrote: Thank you Alex! It worked now. I had forgot to add the jbehave-site-resources dependency. But I get this XML error in Eclipse: Plugin execution not covered by lifecycle configuration: org.jbehave:jbehave-maven-plugin:4.0-beta-3:unpack- view-resources (execution: unpack-view-resources, phase: process-resources) I tried it with different versions of jbehave-maven-plugin, still I get that error message displayed in the XML editor and in the problem view. Why is that? It works, but it does not look good if Eclipse shows 1 error in the POM XML file. By the way, I have found no documentation on this on the JBehave site. 2013/10/5 Alex Filatau fila...@gmail.com I might be missing the question, but that's what working for me out of the box, by deploying jbehave with maven artifact. You need following dependency: dependency groupIdorg.jbehave.site/groupId artifactIdjbehave-site-resources/artifactId version${jbehave.site.version}/version typezip/type /dependency And then you need for your jbehave-maven-plugin add following execution: execution idunpack-view-resources/id phaseprocess-resources/phase goals goalunpack-view-resources/goal /goals /execution That's it. It results in target/jbehave directory to get images and css etc in my case. Or were you asking about customization of all this? Regards, Alex Filatau. On Fri, Oct 4, 2013 at 7:54 AM, Hans Schwäbli bugs.need.love@gmail.com wrote: The test result report of JBehave are HTML files. Unfortunately the referenced images and CSS file is not present in the target folder. I spend quite some time figuring out how to add these resources by some Maven configuration, but I could not get it working. Is there a small example for dummies showing how to do it? Please with no parents, really simple POM file or snippet please.
Re: [jbehave-user] Story language settings improvement suggestion
I created now a JIRA issue for this: https://jira.codehaus.org/browse/JBEHAVE-945 2013/10/5 Mauro Talevi mauro.tal...@aquilonia.org or good suggestions on how to achieve the goal. The problem is striking a balance between flexibility and configurability. We don't like setter and static injection. We prefer CDI. The issue here is how to make this easier to configure and what is the sensible default. We could make the language default to the platform locale, for example, instead of the English locale. Please raise a JIRA issue for this. Cheers On 04/10/2013 14:49, Cristiano Gavião wrote: good code contributions are always welcomed ! 2013/10/4 Hans Schwäbli bugs.need.love@gmail.com I tried to use JBehave with German language. Then I discovered that you have to configure a lot to achieve this. This is because you have to create a Keywords object and set it into many other objects. See http://jbehave.org/reference/stable/stories-in-your-language.html If you forget to set the Keyword object into one of the other objects, then it does not work correctly, tests fail. Or if JBehave is changed in a future version, your language configuration might not work anymore. Furthermore you need to configure that in the Eclipse plugin. I think this could be made much simpler. Can you make setting a language simpler please (suggestion)? The Eclipse plugin could detect the language of the story files automatically by default for instance. And there could be made a JBehave utility method (and maintained in the JBehave Core project) which sets the language into all required objects. Or it could even auto-detect the language (according to the translations shipped which JBehave) by default. This is just a suggestion. -- Tudo vale a pena se a alma não é pequena...
Re: [jbehave-user] Story language settings improvement suggestion
2013/10/5 Mauro Talevi mauro.tal...@aquilonia.org We could make the language default to the platform locale, for example, instead of the English locale. No, please don't do that. This would mean that an identical setup would run on a developer PC and stops working on the CI environment, since the developer PC might run on a different locale than the integration environment. -- Mit freundlichen Grüßen / Best regards Andreas Ebbert-Karroum | Agile Principal Consultant codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0) 175.2664109 www.codecentric.de | blog.codecentric.de | www.meettheexperts.de | www.more4fi.de Sitz der Gesellschaft: Düsseldorf | HRB 63043 Vorstand: Klaus Jäger (Vorsitzender) . Michael Hochgürtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen Schütz Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.