We've noticed that, when running our Canoo tests using the Grails
plugin, that the individual tests seem to run in sort of alphabetical
order with a test file, but not entirely. We need our tests to run in a
consistent order, and I'm puzzled as to what the order actually is, and
how to force the order of tests.

 

One of the most puzzling orders is this one:

 

41 
com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.testZZZDeleteTe
stReturn
<file:///C:\dev-env\projects\registry-nzert\target\test-reports\webtest\
041_CompqanzertwebtestPurchasingNaturalG\WebTestReport.html> 

42
com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test003ReportGa
sExported
<file:///C:\dev-env\projects\registry-nzert\target\test-reports\webtest\
042_CompqanzertwebtestPurchasingNaturalG\WebTestReport.html> 

43
com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test001StartRet
urnPNG
<file:///C:\dev-env\projects\registry-nzert\target\test-reports\webtest\
043_CompqanzertwebtestPurchasingNaturalG\WebTestReport.html> 

44
com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test002ReportGa
sPurchased
<file:///C:\dev-env\projects\registry-nzert\target\test-reports\webtest\
044_CompqanzertwebtestPurchasingNaturalG\WebTestReport.html> 

45
com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test004ReportSt
orageAdjustment
<file:///C:\dev-env\projects\registry-nzert\target\test-reports\webtest\
045_CompqanzertwebtestPurchasingNaturalG\WebTestReport.html> 

 

I've tried various ways of naming the DeleteTestReturn step, so that it
runs last, and in some of my test files, it does. In most, though,
regardless of what it is named, it runs first. At one point these tests
were running in order 001, 002, 003, 004, then suddenly started running
003, 001, 002, 004. 

 

Any ideas for me? What am I missing here?

 

Erica Wieland

 

<<image001.gif>>

Reply via email to