|
From: Darren C. <da...@dc...> - 2006-03-22 05:17:31
|
>>The file in question is located in
>>framework/as2/com/asunit/framework/TestRunner.as
>> ...
> For proof-of-concept I'll try just replacing that whole file.
> ...
> I'm willing to work on an XML sockets version, with a PHP back-end.
I have a working proof-of-concept now, so unless someone is already
working on this I'll go ahead and do it properly. This will just be in
the as2 branch (I need Flash 6 support so haven't looked at as25/as3).
My proposed changes:
1. Split TestRunner into TestRunner and TestRunnerLocalConnection.
(I.e. TestRunner will become an abstract base class)
2. Add TestRunnerXMLSocket as an alternative
3. In Assert.as's getTestRunner() decide what type of object to return.
We need a way to tell Assert which TestRunner to use.
TestRunnerLocalConnection needs no parameters, but XMLSocket needs an IP
and port. By idea is to define these vars in Assert:
public static TestRunnerType:String="LocalConnection";
public static TestRunnerParameters:String=null;
So by default it will work the way it does currently, and to use an
XMLSocket I'd write this code:
Assert.TestRunnerType="XMLSocket";
Assert.TestRunnerParameters="127.0.0.1:9123";
Any opinions?
Darren
|