Hi,

by default it should fail the build if you get failures. How are you running the Maven build?

Can you provide a runnable example of the maven build?

Thanks

On 13/01/2016 08:07, igal epshtein wrote:
Hi ,

Some times I've failed steps , but the in the end , I'm getting "success" in maven execution (Build Success)

Do I miss something in my configuration ?

Thanks

_______________________________________________________________________________________

Then confirmation message is shown with default data (FAILED)
And the trade blotter shows next data : EURUSD Sell Base Spot (NOT PERFORMED)
Maven output
[INFO] Reactor Summary:
[INFO] AppiumClient ....................................... SUCCESS [06:06 min] [INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:15 min
[INFO] Finished at: 2016-01-13T08:31:25+02:00
[INFO] Final Memory: 70M/416M
[INFO] ------------------------------------------------------------------------
**
*The jbehave execution file*
**
**
**
package appium.client.test_runners; import 
appium.client.stepsImpl.LogInOut;import 
appium.client.stepsImpl.common.Connectivity;import 
appium.client.stepsImpl.common.Util;import org.apache.commons.lang.StringUtils; 
import org.jbehave.core.configuration.Configuration; import 
org.jbehave.core.configuration.MostUsefulConfiguration; import 
org.jbehave.core.embedder.Embedder; import 
org.jbehave.core.embedder.StoryControls; import 
org.jbehave.core.embedder.StoryTimeouts; import 
org.jbehave.core.io.LoadFromClasspath; import 
org.jbehave.core.junit.JUnitStories; import org.jbehave.core.model.*; import 
org.jbehave.core.reporters.Format; import 
org.jbehave.core.reporters.StoryReporter; import 
org.jbehave.core.reporters.StoryReporterBuilder; import 
org.jbehave.core.steps.InjectableStepsFactory; import 
org.jbehave.core.steps.InstanceStepsFactory; import 
org.jbehave.core.steps.ParameterConverters; import util.PropertiesSingelton; 
import java.text.SimpleDateFormat; import java.util.Arrays; import 
java.util.Date; import java.util.List; import java.util.Map; public abstract 
class GenericScenarioextends JUnitStories {
     //set system time property in order to be appended to the log file static {
         SimpleDateFormat dateFormat =new SimpleDateFormat("dd MMM yyyy - HH:mm:ss"); 
System.setProperty("systemDate" , dateFormat.format(new Date())); }

     public GenericScenario(){
         Embedder embedder = configuredEmbedder(); 
embedder.embedderControls().useStoryTimeouts(PropertiesSingelton.getInstance().getProperty("timeout"));
 embedder.useTimeoutParsers(new MyParser()); 
embedder.configuration().useParameterConverters(
                 configuration().parameterConverters().addConverters(
                         new ParameterConverters.EnumConverter())); //adding skip support 
configuredEmbedder().useMetaFilters(Arrays.asList("-skip")); }
     public class MyParserimplements StoryTimeouts.TimeoutParser{
         public boolean isValid(String timeout) {
             return timeout.matches("(\\d+)sec"); }

         public long asSeconds(String timeout) {
             return Long.parseLong(StringUtils.substringBefore(timeout, 
"sec")); }
     }

     @Override public Configurationconfiguration(){
         return new MostUsefulConfiguration().useStoryLoader(
                     new LoadFromClasspath(this.getClass()))
                 .useStoryReporterBuilder(storyReporter.withDefaultFormats()
                         .withFormats(Format.TXT , Format.CONSOLE )
                         .withReporters(new MyStoryReporter()))
                 .useStoryControls(new 
StoryControls().doSkipScenariosAfterFailure(true)); }


     StoryReporterBuilderstoryReporter =new StoryReporterBuilder() {
/** * The builder is configured to build with the * StoryReporterBuilder.Format.STATS as default format. To change * the default formats the user can override the method: */ @Override public StoryReporterBuilderwithDefaultFormats() {
             return withFormats(Format.CONSOLE); }
     }; @Override public InjectableStepsFactorystepsFactory(){
         return new InstanceStepsFactory(configuration(), new Util(),new 
Connectivity(), new LogInOut()); }

     @Override protected abstract List<String>storyPaths(); }
--
You received this message because you are subscribed to the Google Groups "JBehave User" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. To view this discussion on the web, visit https://groups.google.com/d/msgid/jbehave-user/0644dba2-357c-47e1-a0ac-e2d4f707da03%40googlegroups.com <https://groups.google.com/d/msgid/jbehave-user/0644dba2-357c-47e1-a0ac-e2d4f707da03%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "JBehave 
User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/56967928.2020007%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to