Skip to content

An example of TestNG running classes, methods and DataProvider in parallel using Maven.

Notifications You must be signed in to change notification settings

admpresales/testng-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

testng-example

This test is an example of how you can utilize the parallel execution of LeanFT in a TestNG framework. It is a shell of a test demonstrating the bare capabilities and doesn't rely on any application for execution.

In order to execute the test, you must select one of the profiles. ONLY select one profile at a time for execution. There are no checks if multiple are selected. Things won't crash but only the last profile selected in the list will be executed.

These profiles are set up for use for when you execute (all suite xml files in src/main/resources) to demonstrate various ways parallel execution can be done:

  Data Provider - uses the testng.xml file to run the net.mf.lft.examples.DataProviderExampleTest (this is the default if no profile selected)
  
  Parallel Classes - uses classes-test-testing.xml to run ParallelClassesTestOne, ParallelClassesTestTwo, ParallelClassesTestThree
  
  Parallel Methods - uses methods-test.testing.xml to run ParallelMethods
  
  Suite w/Parameters - uses automation-suite.xml to run Automation_01 and Automation_02 passing arguments from the xml to the test.

Make sure to read the *.xml files that is in the project as it tells how to properly execute from eclipse

Two good sources on explaining how to execute TestNG tests in parallel (class, test, method)

Reference on how to pass arguments from the xml file

About

An example of TestNG running classes, methods and DataProvider in parallel using Maven.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages