Hi, I've made the necessary changes to set the session time out in the code as mentioned by you in the example but nothing works for me. Please find the attachment of the xml and Story config files. Your help is much appreciated. Thanks!
Regards, Robert Joseph. -----Original Message----- From: Mauro Talevi [mailto:[email protected]] Sent: Monday, January 16, 2012 6:21 PM To: [email protected] Subject: Re: [jbehave-dev] Need help reg:Timeout exception Timeout is set via the EmbedderControls or Maven/Ant configuration. The threads examples shows you how to do both: https://github.com/jbehave/jbehave-core/tree/master/examples/threads On 16/01/2012 12:44, Robert Joseph wrote: > Hi Team, > While running a story file the execution breaks and an exception is thrown," > .story duration of 301 seconds has exceeded timeout of 300 seconds". > Please help me in resolving this issue. > > Regards, > Robert Joseph. > Virtusa was recently ranked #22 and featured in 2011 Forbes List of > 100 Best Public Companies In America with revenue of less than $1B, > 2011 Global Services 100 and 2011 FinTech 100 among others. > > ---------------------------------------------------------------------- > ----------------------- This message, including any > attachments,contains confidential information intended for a specific > individual and purpose,and is intended for the addressee only. Any > unauthorized disclosure, use,dissemination, copying, or distribution > of this message or any of its attachments or the information contained > in this e-mail, or the taking of any action based on it, is strictly > prohibited. If you are not the intended recipient, please notify the > sender immediately by return e-mail and delete this message. > ---------------------------------------------------------------------- > ----------------------- > > > --------------------------------------------------------------------- > 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 Virtusa was recently ranked #22 and featured in 2011 Forbes List of 100 Best Public Companies In America with revenue of less than $1B, 2011 Global Services 100 and 2011 FinTech 100 among others. --------------------------------------------------------------------------------------------- This message, including any attachments,contains confidential information intended for a specific individual and purpose,and is intended for the addressee only. Any unauthorized disclosure, use,dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. ---------------------------------------------------------------------------------------------
SkillPortStories.java
Description: SkillPortStories.java
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.skillsoft.skillport.jbehave</groupId> <artifactId>skillport-jbehave</artifactId> <version>0.1</version> <name>JBehave Web skillport-jbehave Selenium Stories</name> <description>Stories verifying behaviour of skillport-jbehave example application, using the Selenium API of Selenium 2.</description> <packaging>jar</packaging> <dependencies> <dependency> <groupId>org.jbehave.web</groupId> <artifactId>jbehave-web-selenium</artifactId> <version>3.4-SNAPSHOT</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>3.0.5.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>3.0.5.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>3.0.5.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>3.0.5.RELEASE</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.2.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>1.9.0-beta-3</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.8.3</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.5</version> <executions> <execution> <id>copy-resources</id> <!-- here the phase you need --> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/classes</outputDirectory> <resources> <resource> <directory>WebContent/WEB-INF</directory> <filtering>true</filtering> </resource> <resource> <directory>src/main/java</directory> <filtering>**/*.story</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <configuration> <webApp>${project.build.directory}/skillport-jbehave-${project.version}.war</webApp> <webAppConfig> <contextPath>/skillport-jbehave</contextPath> </webAppConfig> </configuration> <executions> <execution> <id>start-jetty</id> <phase>pre-integration-test</phase> <goals> <goal>run-war</goal> </goals> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> <daemon>true</daemon> </configuration> </execution> <execution> <id>stop-jetty</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> <configuration> <stopKey>stopJetty</stopKey> <stopPort>9966</stopPort> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>selenium-maven-plugin</artifactId> <version>1.0.1</version> <executions> <execution> <id>start-selenium</id> <phase>pre-integration-test</phase> <goals> <goal>start-server</goal> </goals> <configuration> <background>true</background> <debug>false</debug> <logOutput>true</logOutput> </configuration> </execution> <execution> <id>stop-selenium</id> <phase>post-integration-test</phase> <goals> <goal>stop-server</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.jbehave</groupId> <artifactId>jbehave-maven-plugin</artifactId> <executions> <execution> <id>run-stories</id> <phase>integration-test</phase> <configuration> <includes> <include>**/*Stories.java</include> </includes> <storyTimeoutInSecs>600</storyTimeoutInSecs> <generateViewAfterStories>true</generateViewAfterStories> <ignoreFailureInStories>true</ignoreFailureInStories> <ignoreFailureInView>true</ignoreFailureInView> </configuration> <goals> <goal>run-stories-as-embeddables</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <configuration> <warSourceDirectory>WebContent</warSourceDirectory> </configuration> </plugin> </plugins> </build> </project>
<<attachment: SessionTimeout.png>>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
