Parallel and remote execution in keyword/hybrid framwork | Selenium Forum
M
Posted on 02/11/2015
Hi Team,

I saw video of selenium grid execution where most of things are being derived by testng.xml file which again can be configured in POM.xml for Maven based project.

Here my Question is :

Can we execute multiple test cases defined into Excel where we are using testNg dataprovider to read data and execute into parallel fashion in grid ?

I tried to do so and getting "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project selenium: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed: There was an error in the forked process" error.

M
Replied on 03/11/2015

Yes
In data provider you need to put paralell=true


M
Replied on 03/11/2015

Thanks Ashish!!

Still i am getting the error as i think there is some problem with my syntax of testng.xml. Hence its erroring out in forking.

Also @dataProvider(parallel=true) -
Will this be thread safe while implemented along with remote grid execution.

Also i am not able to think how and where i would put logic for remote driver.


M
Replied on 03/11/2015

@DataProvider(parallel=true)
public void example(){

}