Maybe because of the project is built with eclipse…

I also tried this:
public GoogleWebStories() {
        Embedder embedder = configuredEmbedder();
        
embedder.embedderControls().doGenerateViewAfterStories(true).doIgnoreFailureInStories(true)
                
.doIgnoreFailureInView(true).doVerboseFiltering(true).useThreads(2).useStoryTimeoutInSecs(30);
    }

Bu that didn’t work. Only one browser was opened, not two.

Please help me out in opening as many browsers as threads are specified.


Regards,

Roy

From: Mauro Talevi [mailto:[email protected]]
Sent: zondag 2 december 2012 14:39
To: [email protected]
Subject: Re: [jbehave-user] Can't run in threads

Hi Roy,

your project does not compile:

Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) 
on project Spring-Jbehave-WebDriver-Example: Compilation failure
[ERROR] 
/Users/mauro/git/Spring-Jbehave-WebDriver-Example/src/main/java/org/google/web/test/SearchResultsPage.java:[48,2]
 cannot find symbol
[ERROR] symbol  : method 
assertThat(java.util.List<java.lang.String>,org.hamcrest.Matcher<java.lang.Iterable<?
 super java.lang.Object>>)
[ERROR] location: class org.google.web.test.SearchResultsPage

$ mvn -v
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /Users/mauro/applications/mvn
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"

You do not specify what is the problem that you're facing.

I did notice that you have only one thread configured though.

Cheers

On 01/12/2012 13:07, Roy de Kleijn wrote:
Hello,

I'm having a hard time in running my webdriver tests in parallel. So, I created 
a testproject and I hope that someone is willing to help me out.

The code is available on github at the following location: 
https://github.com/roydekleijn/Spring-Jbehave-WebDriver-Example

I need to use my own webdriver instance, because sometimes I need to use a 
proxy or adblocker and forthat I need to be able set driver specific settings.

Also, i think that the beforeScenario methods can be improved, but I'm not sure 
how.


Best regards,
Roy


Reply via email to