Thanks Cristian for the fast answer.
I've looked at CubicTest source code and firured out some thougth.
Oh. I want to share my solution to run tests in parallel:
I've replaced selenium-server to the last version using maven:
<dependency>
<groupId>org.cubictest</groupId>
<artifactId>cubictest</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>org.cubictest</groupId>
<artifactId>selenium-exporter</artifactId>
<version>2.0.3</version>
</dependency>
<!--<dependency>-->
<!--<groupId>org.cubictest</groupId>-->
<!--<artifactId>cubictest-selenium-rc</artifactId>-->
<!--<version>2.0.3</version>-->
<!--</dependency>-->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-control</artifactId>
<version>2.0b2</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.0b2</version>
</dependency>
And it was the solution to run selenium normally and close browser
when SeleniumRunner finishes.
For now I create new SeleniumRunner for each test.
But also there was a problem with SameVMCustomTestStepConverter.java.
There is static final Map:
private static final ThreadLocal<IElementContext> threadElementContext
= new ThreadLocal<IElementContext>();
And we can't use this feature if we run tests in parallel.
So I want to suggest some modification to the CubicTest Project:
1. Use Maven For CubicTest project . It's really good practice.
2. Make threadElementContext not final & static. And give access for
this context from SeleniumRunner.
3. Update selenium to the Latest version.
Also our team can participate in developing your CubicTest project.
We use CubicTest in our project and it can help the CubicTest for
growth.
On Mar 3, 3:44 am, Christian Schwarz <
srz.christ...@gmail.com> wrote:
> You will have to try this out yourself.
>
> If it does not work out, try splitting up the suite into many sub modules
> that might be able to run i parallell.
>
> C.
>
> 2011/3/2 Abaxaba <
i...@lionhearth.com>