|
From: Luke B. <lb...@gm...> - 2006-04-08 21:38:04
|
Hey Keith,
Sorry for taking so long to get back to you on this...
You have uncovered a pretty significant weakness in my TestCaseXml
implementation and I wanted to make some time to really address it.
Based on the structure of your example, I assume you're working with the
as25 framework. So, everything that I say here is related to that branch
only.
I have updated the framework sources found in sourceforge svn to now suppor=
t
TestCaseXml a little more cleanly. The changes should have no effect on
legacy implementations that were working, but moving forward, you will no
longer "need" to override onLoad and call super.run(), the TestCaseXml and
TestCase classes have been more closely coupled so that now, you simply nee=
d
to do something like this:
public function run():Void {
xmlData =3D new TestCaseXml("test.xml", this);
}
and everything should work correctly - if there is an issue with loading th=
e
data, you should get a relatively useful test error and red bar.
Unfortunately, I did uncover a problem with the native XML object - if the
xml document that is loaded has no data in it - the request just kind of
hangs. No handlers get called and I wasn't able to even get an interval to
fire. It's probably just that I'm doing something stupid, but if someone ha=
s
any ideas, they'd be greatly appreciated.
Please feel free to grab the latest framework sources from subversion at:
http://sourceforge.net/svn/?group_id=3D108947
Thanks Keith!
Luke Bayes
www.asunit.org
|