Re: Grails Plugin, Test Run Order

Dierk König <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi Erica,

have a look at the TestSuite class and the suite() method.

You can control the sequence yourself by implementing the suite method.

happy testing
Dierk

Am 02.11.2011 um 15:27 schrieb Wieland, Erica:

> 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<image001.gif>com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.testZZZDeleteTestReturn
> 42<image001.gif>com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test003ReportGasExported
> 43<image001.gif>com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test001StartReturnPNG
> 44<image001.gif>com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test002ReportGasPurchased
> 45<image001.gif>com.pqa.nzert.webtest.PurchasingNaturalGasReturnWebTests.test004ReportStorageAdjustment
>  
> 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
>  
> 
> 
> 07. - 11. November 2011 | The Westin Grand München Arabellapark
> Treffen Sie unsere Experten bei hochkarätigen Talks und an unserem Expo-Stand. Wir freuen uns auf Ihren Besuch!
> 
> www.jax.de/wjax2011
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.