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