How execute parallel tests

45 views
Skip to first unread message

Ana MB

unread,
Aug 31, 2017, 3:54:23 AM8/31/17
to Jenkins Users

Hi guys!


I need to execute parallel tests in Jenkins (I have 200 tests done with Selenium Webdriver under Eclipse), I've tried to do it with the following code in my pom.xml file with no luck:

<plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.5.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.19.1</version>
       <configuration>
              <parallel>classes</parallel>
              <threadCount>5</threadCount>
         </configuration>
        </plugin>
    </plugins>

This code works at the beginning (it loads 5 tests), but then, it doesn't end fine, it gets stopped. I don't know why. However, if I put the plugin "maven-surefire-plugin" as "dependency" and not as "plugin", my test (only one at a time) works fine.


I've tried with Multijob Plugin




but I don't know exactly what I have to put in every "Job name", this job to execute in parallel has to exist in my GitHub Repository? Or this has to ve an other job in Jenkins? Do you know any tutorial about it?


Thanks so much!!


Ana MB

unread,
Sep 1, 2017, 4:19:18 AM9/1/17
to Jenkins Users
Hi guys, 

Any idea how could I solve it? 
I've been searching but I can't solve it by myself...

Thanks so much!!!

Ana MB

unread,
Sep 1, 2017, 5:40:25 AM9/1/17
to Jenkins Users
I've tried to check the following but it doesn't execute 5 tests in parallel... why??


Thanks so much!!!

Ana MB

unread,
Sep 4, 2017, 2:57:11 AM9/4/17
to Jenkins Users
Hi guys!

Any idea about this issue? I don't find solution... 

Thanks so much!!

xwyxw

unread,
Sep 4, 2017, 7:07:27 AM9/4/17
to Jenkins Users
Use Pipelines it will give you : More flexibility, groovy scripting  as well as parallel capabilities. 
Reply all
Reply to author
Forward
0 new messages