maven - Execute test suites in a specific order -


i'm using maven-failsafe plugin trigger testng suites configuration similar

<suitexmlfiles>  <file>src/test/resources/suites/somesuite.xml</file>  <file>src/test/resources/suites/anothersuite.xml</file>  <file>src/test/resources/suites/yetanothersuite.xml</file> </suitexmlfiles> 

but suites or tests within them not getting executed in correct order. there way specifiy suites should executed in below order

  1. somesuite.xml
  2. anothersuite.xml
  3. yet suite.xml

i don't care order in tests within suite executed, execute 1 suite after previous 1 has completed. there configuration use achieve same?

create seperate testng.xml file , add below:

<?xml version="1.0" encoding="utf-8"?> <!doctype suite system "http://testng.org/testng-1.0.dtd"> <suite name="suite">     <suite-files>         <suite-file             path="path-to\suite1.xml" />         <suite-file             path="path-to\suite2.xml" />     </suite-files> </suite> 

and add testng.xml file maven suite


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -