TestCase doesnt run sequentially from ANT

FlexMonkey Forum

Hi guys,

I Have one MainTestSuite, inside which i have many TestCases. All

TestCases have multiple test, when i record all the test using FM and

run , it runs in sequential way, but when i generate the code and run

using ANT script i find it is alphabetic dependent. So I have to name

all my TestCase starting with A, B, C, & so on. The same problem is

with all the test inside TestCase, If any of the testcase has more

than 10 test and you name them as Test1, Test2, Test3,.... Test10,

Test11. Then in this case Test10 is run first thn Test11, thn Test1,

Test2.. and so on..

Has any1 tried or got the same problem.

Thanks in advance

Rupam

note: original post by Rupam

Comment 1

Even i am facing the same problem any update ?

Santosh


note: original post by Santy

Comment 2

ya i have one MainSuite with multiple TestCase and each TestCase i give

name as ATestCase1, BTestCase2, and so on.. and inside each TestCase i have

multiple test like Test1, Test2,...till Test9.. so it works sequentially

Hope this helps as a temp solution.

Thanks

Rupam


note: original post by Rupam

Comment 3

Hi Rupam,

Thanks for information.Can you explain in little more detail.

Santosh


note: original post by Santy

Comment 4

Hi Guys:

FlexMonkey's ActionScript tests run on top of Fluint -- this page from

the fluint docs may be useful in helping to order your tests:

http://code.google.com/p/fluint/wiki/Order

Cheers,

Eric

You can disable sorting

You can disable sorting tests. Set propery sorter to null, test will be run in the order they were added.

[...]

    public class Midas_cli extends MonkeyFlexUnitTestSuite{

        public function Midas_cli()

this.sorter=null;

 

addTestCase(new cLoginBlocked());

addTestCase(new cLoginUserNotFound());

addTestCase(new cLoginSuccessful());

[...]