Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

FlexUnit 4 test cases running sequence problem

$
0
0

Hi All,

 

I am facing some problem in running my test cases in sequence in FlexUnit 4. Suppose i am adding the test case class in my main MXML.

 

public function runMyTest():void
            {

                 flexUnitCore = new FlexUnitCore();

                 flexUnitCore.addListener( new UIListener( testRunner ));

              //My test suite class name is SvcTest

                 flexUnitCore.run(SvcTest);
                
            
             }

 

In my test suite class called SvcTest i simply defined public variables of all the classes which needs to be tested , I want all of them to be excuted in sequence. For examples the code is below:-

 

package com.testcase.svc
{
    import com.testcase.svc.cases.*;
    [Suite]
    [RunWith("org.flexunit.runners.Suite")]    
    public class SvcTest
    {
        public var a:LocaleSvcTest;
        public var b:AuthenticateSvcTest;
        public var c:NumberFormattingSvcTest;
        public var d:EngineSvcTest;
        public var e:ApplicationConfigSvcTest;
    }
}

 

Now i want my first test class to be executed is LocaleSvcTest, then AuthenticationSvcTest, so on and so forth. But i see it takes random class and executes. Can some1 help me out with these problem and tell me how to make it in a sequence and execute one by one.

 

Thanks in Advance,

 

Rupam


Viewing all articles
Browse latest Browse all 25673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>