Re: Jbehave story report is not showing the time in report i.e., the Duration is shown as 00:00:00.000.

2018-02-23 Thread Mauro Talevi
Please package all this in a downloadable zip that can be opened and run.  
Don't forget a readme with tool versions etc 

> On 23 Feb 2018, at 18:32, Maganti Suryanarayana murthy  
> wrote:
> 
> Hi Mauro Talevi, 
> 
> I have used gradle as a build file and please find the code base that i am 
> using. I am pasing build.gradle file and apptechJbehaveStories.java
> 
> Build.gradle:
> 
> def buildNumber = System.getProperty('buildNumber') ?: '0'
> def buildVersion = '1.0.0-' + buildNumber
> 
> version = buildVersion
> 
> apply plugin: 'groovy'
> apply plugin: 'java'
> apply plugin: 'maven'
> 
> 
> repositories {
> mavenCentral()
>}
> 
> configurations {
> jbehave
> }
> 
> dependencies {
> testCompile group: 'junit', name: 'junit', version: '4.11'
> compile(group: 'org.jbehave.web', name: 'jbehave-web-selenium', 
> version:'4.0-beta-1') {
> exclude(module: 'selenium-remote-control')
> exclude(module: 'selenium-java')
> exclude(module: 'jbehave-core')
> }
> compile 'org.springframework:spring-webmvc:5.0.2.RELEASE'
> compile 'org.jbehave.site:jbehave-site-resources:3.3.1'
> compile 'org.jbehave:jbehave-spring:4.1.3'
> compile 'org.jbehave:jbehave-core:4.1.3'
> compile 'log4j:log4j:1.2.16'
> compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: 
> '3.7.1'
> compile group: 'commons-collections', name: 'commons-collections', 
> version: '3.2.1'
> testCompile group: 'org.jbehave', name: 'jbehave-core', version: '4.1.3'
> compile 'org.jbehave.site:jbehave-site-resources:3.3.1:@zip'
> }
> 
> /** userDefined task to copy the srories from /src/main/stories into 
> build/classes/test/stories*/
> task copyStories(type: Copy) {
> from 'src/main/resources' into "${buildDir}/classes/test"
> from 'src/main/stories' into "${buildDir}/classes/test/stories"
> }
> 
> 
> task copyJbehaveStyle(type: Copy) {
> from(zipTree(jarPath("jbehave-core"))) {
> include "style/*"
> }
> into("${buildDir}/classes/jbehave/view")
> }
> 
> task copyJbehaveUtilities(type: Copy) {
> from(zipTree(jarPath("jbehave-site-resources"))) {
> include "js/**/*"
> include "style/**/*"
> include "images/*"
> }
> into("${buildDir}/classes/jbehave/view")
> }
> 
> def jarPath(String jarName) {
> configurations.testCompile.find({ it.name.startsWith(jarName) 
> }).absolutePath
> }
> 
> 
> /** to specify the source for java and resources for test task, by default 
> this is refered to src/test folder in gradle and maven*/
> sourceSets {
> test {
> java {
> srcDir "src/main/java"
> }
> resources {
> srcDir "src/main/resources"
> }
> }
> }
> 
> test {
> systemProperty "metaFilters", System.getProperty("metaFilters", "")
> doFirst {
> copy {
> from(zipTree(jarPath("jbehave-core"))) {
> include "style/*"
> }
> into("build/reports/jbehave/view")
> 
> }
> copy {
> from(zipTree(jarPath("jbehave-site-resources"))) {
> include "js/**/*"
> include "style/**/*"
> include "images/*"
> }
> into("build/reports/jbehave/view")
> }
> }
> systemProperties System.getProperties()
> dependsOn([clean,copyStories,copyJbehaveUtilities,copyJbehaveStyle])
> }
> 
> 
> apptechJBehaveStories.java
> 
> package com.apptech.qmo;
> 
> import com.apptech.qmo.ipt.QMOHtmlOutput;
> import com.apptech.qmo.ipt.QMOStoryData;
> import com.apptech.qmo.ipt.QMOStoryReporterBuilder;
> import com.apptech.qmo.ipt.utils.Loggers;
> import com.google.common.util.concurrent.MoreExecutors;
> import org.apache.log4j.Logger;
> import org.apache.log4j.PropertyConfigurator;
> import org.jbehave.core.Embeddable;
> import org.jbehave.core.configuration.Configuration;
> import org.jbehave.core.embedder.Embedder;
> import org.jbehave.core.embedder.StoryControls;
> import org.jbehave.core.embedder.StoryTimeouts;
> import org.jbehave.core.failures.FailingUponPendingStep;
> import org.jbehave.core.failures.PendingStepStrategy;
> import org.jbehave.core.i18n.LocalizedKeywords;
> import org.jbehave.core.io.CodeLocations;
> import org.jbehave.core.io.LoadFromClasspath;
> import org.jbehave.core.io.StoryFinder;
> import org.jbehave.core.junit.JUnitStories;
> import org.jbehave.core.model.ExamplesTableFactory;
> import org.jbehave.core.model.TableTransformers;
> import org.jbehave.core.parsers.RegexStoryParser;
> import org.jbehave.core.reporters.CrossReference;
> import org.jbehave.core.reporters.Format;
> import org.jbehave.core.reporters.HtmlTemplateOutput;
> import org.jbehave.core.reporters.StoryReporterBuilder;
> import org.jbehave.core.steps.InjectableStepsFactory;
> import org.jbehave.core.steps.ParameterControls;
> import org.jbehave.core.steps.ParameterConverters;
> import 

Re: Jbehave story report is not showing the time in report i.e., the Duration is shown as 00:00:00.000.

2018-02-23 Thread Maganti Suryanarayana murthy
Hi Mauro Talevi, 

I have used gradle as a build file and please find the code base that i am 
using. I am pasing build.gradle file and apptechJbehaveStories.java

Build.gradle:

def buildNumber = System.getProperty('buildNumber') ?: '0'
def buildVersion = '1.0.0-' + buildNumber

version = buildVersion

apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'


repositories {
mavenCentral()
   }

configurations {
jbehave
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile(group: 'org.jbehave.web', name: 'jbehave-web-selenium', 
version:'4.0-beta-1') {
exclude(module: 'selenium-remote-control')
exclude(module: 'selenium-java')
exclude(module: 'jbehave-core')
}
compile 'org.springframework:spring-webmvc:5.0.2.RELEASE'
compile 'org.jbehave.site:jbehave-site-resources:3.3.1'
compile 'org.jbehave:jbehave-spring:4.1.3'
compile 'org.jbehave:jbehave-core:4.1.3'
compile 'log4j:log4j:1.2.16'
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', 
version: '3.7.1'
compile group: 'commons-collections', name: 'commons-collections', 
version: '3.2.1'
testCompile group: 'org.jbehave', name: 'jbehave-core', version: '4.1.3'
compile 'org.jbehave.site:jbehave-site-resources:3.3.1:@zip'
}

/** userDefined task to copy the srories from /src/main/stories into 
build/classes/test/stories*/
task copyStories(type: Copy) {
from 'src/main/resources' into "${buildDir}/classes/test"
from 'src/main/stories' into "${buildDir}/classes/test/stories"
}


task copyJbehaveStyle(type: Copy) {
from(zipTree(jarPath("jbehave-core"))) {
include "style/*"
}
into("${buildDir}/classes/jbehave/view")
}

task copyJbehaveUtilities(type: Copy) {
from(zipTree(jarPath("jbehave-site-resources"))) {
include "js/**/*"
include "style/**/*"
include "images/*"
}
into("${buildDir}/classes/jbehave/view")
}

def jarPath(String jarName) {
configurations.testCompile.find({ it.name.startsWith(jarName) 
}).absolutePath
}


/** to specify the source for java and resources for test task, by default 
this is refered to src/test folder in gradle and maven*/
sourceSets {
test {
java {
srcDir "src/main/java"
}
resources {
srcDir "src/main/resources"
}
}
}

test {
systemProperty "metaFilters", System.getProperty("metaFilters", "")
doFirst {
copy {
from(zipTree(jarPath("jbehave-core"))) {
include "style/*"
}
into("build/reports/jbehave/view")

}
copy {
from(zipTree(jarPath("jbehave-site-resources"))) {
include "js/**/*"
include "style/**/*"
include "images/*"
}
into("build/reports/jbehave/view")
}
}
systemProperties System.getProperties()
dependsOn([clean,copyStories,copyJbehaveUtilities,copyJbehaveStyle])
}


apptechJBehaveStories.java

package com.apptech.qmo;

import com.apptech.qmo.ipt.QMOHtmlOutput;
import com.apptech.qmo.ipt.QMOStoryData;
import com.apptech.qmo.ipt.QMOStoryReporterBuilder;
import com.apptech.qmo.ipt.utils.Loggers;
import com.google.common.util.concurrent.MoreExecutors;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.jbehave.core.Embeddable;
import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.embedder.Embedder;
import org.jbehave.core.embedder.StoryControls;
import org.jbehave.core.embedder.StoryTimeouts;
import org.jbehave.core.failures.FailingUponPendingStep;
import org.jbehave.core.failures.PendingStepStrategy;
import org.jbehave.core.i18n.LocalizedKeywords;
import org.jbehave.core.io.CodeLocations;
import org.jbehave.core.io.LoadFromClasspath;
import org.jbehave.core.io.StoryFinder;
import org.jbehave.core.junit.JUnitStories;
import org.jbehave.core.model.ExamplesTableFactory;
import org.jbehave.core.model.TableTransformers;
import org.jbehave.core.parsers.RegexStoryParser;
import org.jbehave.core.reporters.CrossReference;
import org.jbehave.core.reporters.Format;
import org.jbehave.core.reporters.HtmlTemplateOutput;
import org.jbehave.core.reporters.StoryReporterBuilder;
import org.jbehave.core.steps.InjectableStepsFactory;
import org.jbehave.core.steps.ParameterControls;
import org.jbehave.core.steps.ParameterConverters;
import org.jbehave.core.steps.spring.SpringStepsFactory;
import org.jbehave.web.selenium.*;
import org.springframework.context.ApplicationContext;
import 
org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;

import static com.apptech.qmo.ipt.utils.DriverProvider.driver;
import static org.jbehave.core.io.CodeLocations.codeLocationFromClass;

Re: Jbehave story report is not showing the time in report i.e., the Duration is shown as 00:00:00.000.

2018-02-22 Thread Mauro Talevi
You need to provide a sample project that reproduces the issue for us to help 
you.

> On 21 Feb 2018, at 16:39, Maganti Suryanarayana murthy  
> wrote:
> 
> Any help on this 
> ?
> 
> On Tuesday, February 20, 2018 at 10:16:58 AM UTC-6, Maganti Suryanarayana 
> murthy wrote:
> Any one is facing above issue ?
> 
> On Tuesday, February 20, 2018 at 9:42:28 AM UTC-6, Maganti Suryanarayana 
> murthy wrote:
> Jbehave story report is not showing the time in report i.e., the Duration is 
> shown as 00:00:00.000. I am using gradle as a build tool. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JBehave User" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jbehave-user+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to jbehave-user@googlegroups.com 
> .
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/jbehave-user/6376be18-29ad-444f-9670-79a4a6eae694%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/A5A330DC-C18D-4058-941A-4153F3A1BD6C%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.


Re: Jbehave story report is not showing the time in report i.e., the Duration is shown as 00:00:00.000.

2018-02-21 Thread Maganti Suryanarayana murthy
Any help on this 
?

On Tuesday, February 20, 2018 at 10:16:58 AM UTC-6, Maganti Suryanarayana 
murthy wrote:
>
> Any one is facing above issue ?
>
> On Tuesday, February 20, 2018 at 9:42:28 AM UTC-6, Maganti Suryanarayana 
> murthy wrote:
>>
>> Jbehave story report is not showing the time in report i.e., the Duration 
>> is shown as 00:00:00.000. I am using gradle as a build tool. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/6376be18-29ad-444f-9670-79a4a6eae694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jbehave story report is not showing the time in report i.e., the Duration is shown as 00:00:00.000.

2018-02-20 Thread Maganti Suryanarayana murthy
Any one is facing above issue ?

On Tuesday, February 20, 2018 at 9:42:28 AM UTC-6, Maganti Suryanarayana 
murthy wrote:
>
> Jbehave story report is not showing the time in report i.e., the Duration 
> is shown as 00:00:00.000. I am using gradle as a build tool. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/00711357-b39d-4b87-9770-e6825cfbb069%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.