Re: [jbehave-dev] problems with extending JBehave
Hi, the methods are private because they are internal and not meant to be an API. Can you explain what you're trying to do? Cheers On 7 Nov 2014, at 11:35, Willemijn Wouters wouters.willemij...@gmail.com wrote: Hello, I work on a opensource project called Unitils and at the moment we are working on a project called unitils-jbehave. Unitils-jbehave is the glue between Unitils JBehave. But we have had some difficulties because of the fact that so many things are private. Is it possible to put the following things on 'protected'? The following methods of org.jbehave.core.steps.Steps: o org.jbehave.core.steps.Steps.scenarioStepsHaving(ScenarioType, Stage, Class? extends Annotation, Outcome...) o org.jbehave.core.steps.Steps.createBeforeOrAfterStep(Stage, Method) o org.jbehave.core.steps.Steps.createBeforeOrAfterStep(Stage, Method) o org.jbehave.core.steps.Steps.scenarioOutcome(Method, Class? extends Annotation) o org.jbehave.core.steps.Steps.createCandidate(Method, StepType, String, int, Configuration) The following methods in org.jbehave.core.steps.InstanceStepsFactory: org.jbehave.core.steps.AbstractStepsFactory.methodReturningConverters(Class?) The following classes/methods in org.jbehave.core.steps.StepCreator: o all the inner classes o org.unitils.jbehave.core.stepcreator.UnitilsStepCreator.StepCreatorBeforeOrAfterStep.paramConvertersWithExceptionInjector(UUIDExceptionWrapper) Thanks.
[jbehave-dev] [jira] (JBEHAVE-1053) Allow entire story to be restarted
Title: Message Title Mauro Talevi commented on an issue Re: Allow entire story to be restarted Thanks for the contribution! I'll have a look at it soon. As for the multi-threading reporting, it should get reported by the invokeDelayed() method in the ConcurrentReporter. Add Comment JBehave / JBEHAVE-1053 Allow entire story to be restarted For selenium tests that keep the same browser / context throughout the story, there are countless things that can go wrong such as network latency, slow application, etc. Since a false positive can cause people to quickly lose trust in the tests, others advised that the story should restart x amount of times before failing the test. There is a way to... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1051) The method StoryManager.waitUntilAllDoneOrFailed(BatchFailures) can cancel un-started stories
Title: Message Title Mauro Talevi commented on an issue Re: The method StoryManager.waitUntilAllDoneOrFailed(BatchFailures) can cancel un-started stories You mean before the loop over the RunningStory collection, and not after? You think that 100ms would make such a difference? Add Comment JBehave / JBEHAVE-1051 The method StoryManager.waitUntilAllDoneOrFailed(BatchFailures) can cancel un-started stories I run several stories in parallel using the default multi-threaded Embedder.executorService and configure it with EmbedderControls.threads 1 Sometimes the JBEHAVE ends and no scenario (but before- and after- scenario) of my stories was even started. It is not repeatable, sometims it goes good. I founded out, that the method StoryManager.waitUntilAllDo... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1052) Upgrade Selenium version
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1052 Upgrade Selenium version Change By: Mauro Talevi Affects Version/s: web-3.5.5 Fix Version/s: web-3.6 Summary: JbehavesupportsfornewMozilla UpgradeSelenium version Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1052) Upgrade Selenium version
Title: Message Title Mauro Talevi commented on an issue Re: Upgrade Selenium version Please note you can always upgrade the selenium version via the Maven dependencyManagement/ section. Add Comment JBehave / JBEHAVE-1052 Upgrade Selenium version I am using Jbehave web 3.5.5 with Selenium 3.26.0 which in turn support till Mozilla v16. Could you please upgrade Jbehave web to support latest selenium webdriver and Mozilla versions. This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType
Versions 3.9.5 and 4.0-beta-11 are released and synched to Maven Central. On 02/10/2014 08:16, Matthieu Mestrez wrote: Nice ! You fixed it that fast ! Thanks for that. Do you know when i can expect a release ? 2014-10-01 10:15 GMT+02:00 Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com: Thanks for the follow-up I've created a Jira issue here : https://jira.codehaus.org/browse/JBEHAVE-1049 2014-10-01 1:02 GMT+02:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Yes, there is a problem but not in the converter. Rather, the StepCreator tries to use the parameter types instead of the generic parameter types. Could you please raise a Jira issue for this? Cheers On 30/09/2014 15:19, Matthieu Mestrez wrote: Since i'm behind a proxy at work i can only give you a zip file to work with by this way : http://www.filedropper.com/meta-string-list 2014-09-30 15:52 GMT+02:00 Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com: Since i'm behind a proxy at work i can only give you a zip file to work with by this way : http://www.filedropper.com/meta-string-list Or attached here, not sure it will work through a mailing list though : 2014-09-30 15:00 GMT+02:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Could you provide a sample project that reproduces the desired behaviour? On 30 Sep 2014, at 13:01, Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com wrote: Hello, I've been trying to make use of a list of strings in a Meta in this context : Scenario: 1. First Case Meta : @Dataset firstDataset.xml, secondDataset.xml Given ... When .. Then ... And in the @BeforeScenario public void initializeDataset(@Named(Dataset) ListString dbUnitFiles) { ... } The scenario fails because org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed: No parameter converter for interface java.util.List' If i debug, he passes through the StringListConverter, but in the accept method the type is not an instance of ParameterizedType, because in the StepCreator class you use method.getParameterTypes() that doesn't retrieve de generics but the Class type (so java.util.List) I think that you should use for that Parameter class the Type and not the Class Or maybe i've made a mistake somewhere - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com
[jbehave-dev] [jira] (JBEHAVE-1050) Last of two subsequent AND-clauses with translated keywords is not performed
Title: Message Title Mauro Talevi resolved an issue as Not A Bug You had two misconfigurations: 1. The i18n/keywords_ru.properties was not in the Maven classpath, masked by the (unnecessary) override of the resources 2. The StepCollector also needs to know about the keywords used. Please refer to the attached patch for a working version. PS: Note that JBehave is not yet tested with JDK 1.8. It should work but I've tested with 1.7. JBehave / JBEHAVE-1050 Last of two subsequent AND-clauses with translated keywords is not performed Change By: Mauro Talevi Resolution: NotABug Fix Version/s: 3.9.5 Assignee: MauroTalevi Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c
[jbehave-scm] [scm-core/jbehave-4.x][1/1] Updated release notes.
commit bace2c3017582f989dcd09d185f4c845d831180b Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sun, 5 Oct 2014 11:58:40 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sun, 5 Oct 2014 11:59:18 +0200 Updated release notes. diff --git a/distribution/src/site/content/release-notes.html b/distribution/src/site/content/release-notes.html index c38985c..f9727cc 100755 --- a/distribution/src/site/content/release-notes.html +++ b/distribution/src/site/content/release-notes.html @@ -5,6 +5,29 @@ /head body +h1JBehave Core - Version 3.9.5 (Oct 4, 2014)/h1 + +h2Bug +/h2 +ul +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1046'JBEHAVE-1046/a] - FailingUponPendingSteps strategy not honoured +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1049'JBEHAVE-1049/a] - StepCreator doesn#39;t support method generics parameters +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1050'JBEHAVE-1050/a] - Last of two subsequent AND-clauses with translated keywords is not performed +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1051'JBEHAVE-1051/a] - The method StoryManager.waitUntilAllDoneOrFailed(BatchFailures) can cancel un-started stories +/li +/ul + +h2Improvement +/h2 +ul +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1045'JBEHAVE-1045/a] - Support for class-based AOP in step classes in Spring +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1048'JBEHAVE-1048/a] - Update toString() to show the system based values +/li +/ul h1JBehave Core - Version 3.9.4 (Aug 24, 2014)/h1
[jbehave-scm] [scm-core/jbehave-3.9.5][1/1] [maven-release-plugin] copy for tag jbehave-3.9.5
Tag:/strong jbehave-3.9.5 (added) Type: annotated Commit: e4c51bb078d44fd7e4338a5137df9e070a47dc46 Tagger: tag_info[:taggername] tag_info[:taggeremail] Message: [maven-release-plugin] copy for tag jbehave-3.9.5
[jbehave-scm] [scm-core/jbehave-4.0-beta-11][1/1] [maven-release-plugin] copy for tag jbehave-4.0-beta-11
Tag:/strong jbehave-4.0-beta-11 (added) Type: annotated Commit: c7052ae46c2477fe8ef8023c0f5334ca4a693051 Tagger: tag_info[:taggername] tag_info[:taggeremail] Message: [maven-release-plugin] copy for tag jbehave-4.0-beta-11
[jbehave-scm] [scm-core][1/1] JBEHAVE-1046: Wait for running stories to start, if any are present.
commit f9f27c82a41c0483b29f3d2b7bafaff7d7cb8042 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sat, 4 Oct 2014 19:18:20 +0100 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sat, 4 Oct 2014 19:18:20 +0100 JBEHAVE-1046: Wait for running stories to start, if any are present. diff --git a/jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java b/jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java index 2414cf7..123084a 100644 --- a/jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java +++ b/jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java @@ -139,11 +139,16 @@ public class StoryManager { } public void waitUntilAllDoneOrFailed(BatchFailures failures) { +if ( runningStories.values().isEmpty() ) { + return; +} boolean allDone = false; -while (!allDone) { +boolean started = false; +while (!allDone || !started) { allDone = true; for (RunningStory runningStory : runningStories.values()) { if ( runningStory.isStarted() ){ + started = true; Story story = runningStory.getStory(); FutureThrowableStory future = runningStory.getFuture(); if (!future.isDone()) { @@ -177,6 +182,8 @@ public class StoryManager { } } } +} else { + started = false; } } tickTock();
[jbehave-dev] [jira] (JBEHAVE-1051) The method StoryManager.waitUntilAllDoneOrFailed(BatchFailures) can cancel un-started stories
Title: Message Title Mauro Talevi resolved an issue as Duplicate Duplicate of JBEHAVE-1046. JBehave / JBEHAVE-1051 The method StoryManager.waitUntilAllDoneOrFailed(BatchFailures) can cancel un-started stories Change By: Mauro Talevi Resolution: Duplicate Fix Version/s: 3.9.5 Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core][1/1] JBEHAVE-1046: Added stories configuration to verify failing behaviour upon pending steps.
commit 3a84a8f8a59973ccf70796278a7ff1d6d2504069 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sun, 5 Oct 2014 00:06:56 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sun, 5 Oct 2014 00:06:56 +0200 JBEHAVE-1046: Added stories configuration to verify failing behaviour upon pending steps. diff --git a/examples/core/src/main/java/org/jbehave/examples/core/CoreStoriesFailingUponPending.java b/examples/core/src/main/java/org/jbehave/examples/core/CoreStoriesFailingUponPending.java new file mode 100644 index 000..b31737c --- /dev/null +++ b/examples/core/src/main/java/org/jbehave/examples/core/CoreStoriesFailingUponPending.java @@ -0,0 +1,26 @@ +package org.jbehave.examples.core; + +import static org.jbehave.core.io.CodeLocations.codeLocationFromClass; + +import java.util.List; + +import org.jbehave.core.configuration.Configuration; +import org.jbehave.core.failures.FailingUponPendingStep; +import org.jbehave.core.io.StoryFinder; + +/** + */ +public class CoreStoriesFailingUponPending extends CoreStories { + + public Configuration configuration() { + return super.configuration() + .usePendingStepStrategy(new FailingUponPendingStep()); + } + +@Override +protected ListString storyPaths() { +String filter = System.getProperty(story.filter, **/pending.story); +return new StoryFinder().findPaths(codeLocationFromClass(this.getClass()), filter, ); +} + +} \ No newline at end of file
[jbehave-dev] [jira] (JBEHAVE-1046) FailingUponPendingSteps strategy not honoured
Title: Message Title Mauro Talevi resolved an issue as Fixed Added examples/core/src/main/java/org/jbehave/examples/core/CoreStoriesFailingUponPending.java to verify behaviour. JBehave / JBEHAVE-1046 FailingUponPendingSteps strategy not honoured Change By: Mauro Talevi Resolution: Fixed Assignee: MauroTalevi Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType
Thank you for reporting the issue and providing the suggested fix. We'll push out a release on the weekend. On 02/10/2014 07:16, Matthieu Mestrez wrote: Nice ! You fixed it that fast ! Thanks for that. Do you know when i can expect a release ? 2014-10-01 10:15 GMT+02:00 Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com: Thanks for the follow-up I've created a Jira issue here : https://jira.codehaus.org/browse/JBEHAVE-1049 2014-10-01 1:02 GMT+02:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Yes, there is a problem but not in the converter. Rather, the StepCreator tries to use the parameter types instead of the generic parameter types. Could you please raise a Jira issue for this? Cheers On 30/09/2014 15:19, Matthieu Mestrez wrote: Since i'm behind a proxy at work i can only give you a zip file to work with by this way : http://www.filedropper.com/meta-string-list 2014-09-30 15:52 GMT+02:00 Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com: Since i'm behind a proxy at work i can only give you a zip file to work with by this way : http://www.filedropper.com/meta-string-list Or attached here, not sure it will work through a mailing list though : 2014-09-30 15:00 GMT+02:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Could you provide a sample project that reproduces the desired behaviour? On 30 Sep 2014, at 13:01, Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com wrote: Hello, I've been trying to make use of a list of strings in a Meta in this context : Scenario: 1. First Case Meta : @Dataset firstDataset.xml, secondDataset.xml Given ... When .. Then ... And in the @BeforeScenario public void initializeDataset(@Named(Dataset) ListString dbUnitFiles) { ... } The scenario fails because org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed: No parameter converter for interface java.util.List' If i debug, he passes through the StringListConverter, but in the accept method the type is not an instance of ParameterizedType, because in the StepCreator class you use method.getParameterTypes() that doesn't retrieve de generics but the Class type (so java.util.List) I think that you should use for that Parameter class the Type and not the Class Or maybe i've made a mistake somewhere - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com
[jbehave-dev] [jira] (JBEHAVE-1049) StepCreator doesn't support method generics parameters
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1049 StepCreator doesn't support method generics parameters Change By: Mauro Talevi Summary: StepCreatordoesn't takeType supportmethodgenerics parameters butClass?ofparameters Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core][1/1] JBEHAVE-1049: Support generic parameter types in StepCreator.
commit e8030b13b05183d1fcb12e1f6a910c10b0e5c2cd Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Wed, 1 Oct 2014 21:10:53 +0100 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Wed, 1 Oct 2014 21:10:53 +0100 JBEHAVE-1049: Support generic parameter types in StepCreator. diff --git a/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java b/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java index bb1171a..f61138d 100755 --- a/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java +++ b/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java @@ -784,14 +784,14 @@ public class StepCreator { private final ParameterConverters parameterConverters; private final Paranamer paranamer; private final Meta meta; -private int methodArity; +private final Type[] parameterTypes; public MethodInvoker(Method method, ParameterConverters parameterConverters, Paranamer paranamer, Meta meta) { this.method = method; this.parameterConverters = parameterConverters; this.paranamer = paranamer; this.meta = meta; -this.methodArity = method.getParameterTypes().length; +this.parameterTypes = method.getGenericParameterTypes(); } public void invoke() throws InvocationTargetException, IllegalAccessException { @@ -799,36 +799,35 @@ public class StepCreator { } private Parameter[] methodParameters() { -Parameter[] parameters = new Parameter[methodArity]; -String[] annotationNamedParameters = annotatedParameterNames(method); -String[] parameterNames = paranamer.lookupParameterNames(method, false); -Class?[] parameterTypes = method.getParameterTypes(); +Parameter[] parameters = new Parameter[parameterTypes.length]; +String[] annotatedNames = annotatedParameterNames(method); +String[] paranamerNames = paranamer.lookupParameterNames(method, false); -for (int paramPosition = 0; paramPosition methodArity; paramPosition++) { -String paramName = parameterNameFor(paramPosition, annotationNamedParameters, parameterNames); -parameters[paramPosition] = new Parameter(paramPosition, parameterTypes[paramPosition], paramName); +for (int position = 0; position parameterTypes.length; position++) { +String name = parameterNameFor(position, annotatedNames, paranamerNames); +parameters[position] = new Parameter(position, parameterTypes[position], name); } return parameters; } -private String parameterNameFor(int paramPosition, String[] annotationNamedParameters, String[] parameterNames) { -String nameFromAnnotation = nameIfValidPositionInArray(annotationNamedParameters, paramPosition); -String parameterName = nameIfValidPositionInArray(parameterNames, paramPosition); -if (nameFromAnnotation != null) { -return nameFromAnnotation; -} else if (parameterName != null) { -return parameterName; +private String parameterNameFor(int position, String[] annotatedNames, String[] paranamerNames) { +String annotatedName = nameByPosition(annotatedNames, position); +String paranamerName = nameByPosition(paranamerNames, position); +if (annotatedName != null) { +return annotatedName; +} else if (paranamerName != null) { +return paranamerName; } return null; } -private String nameIfValidPositionInArray(String[] paramNames, int paramPosition) { -return paramPosition paramNames.length ? paramNames[paramPosition] : null; +private String nameByPosition(String[] names, int position) { +return position names.length ? names[position] : null; } private Object[] parameterValuesFrom(Meta meta) { -Object[] values = new Object[methodArity]; +Object[] values = new Object[parameterTypes.length]; for (Parameter parameter : methodParameters()) { values[parameter.position] = parameterConverters.convert(parameter.valueFrom(meta), parameter.type); } @@ -837,10 +836,10 @@ public class StepCreator { private class Parameter { private final int position; -private final Class? type; +private final Type type; private final String name; -public Parameter(int position, Class? type, String name) { +public Parameter(int position, Type type, String name) { this.position = position; this.type = type; this.name = name;
[jbehave-dev] [jira] (JBEHAVE-1049) StepCreator doesn't support method generics parameters
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1049 StepCreator doesn't support method generics parameters Change By: Mauro Talevi Resolution: Fixed Assignee: MauroTalevi Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core/jbehave-4.x][1/1] JBEHAVE-1049: Support generic parameter types in StepCreator.
commit ba6ad54984c91ff7ab1b53a862c60d6233f6078e Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Wed, 1 Oct 2014 21:10:53 +0100 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Wed, 1 Oct 2014 21:15:12 +0100 JBEHAVE-1049: Support generic parameter types in StepCreator. diff --git a/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java b/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java index ba6aa89..db76ef7 100755 --- a/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java +++ b/jbehave-core/src/main/java/org/jbehave/core/steps/StepCreator.java @@ -787,14 +787,14 @@ public class StepCreator { private final ParameterConverters parameterConverters; private final Paranamer paranamer; private final Meta meta; -private int methodArity; +private final Type[] parameterTypes; public MethodInvoker(Method method, ParameterConverters parameterConverters, Paranamer paranamer, Meta meta) { this.method = method; this.parameterConverters = parameterConverters; this.paranamer = paranamer; this.meta = meta; -this.methodArity = method.getParameterTypes().length; +this.parameterTypes = method.getGenericParameterTypes(); } public void invoke() throws InvocationTargetException, IllegalAccessException { @@ -802,36 +802,35 @@ public class StepCreator { } private Parameter[] methodParameters() { -Parameter[] parameters = new Parameter[methodArity]; -String[] annotationNamedParameters = annotatedParameterNames(method); -String[] parameterNames = paranamer.lookupParameterNames(method, false); -Class?[] parameterTypes = method.getParameterTypes(); +Parameter[] parameters = new Parameter[parameterTypes.length]; +String[] annotatedNames = annotatedParameterNames(method); +String[] paranamerNames = paranamer.lookupParameterNames(method, false); -for (int paramPosition = 0; paramPosition methodArity; paramPosition++) { -String paramName = parameterNameFor(paramPosition, annotationNamedParameters, parameterNames); -parameters[paramPosition] = new Parameter(paramPosition, parameterTypes[paramPosition], paramName); +for (int position = 0; position parameterTypes.length; position++) { +String name = parameterNameFor(position, annotatedNames, paranamerNames); +parameters[position] = new Parameter(position, parameterTypes[position], name); } return parameters; } -private String parameterNameFor(int paramPosition, String[] annotationNamedParameters, String[] parameterNames) { -String nameFromAnnotation = nameIfValidPositionInArray(annotationNamedParameters, paramPosition); -String parameterName = nameIfValidPositionInArray(parameterNames, paramPosition); -if (nameFromAnnotation != null) { -return nameFromAnnotation; -} else if (parameterName != null) { -return parameterName; +private String parameterNameFor(int position, String[] annotatedNames, String[] paranamerNames) { +String annotatedName = nameByPosition(annotatedNames, position); +String paranamerName = nameByPosition(paranamerNames, position); +if (annotatedName != null) { +return annotatedName; +} else if (paranamerName != null) { +return paranamerName; } return null; } -private String nameIfValidPositionInArray(String[] paramNames, int paramPosition) { -return paramPosition paramNames.length ? paramNames[paramPosition] : null; +private String nameByPosition(String[] names, int position) { +return position names.length ? names[position] : null; } private Object[] parameterValuesFrom(Meta meta) { -Object[] values = new Object[methodArity]; +Object[] values = new Object[parameterTypes.length]; for (Parameter parameter : methodParameters()) { values[parameter.position] = parameterConverters.convert(parameter.valueFrom(meta), parameter.type); } @@ -840,10 +839,10 @@ public class StepCreator { private class Parameter { private final int position; -private final Class? type; +private final Type type; private final String name; -public Parameter(int position, Class? type, String name) { +public Parameter(int position, Type type, String name) { this.position = position; this.type = type; this.name = name;
Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType
ParameterConverter#accept(Type) method supports generics. Which version of JBehave are you on? On 30 Sep 2014, at 13:01, Matthieu Mestrez mestrez.matth...@gmail.com wrote: Hello, I've been trying to make use of a list of strings in a Meta in this context : Scenario: 1. First Case Meta : @Dataset firstDataset.xml, secondDataset.xml Given ... When .. Then ... And in the @BeforeScenario public void initializeDataset(@Named(Dataset) ListString dbUnitFiles) { ... } The scenario fails because org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed: No parameter converter for interface java.util.List' If i debug, he passes through the StringListConverter, but in the accept method the type is not an instance of ParameterizedType, because in the StepCreator class you use method.getParameterTypes() that doesn't retrieve de generics but the Class type (so java.util.List) I think that you should use for that Parameter class the Type and not the Class Or maybe i've made a mistake somewhere - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType
Could you provide a sample project that reproduces the desired behaviour? On 30 Sep 2014, at 13:01, Matthieu Mestrez mestrez.matth...@gmail.com wrote: Hello, I've been trying to make use of a list of strings in a Meta in this context : Scenario: 1. First Case Meta : @Dataset firstDataset.xml, secondDataset.xml Given ... When .. Then ... And in the @BeforeScenario public void initializeDataset(@Named(Dataset) ListString dbUnitFiles) { ... } The scenario fails because org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed: No parameter converter for interface java.util.List' If i debug, he passes through the StringListConverter, but in the accept method the type is not an instance of ParameterizedType, because in the StepCreator class you use method.getParameterTypes() that doesn't retrieve de generics but the Class type (so java.util.List) I think that you should use for that Parameter class the Type and not the Class Or maybe i've made a mistake somewhere - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType
Yes, there is a problem but not in the converter. Rather, the StepCreator tries to use the parameter types instead of the generic parameter types. Could you please raise a Jira issue for this? Cheers On 30/09/2014 15:19, Matthieu Mestrez wrote: Since i'm behind a proxy at work i can only give you a zip file to work with by this way : http://www.filedropper.com/meta-string-list 2014-09-30 15:52 GMT+02:00 Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com: Since i'm behind a proxy at work i can only give you a zip file to work with by this way : http://www.filedropper.com/meta-string-list Or attached here, not sure it will work through a mailing list though : 2014-09-30 15:00 GMT+02:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Could you provide a sample project that reproduces the desired behaviour? On 30 Sep 2014, at 13:01, Matthieu Mestrez mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com wrote: Hello, I've been trying to make use of a list of strings in a Meta in this context : Scenario: 1. First Case Meta : @Dataset firstDataset.xml, secondDataset.xml Given ... When .. Then ... And in the @BeforeScenario public void initializeDataset(@Named(Dataset) ListString dbUnitFiles) { ... } The scenario fails because org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed: No parameter converter for interface java.util.List' If i debug, he passes through the StringListConverter, but in the accept method the type is not an instance of ParameterizedType, because in the StepCreator class you use method.getParameterTypes() that doesn't retrieve de generics but the Class type (so java.util.List) I think that you should use for that Parameter class the Type and not the Class Or maybe i've made a mistake somewhere - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com -- Mestrez Matthieu avenue Jolé 11 1160 Auderghem GSM : 0494/77.26.87 e-mail : mestrez.matth...@gmail.com mailto:mestrez.matth...@gmail.com
[jbehave-dev] [jira] (JBEHAVE-1048) Update toString() to show the system based values
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1048 Update toString() to show the system based values Change By: Mauro Talevi Fix Version/s: 4.x Fix Version/s: 3.9.5 Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1048) Update toString() to show the system based values
Title: Message Title Mauro Talevi resolved an issue as Fixed Pulled with thanks JBehave / JBEHAVE-1048 Update toString() to show the system based values Change By: Mauro Talevi Resolution: Fixed Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] Step Class Instance Reuse?
That depends how you configure your steps factory ... Sanity dictates that you ensure that the steps instances are unique (e.g. using the singleton mode of the dependency injection containers). Assuming this is true, then yes, the steps will always be executed from the same methods in the same class. Are you experiencing anything that may contradict this behaviour? On 07/09/2014 14:46, Anders wrote: Message Title Is it guaranteed that steps implemented in the same class will reuse the same step class instances when executed within the same scenario? Example: Scenario: My scenario Given step 1 When step 2 Then step 3 And step 4 Let’s say that step 1 and 2 are implemented in class A, and step 3 and 4 are implemented in class B. When this scenario is run, is it guaranteed that step 1 and 2 will be executed in the same instance of class A, and step 3 and 4 will be executed in the same instance of class B?
[jbehave-dev] [jira] (JBEHAVE-1046) FailingUponPendingSteps strategy not honoured
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1046 FailingUponPendingSteps strategy not honoured Change By: Mauro Talevi Fix Version/s: 3.9.5 Summary: JBehaveexitsimmaturely FailingUponPendingStepsstrategynothonoured Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] Step Class Instance Reuse?
The simplest and most important of reasons is that JBehave and other BDD frameworks are not unit-testing frameworks. They are used for integration testing which by its nature is fundamentally different from unit testing. For one thing, it spans multiple methods and classes, while each unit test corresponds to a single method. On 07/09/2014 22:28, Chad Wilson wrote: I was quite confused by how jbehave and other bdd frameworks handle instantiation. Having familiarity with unit testing frameworks, I came in with the expectation that steps classes would be handled like classes in JUnit, one instance per method with instantiation handled by the framework. Is there a particular reason for deviating from this pattern other than the complexity it would require for the framework to do instantiation? Chad On 9/7/2014 12:20 PM, Mauro Talevi wrote: The steps classes are instantiated only once per run context, i.e. for the set of stories. The same steps classes are reused for all scenarios. A context object is the recommended way to hold state in a scenario, and you'd use a thread local if you are in multi-threading mode. If you need to reset the state before or after each scenario, you can do so via the @BeforeScenario and @AfterScenario annotations, or using the Lifecycle steps in your story. If you have a specific use case in mind, feel free to share it. On 07/09/2014 15:26, Anders wrote: Message Title No, no problem seen, and thanks for the quick reply. The reason I ask is just to know if the state of the steps class instance is guaranteed to be available during the whole scenario. We normally use a thread local singleton context manager to hold the state of the scenario (cleared before each scenario is executed) in order to have the scenario state available to all step implementations executing in the same thread. But sometimes it is just cleaner, I think, to store state locally in fields in the step implementation class, as long as all the steps that need the info are located in the same class. Also, then I assume that the step class instances may be pooled and reused after a scenario has finished? If so, we have to be careful to not let the state leak over to the next scenario that happens to use that same instance. Or are steps class instances always recreated for each scenario execution? I’ll have to dig into our JBehave configuration a bit more to learn how this can be set up in our case. *From:*Mauro Talevi [mailto:mauro.tal...@aquilonia.org] *Sent:* den 7 september 2014 14:52 *To:* dev@jbehave.codehaus.org mailto:dev@jbehave.codehaus.org *Subject:* Re: [jbehave-dev] Step Class Instance Reuse? That depends how you configure your steps factory ... Sanity dictates that you ensure that the steps instances are unique (e.g. using the singleton mode of the dependency injection containers). Assuming this is true, then yes, the steps will always be executed from the same methods in the same class. Are you experiencing anything that may contradict this behaviour? On 07/09/2014 14:46, Anders wrote: Is it guaranteed that steps implemented in the same class will reuse the same step class instances when executed within the same scenario? Example: Scenario: My scenario Given step 1 When step 2 Then step 3 And step 4 Let’s say that step 1 and 2 are implemented in class A, and step 3 and 4 are implemented in class B. When this scenario is run, is it guaranteed that step 1 and 2 will be executed in the same instance of class A, and step 3 and 4 will be executed in the same instance of class B? - 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
[jbehave-dev] [jira] (JBEHAVE-1045) Support for class-based AOP in step classes in Spring
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1045 Support for class-based AOP in step classes in Spring Change By: Mauro Talevi Affects Version/s: 4.0 Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1045) Support for class-based AOP in step classes in Spring
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1045 Support for class-based AOP in step classes in Spring Change By: Mauro Talevi Resolution: Fixed Fix Version/s: 3.9.5 Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1045) Support for class-based AOP in step classes in Spring
Title: Message Title Mauro Talevi commented on an issue Re: Support for class-based AOP in step classes in Spring Thanks for the pull request. It looks good at first sight. Will try to pull shortly. As for the test, you are right that it should not rely on the order. Add Comment JBehave / JBEHAVE-1045 Support for class-based AOP in step classes in Spring When I add @EnableAspectJAutoProxy in my spring setup, with the bundled steps factory, my step beans can't be found. I've done my own steps factory... it assumes the use of a specific type annotation on the step classes, to make it more clear which beans to explore, but that can be removed in a more general case. Here it's how it looks like (WIP): ... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1046) JBehave exits immaturely
Title: Message Title Mauro Talevi commented on an issue Re: JBehave exits immaturely Can you please provide an example of running stories not being started? The assumption is that at least one story has started. Otherwise, we can add a wait for at least one to start. Add Comment JBehave / JBEHAVE-1046 JBehave exits immaturely When I run a story, JBehave exits without waiting for the story results. The same stories work perfectly in version 3.9.3. This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1045) Support for class-based AOP in step classes in Spring
Title: Message Title Mauro Talevi commented on an issue Re: Support for class-based AOP in step classes in Spring Please raise a different issue for the proxy behaviour Add Comment JBehave / JBEHAVE-1045 Support for class-based AOP in step classes in Spring When I add @EnableAspectJAutoProxy in my spring setup, with the bundled steps factory, my step beans can't be found. I've done my own steps factory... it assumes the use of a specific type annotation on the step classes, to make it more clear which beans to explore, but that can be removed in a more general case. Here it's how it looks like (WIP): ... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1045) Support for class-based AOP in step classes in Spring
Title: Message Title Mauro Talevi commented on an issue Re: Support for class-based AOP in step classes in Spring Just be aware that you should not rely on any custom bean annotation. All the beans in the context should be considered that have JBehave-annotated methods. So you should start from the method @Override protected ListClass? stepsTypes() { ListClass? types = new ArrayListClass?(); for (String name : context.getBeanDefinitionNames()) { Class? type = context.getType(name); if (isAllowed(type) hasAnnotatedMethods(type)) { types.add(type); } } return types; } Add Comment JBehave / JBEHAVE-1045 Support for class-based AOP in step classes in Spring When I add @EnableAspectJAutoProxy in my spring setup, with the bundled steps factory, my step beans can't be found. I've done my own steps factory... it assumes the use of a specific type annotation on the step classes, to make it more clear which beans to explore, but that can be removed in a more general case. Here it's how it looks like (WIP): ... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c
Re: [jbehave-dev] Blocking problem with JBehave eclipse plugin and large project (1900 testcases)
What is a testcase for you? How many steps classes do you have? You can add a debug logger level via the JBehave Preferences to see where the bottleneck is. BTW, Have you tried increasing the memory? On 1 Sep 2014, at 17:49, Anders codeh...@aek.se wrote: The problem is that Eclipse becomes very slow and often hangs with a greyed out unresponsive GUI after that a story file or a step implementation file (Java file with Given/When/Then annotations) is edited. It is enough to type a few letters, no save required, for the unresponsiveness to start. We are using 32 bit Windows 7 for all developer work. (yes, it is just ridiculous that we are not allowed to use a 64 bit developer environment, so this is what we have to work with) Attached is a simple project that demonstrates the problem. Load this project up using Eclipse with the latest JBehave plugin, run the story generator, and then try to edit any story file or step implementation class, and enjoy the lag. Simply run the class GenerateStories to regenerate the stories and step implementation files. After this, refresh the project and it now contains 100 generated story files, each containing 10 scenarios with three steps each, and 100 step implementation classes / java files. The number of stories, scenarios and step implementation classes to be generated can be configured by changing the values of the constants below: public class GenerateStories { private final static String OUTPUT_PATH = src/main/java/jbehave/stress; private final static String STORIES_OUTPUT_PATH = OUTPUT_PATH + /usecases; private final static String STEPS_OUTPUT_PATH = OUTPUT_PATH + /stepimpl; private final static int NUMBER_OF_USECASES = 100; private final static int NUMBER_OF_STORIES_PER_USECASE = 10; private final static int NUMBER_OF_SCENARIOS_PER_STORY = 10; private final static int NUMBER_OF_STEP_IMPLS_PER_JAVAFILE = 100; // must be same or higher than NUMBER_OF_USECASES for all steps to resolve . . . The current situation in our project is unbearable due to this. We have 1900 test cases running each night, and continuously have to keep the tests updated and add new tests each and every day. Maybe if someone can do some profiling on the plugin, and publishing the results would help the community to overcome this. Please help. /Anders JbehaveStress.zip - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1044) Multi-threading in scenarios example tables
Title: Message Title Mauro Talevi commented on an issue Re: Multi-threading in scenarios example tables No, the parametrised scenarios do not support multi-threading either. The executable boundary for concurrent execution is the story. Add Comment JBehave / JBEHAVE-1044 Multi-threading in scenarios example tables We have many stories, and one story has 10-20 scenarios. It cost much time to run all of them by serial. I know JBehave support multi-threaded story execution capability, could you also support multi-threaded in scenario level and different data in example table? This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1043) GivenStories are not working for me in jbehave-web-selenium [3.6-beta-2]
Title: Message Title Mauro Talevi commented on an issue Re: GivenStories are not working for me in jbehave-web-selenium [3.6-beta-2] Can you please provide a self-contained project reproducing the issue? http://jbehave.org/how-to-contribute.html Add Comment JBehave / JBEHAVE-1043 GivenStories are not working for me in jbehave-web-selenium [3.6-beta-2] Hi I am new in Jbehave and trying to setup automation framework using Jbehave[3.9.3] and selenium[2.42.2]. I am using Ivy to execute the test. I could able to do that successfully. GivenStories are not working for me. I am sorry if this is not the right place to ask this question. After trying for couple days and looking into the comments that Give... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1042) Support package scanning for annotated Steps classes
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1042 Support package scanning for annotated Steps classes Change By: Mauro Talevi AddScanningStepsFactoryimplementationtoretrieveandinstantiateStepsclassesbyscanningconfiguredpackagesandfindingclassescontainingannotatedmethods. Itcanusedprogrammaticallyorviathe@UsingStepsannotation. Scanningwillrequireoptionalorg.reflections:reflectionsdependency. Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-site][1/1] Updated page on how to report issues.
commit 4066095a38f242ef1adbbfcc65078aef8a57232d Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Mon, 25 Aug 2014 09:31:36 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Mon, 25 Aug 2014 09:31:36 +0200 Updated page on how to report issues. diff --git a/site-frontend/src/site/content/how-to-contribute.html b/site-frontend/src/site/content/how-to-contribute.html index 70f98e9..35fa90a 100755 --- a/site-frontend/src/site/content/how-to-contribute.html +++ b/site-frontend/src/site/content/how-to-contribute.html @@ -16,13 +16,28 @@ ol liOpen a new issue on a href=http://jira.codehaus.org/browse/JBEHAVE;JIRA/a (a Codehaus login can be created at a href=http://xircles.codehaus.org/projects/jbehave;Xircles/a)./li liClone the a href=http://github.com/jbehave; GitHub repo/a of the appropriate project./li -liCommit your proposed changes to your clone repo, using the issue number that you created above in the commit message, i.e. start all commits with JBEHAVE-xxx:./li +liCommit your proposed changes to your cloned repo, using the issue number that you created above in the commit message, i.e. start all commits with JBEHAVE-xxx:./li liUpdate the issue with the links to the commits you made, which can be easily fetched and cherry-picked using git./li /ol span class=followupFor new ideas or solutions to your specific problems it is always recommended to first discuss them on the a href=mailing-lists.htmlmailing-lists/a, where you can get the full benefit of the experience of the JBehave community. It may be that your problem can be already solved using existing functionality./span +h2Reporting Issues/h2 + +pUsers' feedback on issues and bugs is essential and welcome but in order to be addressed and fixed, the issues need to be reproducible./p + +pTo report an issue:/p + +ol +liOpen a new issue on a href=http://jira.codehaus.org/browse/JBEHAVE;JIRA/a./li +liProvide a bself-contained sample project that reproduces your behaviour via command-line/b - preferably using Maven but other systems are fine too./li +liThe sample project should be sharable either in an archive form (jar, tar, zip) or - preferably - via your own a href=http://github.com;GitHub/a repo./li +/ol + +span class=followupPlease avoid cutting pasting or attaching bits of code and configuration to the JIRA issue as it makes it much more cumbersome to re-compose a +working project. /span + /body /html
[jbehave-dev] [jira] (JBEHAVE-1037) Story duration timeout occurs for not started story
Title: Message Title Mauro Talevi resolved an issue as Fixed Fixed by JBEHAVE-1041 . JBehave / JBEHAVE-1037 Story duration timeout occurs for not started story Change By: Mauro Talevi Resolution: Fixed Assignee: MauroTalevi Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1041) Allow StoryManager to calculate story durations
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1041 Allow StoryManager to calculate story durations Change By: Mauro Talevi ThestorydurationsascalculatedinthePostStoryStatisticsCollectorarenotreliableinmulti-threadingexecutions.TheStoryManagershouldberesponsiblefortheircalculation. Thedurationshouldbecalculatedfromthestartofthecallabletaskandnotthesubmission. Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core][1/1] Updated release notes.
commit 6b1113cc257a98cc7b57a3c47124cb3bad5461b0 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sun, 24 Aug 2014 23:13:09 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sun, 24 Aug 2014 23:13:09 +0200 Updated release notes. diff --git a/distribution/src/site/content/release-notes.html b/distribution/src/site/content/release-notes.html index de2f8b2..c38985c 100755 --- a/distribution/src/site/content/release-notes.html +++ b/distribution/src/site/content/release-notes.html @@ -5,6 +5,29 @@ /head body + +h1JBehave Core - Version 3.9.4 (Aug 24, 2014)/h1 + +h2Bug +/h2 +ul +li[a href='https://jira.codehaus.org/browse/JBEHAVE-987'JBEHAVE-987/a] - Plugin execution not covered by lifecycle configuration +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1037'JBEHAVE-1037/a] - Story duration timeout occurs for not started story +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1038'JBEHAVE-1038/a] - Unable to resolve dependencies using ANT +/li +/ul + +h2Improvement +/h2 +ul +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1041'JBEHAVE-1041/a] - Allow StoryManager to calculate story durations +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1042'JBEHAVE-1042/a] - Support package scanning for annotated Steps classes +/li +/ul + h1JBehave Core - Version 3.9.3 (Jun 19, 2014)/h1 h2Bug
[jbehave-dev] [jira] (JBEHAVE-1041) Allow StoryManager to calculate story durations
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1041 Allow StoryManager to calculate story durations Change By: Mauro Talevi ThestorydurationsascalculatedinthePostStoryStatisticsCollectorarenotreliableinmulti-threadingexecutions.TheStoryManagershouldberesponsiblefortheircalculation.Theduration (andhencethetimeout) shouldbecalculatedfromthestartofthecallabletaskandnotthesubmission. Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core/jbehave-4.x][1/1] Updated release notes.
commit 73a552e73aef56237725b41a4bb3c421acde64d7 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sun, 24 Aug 2014 23:13:09 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sun, 24 Aug 2014 23:39:51 +0200 Updated release notes. diff --git a/distribution/src/site/content/release-notes.html b/distribution/src/site/content/release-notes.html index de2f8b2..c38985c 100755 --- a/distribution/src/site/content/release-notes.html +++ b/distribution/src/site/content/release-notes.html @@ -5,6 +5,29 @@ /head body + +h1JBehave Core - Version 3.9.4 (Aug 24, 2014)/h1 + +h2Bug +/h2 +ul +li[a href='https://jira.codehaus.org/browse/JBEHAVE-987'JBEHAVE-987/a] - Plugin execution not covered by lifecycle configuration +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1037'JBEHAVE-1037/a] - Story duration timeout occurs for not started story +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1038'JBEHAVE-1038/a] - Unable to resolve dependencies using ANT +/li +/ul + +h2Improvement +/h2 +ul +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1041'JBEHAVE-1041/a] - Allow StoryManager to calculate story durations +/li +li[a href='https://jira.codehaus.org/browse/JBEHAVE-1042'JBEHAVE-1042/a] - Support package scanning for annotated Steps classes +/li +/ul + h1JBehave Core - Version 3.9.3 (Jun 19, 2014)/h1 h2Bug
[jbehave-scm] [scm-core/jbehave-4.0-beta-10][1/1] [maven-release-plugin] copy for tag jbehave-4.0-beta-10
Tag:/strong jbehave-4.0-beta-10 (added) Type: annotated Commit: 7e40470b73e5dea875fc16acd023d68167ba0c56 Tagger: tag_info[:taggername] tag_info[:taggeremail] Message: [maven-release-plugin] copy for tag jbehave-4.0-beta-10
[jbehave-dev] [jira] (JBEHAVE-1042) Support package scanning for annotated Steps classes
Title: Message Title Mauro Talevi created an issue JBehave / JBEHAVE-1042 Support package scanning for annotated Steps classes Issue Type: Improvement Assignee: Mauro Talevi Created: 21/Aug/14 4:08 PM Fix Versions: 3.9.4 Priority: Minor Reporter: Mauro Talevi Add ScanningStepsFactory implementation to retrieve and instantiate Steps classes by scanning configured packages and finding classes containing annotated methods. Scanning will require optional org.reflections:reflections dependency. Add Comment This message
[jbehave-dev] [jira] (JBEHAVE-1042) Support package scanning for annotated Steps classes
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1042 Support package scanning for annotated Steps classes Change By: Mauro Talevi Resolution: Fixed Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1041) Allow StoryManager to calculate story durations
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1041 Allow StoryManager to calculate story durations Change By: Mauro Talevi Resolution: Fixed Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1041) Allow StoryManager to calculate story durations
Title: Message Title Mauro Talevi created an issue JBehave / JBEHAVE-1041 Allow StoryManager to calculate story durations Issue Type: Improvement Assignee: Mauro Talevi Created: 18/Aug/14 3:24 PM Fix Versions: 3.9.4 Priority: Major Reporter: Mauro Talevi The story durations as calculated in the PostStoryStatisticsCollector are not reliable in multi-threading executions. The StoryManager should be responsible for their calculation. Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c
[jbehave-dev] [jira] (JBEHAVE-1039) Scenarios not allowed by filter are not skipped and cause NPEs
Title: Message Title Mauro Talevi created an issue JBehave / JBEHAVE-1039 Scenarios not allowed by filter are not skipped and cause NPEs Issue Type: Bug Assignee: Mauro Talevi Created: 16/Aug/14 8:38 AM Fix Versions: 4.0 Priority: Major Reporter: Mauro Talevi Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1039) Scenarios not allowed by filter are not skipped and cause NPEs
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1039 Scenarios not allowed by filter are not skipped and cause NPEs Change By: Mauro Talevi Attachment: metatags.zip Onlyoccursin4.xduringtheexecutionofthePerformableStory. Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1039) Scenarios not allowed by filter are not skipped and cause NPEs
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1039 Scenarios not allowed by filter are not skipped and cause NPEs Change By: Mauro Talevi Resolution: Fixed Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1037) Story duration timeout occurs for not started story
Title: Message Title Mauro Talevi commented on an issue Re: Story duration timeout occurs for not started story Is the time spent in the @Before methods such that it could account for the timeout? From the execution point of view, a story duration also includes all before and after steps, so if the before steps take a long time the story itself may not start at all. Could you please provide a sample project that reproduces this behaviour? Add Comment JBehave / JBEHAVE-1037 Story duration timeout occurs for not started story Some time (useStoryTimeoutInSecs) after starting my tests web browser is closed with warning [WARNING] Story com/sample/qa/stories/login.story duration of 101 seconds has exceeded timeout of 100 seconds. No one executed story exceed this time. This is even before login.story execution. The clue is that the story contains all @Before and @After method... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http
[jbehave-dev] [jira] (JBEHAVE-1038) Unable to resolve dependencies using ANT
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1038 Unable to resolve dependencies using ANT Change By: Mauro Talevi Affects Version/s: 4.x Fix Version/s: 3.9.4 Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core][1/1] JBEHAVE-1038: Changed Atlassian URL.
commit a1f244008e3d6d9dcdf949615fda55239be39b9d Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Fri, 15 Aug 2014 15:06:43 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Fri, 15 Aug 2014 15:06:43 +0200 JBEHAVE-1038: Changed Atlassian URL. diff --git a/settings.xml b/settings.xml index 528f62c..f99454e 100755 --- a/settings.xml +++ b/settings.xml @@ -49,13 +49,13 @@ repositories repository idatlassian/id - urlhttp://maven.atlassian.com/public/url + urlhttps://maven.atlassian.com/content/groups/public//url /repository /repositories pluginRepositories pluginRepository idatlassian/id - urlhttp://maven.atlassian.com/public/url + urlhttps://maven.atlassian.com/content/groups/public//url /pluginRepository /pluginRepositories /profile
[jbehave-scm] [scm-core/jbehave-4.x][1/1] JBEHAVE-1038: Changed Atlassian URL.
commit 77c5c62ea28a003571d6bec4669f5ae7d5e9f09b Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Fri, 15 Aug 2014 15:06:43 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Fri, 15 Aug 2014 15:07:26 +0200 JBEHAVE-1038: Changed Atlassian URL. diff --git a/settings.xml b/settings.xml index 528f62c..f99454e 100755 --- a/settings.xml +++ b/settings.xml @@ -49,13 +49,13 @@ repositories repository idatlassian/id - urlhttp://maven.atlassian.com/public/url + urlhttps://maven.atlassian.com/content/groups/public//url /repository /repositories pluginRepositories pluginRepository idatlassian/id - urlhttp://maven.atlassian.com/public/url + urlhttps://maven.atlassian.com/content/groups/public//url /pluginRepository /pluginRepositories /profile
[jbehave-dev] [jira] (JBEHAVE-1038) Unable to resolve dependencies using ANT
Title: Message Title Mauro Talevi resolved an issue as Fixed Applied URL changed as suggested, with thanks. JBehave / JBEHAVE-1038 Unable to resolve dependencies using ANT Change By: Mauro Talevi Resolution: Fixed Assignee: MauroTalevi Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1037) Story duration timeout occurs for not started story
Title: Message Title Mauro Talevi commented on an issue Re: Story duration timeout occurs for not started story Does this occur with 3.9.x as well? Add Comment JBehave / JBEHAVE-1037 Story duration timeout occurs for not started story Some time (useStoryTimeoutInSecs) after starting my tests web browser is closed with warning [WARNING] Story com/sample/qa/stories/login.story duration of 101 seconds has exceeded timeout of 100 seconds. No one executed story exceed this time. This is even before login.story execution. The clue is that the story contains all @Before and @After method... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1036) StoryReporterBuilder fails to parse test results if story has GivenStories
Title: Message Title Mauro Talevi commented on an issue Re: StoryReporterBuilder fails to parse test results if story has GivenStories Rather than providing a set of morsels of code and configuration, it'd be much easier if you could provide a simple Maven sample project that reproduced this behaviour. Add Comment JBehave / JBEHAVE-1036 StoryReporterBuilder fails to parse test results if story has GivenStories In case of story with GivenStories JBehave raport is broken. Although few scenarios has been successfully performed - Scenarios and Steps are missing. Duration is improperly set to zero. {code:title=Example of problematic story:|borderStyle=solid} @author Przemyslaw Kwiecien @organization Example Organization Systems Ltd. GivenStorie... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
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
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] [jira] (JBEHAVE-712) Spaces in path breaks StoryFinder().findPaths()
Title: Message Title Mauro Talevi commented on an issue Re: Spaces in path breaks StoryFinder().findPaths() Can you provide an example or a unit test reproducing the problem? Add Comment JBehave / JBEHAVE-712 Spaces in path breaks StoryFinder().findPaths() Constructions like: ListString storyPaths = new StoryFinder().findPaths(codeLocationFromClass(getClass()), **/*.story, **/*examples.story); or ListString storyPaths = new StoryFinder().findPaths(codeLocationFromPath(somePath), **/*.story, **/*examples.story); doesn't work when there are spaces in a path (which are replaced to %20). An... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] ThreadLocal in FluentWebDriverPage
Hi Emanuel, thanks for providing this example. The one WebDriver instance is correctly managed in the WebDriverProvider.end() method. The FluentWebDriver instances are not managed in the same way - they are not WebDriver instances and there is no lifecycle management. There is an instance created for each page, each using the same WebDriver instance as delegate. I'm not sure this constitutes a memory leak, simply that the instances are not removed at the end of the story execution. But that could easily apply to other objects as well. Are you experiencing any specific issues as a consequence of this?If so, I'd would add a FluentLifecycleSteps class method that finds the ThreadLocal instances of FluentWebDriver and nullifies them, and we can annotate it @AfterStory. Cheers On 30/07/2014 21:39, Emanuel Campolo wrote: Hi Mauro, I could reproduce the memory leak. To do that, I created a project from the jbehave-web archetype and made the some modifications in order to get some logs. I also refactored some of the page objects since the default test cases had some errors due to etsy home page modifications. This is the project: https://github.com/emacampolo/etsy-jbehave/tree/jbehave-web-possible-memory-leak And this is the class that prints the logs: https://github.com/emacampolo/etsy-jbehave/blob/jbehave-web-possible-memory-leak/src/main/java/org/jbehave/tutorials/etsy/steps/JournaledStoriesSteps.java Below you can find the output (I print all the ThreadLocal instances that are subclasses of WebDriver or FluentWebDriver). *Narrative:* *In order to show the browsing cart functionality* *As a user* *I want to browse in a gallery* *Scenario: Browsing around the site for items* *LOGGING BEFORE SCENARIO* * * *Thread name: main* *DoublyOverriddenFirefoxDriver: firefox on LINUX (eea68437-dfb6-4783-9ebf-d3b2c95c9f28)* *Given I am on etsy.com http://etsy.com* *When I want to browse through an art gallery* *When I want to buy something from etsy.com http://etsy.com* *When I want to browse the Art* *When I choose the first art gallery* *Then results will be displayed in the gallery* * * *LOGGING BEFORE CALLING END()* * * *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@1570e827* *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@27996370* *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@474f625f* *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@2cc36f8c* *Thread name: main* *DoublyOverriddenFirefoxDriver: firefox on LINUX (eea68437-dfb6-4783-9ebf-d3b2c95c9f28)* * * *[INFO] 2 stories excluded by filter: +category browsing* * * * * *(AfterStories)* *LOGGING AFTER STORIES* * * *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@1570e827* *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@27996370* *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@474f625f* *Thread name: main* *org.seleniumhq.selenium.fluent.FluentWebDriver@2cc36f8c* As you can see, by the time the suite is over, there are 4 FluentWebDriver instances (one for each page object that is created) attached to the current thread. On the other hand, you may notice that the *DoublyOverriddenFirefoxDriver *is removed correctly. There are a couple of approaches to solve this. First, let's validate this issue. Note: If you want to run it, please use the following filter since the other test cases seems not to be working mvn clean install -Dmeta.filter=+category browsing 2014-07-30 13:47 GMT-03:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: It's your right to use alternative implementations, but at least the interfaces should be the same and the maven dependencies declared. If you find there's a bug in an implementation, the best way to address it is to provide a same project that reproduces it and perhaps a patch for it. On 30/07/2014 18:21, Emanuel Campolo wrote: Please dont get me wrong. I do want to help. I've copied some classes because i found out that I could have memory leak issues using the FluentWebDriverPage. I will send you some logs using a newly created project with the jbehave-web archetype. On Jul 30, 2014 1:09 PM, Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org wrote: It seems to me that you're not even using jbehave-web. You've copied selected classes from it into your project and using them in a way which is different from jbehave-web, e.g. introducing another factory abstraction. If you'd help on using jbehave-web, including resolving issues with its current
Re: [jbehave-dev] ThreadLocal in FluentWebDriverPage
Hi, the FluentWebDriverPage is simply a fluent-based facade using a FluentWebDriver. The underlying WebDriverProvider is the same as a non-fluent page and is injected in the constructor. The PerStoryWebDriverSteps should use exactly the same underlying WebDriverProvider (autowired via some dependency-injection mechanism), so if the provider end() method is invoked you shouldn't need to do anything else. Are you experiencing or noticing a particular problem? If so, could you share a project that reproduced it? Cheers On 29/07/2014 19:14, Emanuel Campolo wrote: Hi all ! I've added the jbehave-web module to a personal project where I use testng. I'm using the FirefoxWebDriverProvider to manage the webdriver instances, taking advantage of the ThreadLocal for multithreaded tests. My question is, even though I call the end() method every time a test completes to remove the driver assigned to the current thread, i don't know how to the same thing to the FluentWebDriver (a thread local variable that the FluentWebDriverPage has). I noticed that , for example, the PerStoryWebDriverSteps only executes driverProvider.end() but as in mentioned above, i didn't find any clean up for the FluentWebDriver instances that FluentWebDriverPage creates. Thanks in advance :) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] ThreadLocal in FluentWebDriverPage
It seems to me that you're not even using jbehave-web. You've copied selected classes from it into your project and using them in a way which is different from jbehave-web, e.g. introducing another factory abstraction. If you'd help on using jbehave-web, including resolving issues with its current implementation, we'd be happy to help. If you're writing your own framework, then we can't help. Cheers On 30/07/2014 17:52, Emanuel Campolo wrote: Hi Mauro, thanks for taking your time to reply. I mentioned PerStoryWebDriverSteps as an example of how the framework cleans up the resources. In this case, when the end() method is invoked, the ThreadLocalWebDriver instance associated with the current thread is removed but, if you'd used a FluentWebDriverPage instead of a WebDriverPage, a ThreadLocalFluentWebDriver will not be eliminated from the list of thread locals. Even though im not using the jbehave-core for running my tests, Im coding a lightweight selenium-based framework using testng and the jbehave-web project. As you can see below, I had to re write some of the classes to solve this issue where resources are not being removed by the DelegatingWebDriverProvider (javadoc and reference to jbehave-web will be added): https://github.com/emacampolo/hatchery/blob/master/src/main/java/com/hatchery/core/DefaultWebDriverProvider.java https://github.com/emacampolo/hatchery/blob/master/src/main/java/com/hatchery/core/pages/FluentWebDriverPage.java This is where I invoke the end() method https://github.com/emacampolo/hatchery/blob/master/src/main/java/com/hatchery/core/Suite.java 2014-07-30 12:06 GMT-03:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Hi, the FluentWebDriverPage is simply a fluent-based facade using a FluentWebDriver. The underlying WebDriverProvider is the same as a non-fluent page and is injected in the constructor. The PerStoryWebDriverSteps should use exactly the same underlying WebDriverProvider (autowired via some dependency-injection mechanism), so if the provider end() method is invoked you shouldn't need to do anything else. Are you experiencing or noticing a particular problem? If so, could you share a project that reproduced it? Cheers On 29/07/2014 19:14, Emanuel Campolo wrote: Hi all ! I've added the jbehave-web module to a personal project where I use testng. I'm using the FirefoxWebDriverProvider to manage the webdriver instances, taking advantage of the ThreadLocal for multithreaded tests. My question is, even though I call the end() method every time a test completes to remove the driver assigned to the current thread, i don't know how to the same thing to the FluentWebDriver (a thread local variable that the FluentWebDriverPage has). I noticed that , for example, the PerStoryWebDriverSteps only executes driverProvider.end() but as in mentioned above, i didn't find any clean up for the FluentWebDriver instances that FluentWebDriverPage creates. Thanks in advance :) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] ThreadLocal in FluentWebDriverPage
It's your right to use alternative implementations, but at least the interfaces should be the same and the maven dependencies declared. If you find there's a bug in an implementation, the best way to address it is to provide a same project that reproduces it and perhaps a patch for it. On 30/07/2014 18:21, Emanuel Campolo wrote: Please dont get me wrong. I do want to help. I've copied some classes because i found out that I could have memory leak issues using the FluentWebDriverPage. I will send you some logs using a newly created project with the jbehave-web archetype. On Jul 30, 2014 1:09 PM, Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org wrote: It seems to me that you're not even using jbehave-web. You've copied selected classes from it into your project and using them in a way which is different from jbehave-web, e.g. introducing another factory abstraction. If you'd help on using jbehave-web, including resolving issues with its current implementation, we'd be happy to help. If you're writing your own framework, then we can't help. Cheers On 30/07/2014 17:52, Emanuel Campolo wrote: Hi Mauro, thanks for taking your time to reply. I mentioned PerStoryWebDriverSteps as an example of how the framework cleans up the resources. In this case, when the end() method is invoked, the ThreadLocalWebDriver instance associated with the current thread is removed but, if you'd used a FluentWebDriverPage instead of a WebDriverPage, a ThreadLocalFluentWebDriver will not be eliminated from the list of thread locals. Even though im not using the jbehave-core for running my tests, Im coding a lightweight selenium-based framework using testng and the jbehave-web project. As you can see below, I had to re write some of the classes to solve this issue where resources are not being removed by the DelegatingWebDriverProvider (javadoc and reference to jbehave-web will be added): https://github.com/emacampolo/hatchery/blob/master/src/main/java/com/hatchery/core/DefaultWebDriverProvider.java https://github.com/emacampolo/hatchery/blob/master/src/main/java/com/hatchery/core/pages/FluentWebDriverPage.java This is where I invoke the end() method https://github.com/emacampolo/hatchery/blob/master/src/main/java/com/hatchery/core/Suite.java 2014-07-30 12:06 GMT-03:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Hi, the FluentWebDriverPage is simply a fluent-based facade using a FluentWebDriver. The underlying WebDriverProvider is the same as a non-fluent page and is injected in the constructor. The PerStoryWebDriverSteps should use exactly the same underlying WebDriverProvider (autowired via some dependency-injection mechanism), so if the provider end() method is invoked you shouldn't need to do anything else. Are you experiencing or noticing a particular problem? If so, could you share a project that reproduced it? Cheers On 29/07/2014 19:14, Emanuel Campolo wrote: Hi all ! I've added the jbehave-web module to a personal project where I use testng. I'm using the FirefoxWebDriverProvider to manage the webdriver instances, taking advantage of the ThreadLocal for multithreaded tests. My question is, even though I call the end() method every time a test completes to remove the driver assigned to the current thread, i don't know how to the same thing to the FluentWebDriver (a thread local variable that the FluentWebDriverPage has). I noticed that , for example, the PerStoryWebDriverSteps only executes driverProvider.end() but as in mentioned above, i didn't find any clean up for the FluentWebDriver instances that FluentWebDriverPage creates. Thanks in advance :) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core/jbehave-4.0-beta-9][1/1] [maven-release-plugin] copy for tag jbehave-4.0-beta-9
Tag:/strong jbehave-4.0-beta-9 (added) Type: annotated Commit: 356c1c1d85692ea90de467bc8cb22d0afcea8c83 Tagger: tag_info[:taggername] tag_info[:taggeremail] Message: [maven-release-plugin] copy for tag jbehave-4.0-beta-9
[jbehave-dev] [jira] (JBEHAVE-1035) @BeforeStory steps not performed before GivenStories
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1035 @BeforeStory steps not performed before GivenStories Change By: Mauro Talevi Affects Version/s: web-3.5.5 Affects Version/s: 4.x Fix Version/s: 4.x Fix Version/s: 4.0 Summary: DelegateWebDriverNotFound:WebDriverhas @BeforeStorysteps not beenfoundforthisthread. performedbeforeGivenStories Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1035) @BeforeStory steps not performed before GivenStories
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1035 @BeforeStory steps not performed before GivenStories Change By: Mauro Talevi Resolution: Fixed Assignee: MauroTalevi Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1035) @BeforeStory steps not performed before GivenStories
Title: Message Title Mauro Talevi commented on an issue Re: @BeforeStory steps not performed before GivenStories 4.0-beta-9 has been released. 4.0-SNAPSHOT has also been deployed. The deployment is not automatic as yet because we need to find a way of securing the credentials on the CI server. Add Comment JBehave / JBEHAVE-1035 @BeforeStory steps not performed before GivenStories There seems to be a bug in 4.0-beta-8 concerning the usage of GivenStories. If I have a story which uses GivenStories then I get this exception: {noformat} org.jbehave.web.selenium.DelegatingWebDriverProvider$DelegateWebDriverNotFound: WebDriver has not been found for this thread. Please verify you are using the correct WebDriverProvider, with t... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1035) DelegateWebDriverNotFound: WebDriver has not been found for this thread.
Title: Message Title Mauro Talevi commented on an issue Re: DelegateWebDriverNotFound: WebDriver has not been found for this thread. Does it happen only with GivenStories? Add Comment JBehave / JBEHAVE-1035 DelegateWebDriverNotFound: WebDriver has not been found for this thread. There seems to be a bug in 4.0-beta-8 concerning the usage of GivenStories. If I have a story which uses GivenStories then I get this exception: {noformat} org.jbehave.web.selenium.DelegatingWebDriverProvider$DelegateWebDriverNotFound: WebDriver has not been found for this thread. Please verify you are using the correct WebDriverProvider, with t... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core/jbehave-4.x][1/1] JBEHAVE-1035: Ensure @BeforeStory steps are performed before the GivenStories.
commit c2f1548f0d48a301fed36d33208ab84fa62efeb5 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Mon, 28 Jul 2014 18:05:43 +0100 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Mon, 28 Jul 2014 18:05:43 +0100 JBEHAVE-1035: Ensure @BeforeStory steps are performed before the GivenStories. diff --git a/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java b/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java index 6a2345e..3247b10 100644 --- a/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java +++ b/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java @@ -715,8 +715,10 @@ public class PerformableTree { State state = context.state(); Timer timer = new Timer().start(); try { +beforeSteps.perform(context); performGivenStories(context); performScenarios(context); +afterSteps.perform(context); } finally { timing.setDurationInMillis(timer.stop()); } @@ -735,11 +737,9 @@ public class PerformableTree { } private void performScenarios(RunContext context) throws InterruptedException { -beforeSteps.perform(context); for (PerformableScenario scenario : scenarios) { scenario.perform(context); } -afterSteps.perform(context); } public ListPerformableScenario getScenarios() {
[jbehave-dev] [jira] (JBEHAVE-1035) DelegateWebDriverNotFound: WebDriver has not been found for this thread.
Title: Message Title Mauro Talevi commented on an issue Re: DelegateWebDriverNotFound: WebDriver has not been found for this thread. Please pull latest 4.x and try out snapshot. Add Comment JBehave / JBEHAVE-1035 DelegateWebDriverNotFound: WebDriver has not been found for this thread. There seems to be a bug in 4.0-beta-8 concerning the usage of GivenStories. If I have a story which uses GivenStories then I get this exception: {noformat} org.jbehave.web.selenium.DelegatingWebDriverProvider$DelegateWebDriverNotFound: WebDriver has not been found for this thread. Please verify you are using the correct WebDriverProvider, with t... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1032) Allow MetaMatcher to be injectable
Title: Message Title Mauro Talevi created an issue JBehave / JBEHAVE-1032 Allow MetaMatcher to be injectable Issue Type: Improvement Assignee: Mauro Talevi Components: Core Created: 12/Jul/14 2:15 AM Fix Versions: 3.9.4 Priority: Major Reporter: Mauro Talevi To support custom implementations and extensibility of the meta matching, the MetaMatcher should be injectable and default to the implementations provided in core if not injected. Add Comment
[jbehave-dev] [jira] (JBEHAVE-1033) Add JiraMetaMatcher
Title: Message Title Mauro Talevi created an issue JBehave / JBEHAVE-1033 Add JiraMetaMatcher Issue Type: New Feature Assignee: Unassigned Components: REST Support Created: 12/Jul/14 2:17 AM Fix Versions: 3.9.4 Priority: Major Reporter: Mauro Talevi A MetaMatcher that looks up a JIRA issue via REST and allows the meta if the issue is open. Add Comment
Re: [jbehave-dev] jbehave plugin configuration
This should be easily achieved by providing the user the ability to specify the custom locale from a free-text field rather than from the pre-defined list. As long as it's in the classpath it will be picked up. Please raise a JIRA issue for this. On 10/07/2014 20:25, fernando guallini wrote: I think the same Brent. I use the JBehave keywords in Spanish (custom language, in fact), but the Eclipse plugin does not support the Spanish language or custom. 2014-07-10 14:50 GMT-03:00 Brent Barker brentbark...@gmail.com mailto:brentbark...@gmail.com: This would be a really nice feature to have. On Tue, Jul 8, 2014 at 8:34 AM, Frank Pedroza fpedr...@part.net mailto:fpedr...@part.net wrote: Custom story language... for example, I want to define different Strings as my comments On Tue, Jul 8, 2014 at 7:42 AM, Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org wrote: You've not answered my question. What do you mean by a custom language? On 8 Jul 2014, at 15:37, fernando guallini fer.wa...@gmail.com mailto:fer.wa...@gmail.com wrote: I have the same issue, Is there a way to configure eclipse plugin with a customize language? 2014-07-08 3:57 GMT-03:00 Mauro Talevi mauro.tal...@aquilonia.org mailto:mauro.tal...@aquilonia.org: Preferences JBehave Project Settings Story Language drop-down list Or do you mean to support another language than the one in the list? On 07/07/2014 21:05, Frank Pedroza wrote: Is it possible to configure the JBehave eclipse plugin to use a different/customize 'Story Language'? http://jbehave.org/eclipse-integration.html - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Frank M. Pedroza - Software Engineer Partnet - Development 801.708.5050 tel:801.708.5050 - The nice part about being a pessimist is that you are constantly being either proven right or pleasantly surprised. -- George F. Will
Re: [jbehave-dev] jbehave plugin configuration
Preferences JBehave Project Settings Story Language drop-down list Or do you mean to support another language than the one in the list? On 07/07/2014 21:05, Frank Pedroza wrote: Is it possible to configure the JBehave eclipse plugin to use a different/customize 'Story Language'? http://jbehave.org/eclipse-integration.html - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-961) Customize JBehave HTML report.
Title: Message Title Mauro Talevi commented on an issue Re: Customize JBehave HTML report. Currently, users can provide their own meta properties. We could allow these to also be read from other sources, e.g. env variables. Add Comment JBehave / JBEHAVE-961 Customize JBehave HTML report. Is there any way to customize HTML the way we want in JBehave? As per our project requirement, we want to add more information in HTML report such as date time, browser tested etc. We noticed HTMLoutput method in JBehave. If it is possible with this method can you please provide any good example? This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] jbehave plugin configuration
You've not answered my question. What do you mean by a custom language? On 8 Jul 2014, at 15:37, fernando guallini fer.wa...@gmail.com wrote: I have the same issue, Is there a way to configure eclipse plugin with a customize language? 2014-07-08 3:57 GMT-03:00 Mauro Talevi mauro.tal...@aquilonia.org: Preferences JBehave Project Settings Story Language drop-down list Or do you mean to support another language than the one in the list? On 07/07/2014 21:05, Frank Pedroza wrote: Is it possible to configure the JBehave eclipse plugin to use a different/customize 'Story Language'? http://jbehave.org/eclipse-integration.html - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1028) Add support for Korean locale
Title: Message Title Mauro Talevi commented on an issue Re: Add support for Korean locale I understand that an oriental language flow may different from a Latin-based one, but I struggle to understand what's the use of having a Korean locale with keywords in English. Then it's just as well to use the default locale. I think it would be beneficial to have the keywords translated in Korean, which can be used regardless of the position in the sentence. Then we can try to address the positioning issue separately. Add Comment JBehave / JBEHAVE-1028 Add support for Korean locale While following http://jbehave.org/reference/stable/running-examples.html page, next command failed with following message. mvn -s settings.xml clean install -Pexamples Tests run: 11, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.018 sec FAILURE! - in org.jbehave.core.reporters.StoryReporterBuilderBehaviour shouldBuildWithReporterOfDiff... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from
[jbehave-dev] [jira] (JBEHAVE-1028) Add support for Korean locale
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1028 Add support for Korean locale Change By: Mauro Talevi Summary: runningprofile'examples'failedduetolackofbundlefilewhen AddsupportforKorean locale ko_KR Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1028) running profile 'examples' failed due to lack of bundle file when locale ko_KR
Title: Message Title Mauro Talevi commented on an issue Re: running profile 'examples' failed due to lack of bundle file when locale ko_KR What's the point of adding the Korean bundle with English words? If you were to volunteer the bundle with the appropriate Korean translation, we'd be happy to add it. If you do, please remember to use Unicode chars with UTF-8 encoding. Add Comment JBehave / JBEHAVE-1028 running profile 'examples' failed due to lack of bundle file when locale ko_KR While following http://jbehave.org/reference/stable/running-examples.html page, next command failed with following message. mvn -s settings.xml clean install -Pexamples Tests run: 11, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.018 sec FAILURE! - in org.jbehave.core.reporters.StoryReporterBuilderBehaviour shouldBuildWithReporterOfDiff... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1028) running profile 'examples' failed due to lack of bundle file when locale ko_KR
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1028 running profile 'examples' failed due to lack of bundle file when locale ko_KR Change By: Mauro Talevi Affects Version/s: web-3.5.5 Affects Version/s: 3.9.4 Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-987) Plugin execution not covered by lifecycle configuration
Title: Message Title Mauro Talevi resolved an issue as Not A Bug http://wiki.eclipse.org/M2E_plugin_execution_not_covered JBehave / JBEHAVE-987 Plugin execution not covered by lifecycle configuration Change By: Mauro Talevi Resolution: NotABug Fix Version/s: 3.9.4 Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-920) Allow @Before/After steps in GivenStories scenarios to not be executed
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-920 Allow @Before/After steps in GivenStories scenarios to not be executed Change By: Mauro Talevi Fix Version/s: 3.9.3 Fix Version/s: 3.9.4 Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core][1/1] Updated release notes.
commit fba9013a609dc08578b609ab7edaa030a138256e Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Thu, 19 Jun 2014 21:12:51 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Thu, 19 Jun 2014 21:12:51 +0200 Updated release notes. diff --git a/distribution/src/site/content/release-notes.html b/distribution/src/site/content/release-notes.html index d379f47..de2f8b2 100755 --- a/distribution/src/site/content/release-notes.html +++ b/distribution/src/site/content/release-notes.html @@ -5,6 +5,26 @@ /head body +h1JBehave Core - Version 3.9.3 (Jun 19, 2014)/h1 + +h2Bug +/h2 +ul +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1018'JBEHAVE-1018/a] - Parametrised step is rendered incorrectly if there is more than 1 parameter and a table +/li +/ul + +h2Improvement +/h2 +ul +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1014'JBEHAVE-1014/a] - Lifecycle steps: after upon outcome +/li +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1017'JBEHAVE-1017/a] - Update JBehave Needle to support latest version of Needle4J 2.3 +/li +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1019'JBEHAVE-1019/a] - Allow BooleanConverter to accept Boolean.TYPE and return false for unknown values +/li +/ul + h1JBehave Core - Version 3.9.2 (Apr 12, 2014)/h1 h2Bug
[jbehave-scm] [scm-core/jbehave-3.9.3][1/1] [maven-release-plugin] copy for tag jbehave-3.9.3
Tag:/strong jbehave-3.9.3 (added) Type: annotated Commit: 642ef0ae3342d3954b352e86aecc4aab9dd6c037 Tagger: tag_info[:taggername] tag_info[:taggeremail] Message: [maven-release-plugin] copy for tag jbehave-3.9.3
[jbehave-scm] [scm-core/jbehave-4.x][1/1] Updated release notes.
commit a8a642a9aa6e5addfed3483c8a09c399c7f14bc3 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Thu, 19 Jun 2014 21:12:51 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Thu, 19 Jun 2014 21:42:37 +0200 Updated release notes. diff --git a/distribution/src/site/content/release-notes.html b/distribution/src/site/content/release-notes.html index d379f47..de2f8b2 100755 --- a/distribution/src/site/content/release-notes.html +++ b/distribution/src/site/content/release-notes.html @@ -5,6 +5,26 @@ /head body +h1JBehave Core - Version 3.9.3 (Jun 19, 2014)/h1 + +h2Bug +/h2 +ul +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1018'JBEHAVE-1018/a] - Parametrised step is rendered incorrectly if there is more than 1 parameter and a table +/li +/ul + +h2Improvement +/h2 +ul +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1014'JBEHAVE-1014/a] - Lifecycle steps: after upon outcome +/li +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1017'JBEHAVE-1017/a] - Update JBehave Needle to support latest version of Needle4J 2.3 +/li +li[a href='http://jira.codehaus.org/browse/JBEHAVE-1019'JBEHAVE-1019/a] - Allow BooleanConverter to accept Boolean.TYPE and return false for unknown values +/li +/ul + h1JBehave Core - Version 3.9.2 (Apr 12, 2014)/h1 h2Bug
[jbehave-scm] [scm-core/jbehave-4.x][1/1] JBEHAVE-1002: Use lazy-loaded story controls.
commit c665b3264bd53cf8d4d2f4ce449469ed322f8dec Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Wed, 18 Jun 2014 15:37:10 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Wed, 18 Jun 2014 15:37:10 +0200 JBEHAVE-1002: Use lazy-loaded story controls. diff --git a/jbehave-core/src/main/java/org/jbehave/core/configuration/Configuration.java b/jbehave-core/src/main/java/org/jbehave/core/configuration/Configuration.java index 323d16f..36c8a7e 100755 --- a/jbehave-core/src/main/java/org/jbehave/core/configuration/Configuration.java +++ b/jbehave-core/src/main/java/org/jbehave/core/configuration/Configuration.java @@ -175,7 +175,7 @@ public abstract class Configuration { } public boolean dryRun() { -return storyControls.dryRun(); +return storyControls().dryRun(); } public StoryControls storyControls() { @@ -317,7 +317,7 @@ public abstract class Configuration { } public Configuration doDryRun(Boolean dryRun) { -this.storyControls.doDryRun(dryRun); +this.storyControls().doDryRun(dryRun); return this; }
[jbehave-scm] [scm-core/jbehave-4.0-beta-8][1/1] [maven-release-plugin] copy for tag jbehave-4.0-beta-8
Tag:/strong jbehave-4.0-beta-8 (added) Type: annotated Commit: 3437bc5e5f2a3611c69a4129ce3d1069c495197a Tagger: tag_info[:taggername] tag_info[:taggeremail] Message: [maven-release-plugin] copy for tag jbehave-4.0-beta-8
[jbehave-dev] [jira] (JBEHAVE-1023) Improve responsiveness of editor for large projects by not recreating the same StepMatcher for every candidate step on every keystroke
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-1023 Improve responsiveness of editor for large projects by not recreating the same StepMatcher for every candidate step on every keystroke Change By: Mauro Talevi Affects Version/s: eclipse-1.0 Fix Version/s: eclipse-1.0 Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1023) Improve responsiveness of editor for large projects by not recreating the same StepMatcher for every candidate step on every keystroke
Title: Message Title Mauro Talevi resolved an issue as Fixed Pulled request with thanks and deployed new version. JBehave / JBEHAVE-1023 Improve responsiveness of editor for large projects by not recreating the same StepMatcher for every candidate step on every keystroke Change By: Mauro Talevi Resolution: Fixed Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-1022) Saucelab implementation for etsy-selenium/ java-spring project in Jbehave tutorial
Title: Message Title Mauro Talevi commented on an issue Re: Saucelab implementation for etsy-selenium/ java-spring project in Jbehave tutorial The configuration for the SauceWebDriverProvider is in Java: https://github.com/jbehave/jbehave-tutorial/blob/master/etsy-selenium/groovy-pico/src/main/java/org/jbehave/tutorials/etsy/EtsyDotComStories.java It is the same regardless of the language used for the steps and the container used to wire them up. Add Comment JBehave / JBEHAVE-1022 Saucelab implementation for etsy-selenium/ java-spring project in Jbehave tutorial Hi, Currently I'm able to see the saucelabs implementation only in etsy-selenium/groovy-pico project in github. But could you please implement the same in etsy-selenium/java-spring project also. https://github.com/jbehave/jbehave-tutorial/tree/master/etsy-selenium/java-spring Please let us know how this is going to be work in SauceLabs for ja... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list
[jbehave-dev] [jira] (JBEHAVE-889) Asynchronous cache reload
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-889 Asynchronous cache reload Change By: Mauro Talevi Resolution: Fixed Status: InProgress Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-889) Asynchronous cache reload
Title: Message Title Mauro Talevi updated an issue JBehave / JBEHAVE-889 Asynchronous cache reload Change By: Mauro Talevi Summary: Cache Asynchronouscache reload asynchronous,Pullrequest Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-dev] [jira] (JBEHAVE-889) Cache reload asynchronous, Pull request
Title: Message Title Mauro Talevi commented on an issue Re: Cache reload asynchronous, Pull request Yes, please create a new issue. Add Comment JBehave / JBEHAVE-889 Cache reload asynchronous, Pull request The eclipse plugin sets up a cache containing all step candidates. This cache is rebuilt whenever something changes within the project (which sometimes is happening at every key-stroke). Since querying the cache is bound to waiting for a reload to complete, this affects the GUI/user thread, ending up in a slow or even locked up Eclipse. Reported as per... This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jbehave-scm] [scm-core][1/1] JBEHAVE-1014: Fixed DE locale keywords in test.
commit 81c32db4ef7a3fc6cf1792d4e5064b38011b6ef0 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sun, 1 Jun 2014 10:02:42 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sun, 1 Jun 2014 10:02:42 +0200 JBEHAVE-1014: Fixed DE locale keywords in test. diff --git a/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java b/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java index 86399ca..d4f434e 100755 --- a/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java +++ b/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java @@ -326,11 +326,11 @@ public class RegexStoryParserBehaviour { public void shouldParseStoryWithLifecycleAfterUponOutcomeInNonEnglishLocale() { String wholeStory = Lebenszyklus: + NL + Nach: + NL + NL + -Ergebnis: IRGENDWELCHE + NL + +Ergebnis: JEDES + NL + Gegeben im Lager sind 200 T-Shirts + NL + Ergebnis: ERFOLG + NL + Gegeben im Lager sind 300 T-Shirts + NL + -Ergebnis: AUSFALL + NL + +Ergebnis: FEHLER + NL + Gegeben im Lager sind 400 T-Shirts + NL + Szenario:+ NL + Wenn ein Kunde 20 T-Shirts bestellt;
[jbehave-scm] [scm-core/jbehave-4.x][1/1] JBEHAVE-1014: Fixed DE locale keywords in test.
commit 20d62e8ecba2265e7b596917b5d41fd3cd8fa630 Author: Mauro Talevi mauro.tal...@aquilonia.org AuthorDate: Sun, 1 Jun 2014 10:02:42 +0200 Commit: Mauro Talevi mauro.tal...@aquilonia.org CommitDate: Sun, 1 Jun 2014 10:03:23 +0200 JBEHAVE-1014: Fixed DE locale keywords in test. diff --git a/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java b/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java index 86399ca..d4f434e 100755 --- a/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java +++ b/jbehave-core/src/test/java/org/jbehave/core/parsers/RegexStoryParserBehaviour.java @@ -326,11 +326,11 @@ public class RegexStoryParserBehaviour { public void shouldParseStoryWithLifecycleAfterUponOutcomeInNonEnglishLocale() { String wholeStory = Lebenszyklus: + NL + Nach: + NL + NL + -Ergebnis: IRGENDWELCHE + NL + +Ergebnis: JEDES + NL + Gegeben im Lager sind 200 T-Shirts + NL + Ergebnis: ERFOLG + NL + Gegeben im Lager sind 300 T-Shirts + NL + -Ergebnis: AUSFALL + NL + +Ergebnis: FEHLER + NL + Gegeben im Lager sind 400 T-Shirts + NL + Szenario:+ NL + Wenn ein Kunde 20 T-Shirts bestellt;
[jbehave-dev] [jira] (JBEHAVE-1021) Remove support for Selenium AndroidDriver
Title: Message Title Mauro Talevi created an issue JBehave / JBEHAVE-1021 Remove support for Selenium AndroidDriver Issue Type: Task Assignee: Mauro Talevi Components: Web Selenium Created: 01/Jun/14 3:50 AM Fix Versions: web-3.6 Priority: Major Reporter: Mauro Talevi Selenium removed support for Android Driver in recent releases. A bespoke support using http://selendroid.io should be added. Upgraded to 2.42.1 version of selenium. Add Comment
[jbehave-dev] [jira] (JBEHAVE-1021) Remove support for Selenium AndroidDriver
Title: Message Title Mauro Talevi resolved an issue as Fixed JBehave / JBEHAVE-1021 Remove support for Selenium AndroidDriver Change By: Mauro Talevi Resolution: Fixed Status: Open Resolved Add Comment This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c) - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Re: [jbehave-dev] MethodReturningConverter how-to
You don't use it directly. Use @AsParameterConverter annotation: https://github.com/jbehave/jbehave-core/blob/master/examples/core/src/main/java/org/jbehave/examples/core/steps/CalendarSteps.java On 30/05/2014 01:27, Frank Pedroza wrote: Can anyone explain how to use the MethodReturningConverter? - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email