I can't see any reference to TestRunner in the download I'm trying to
use (as2ant_2.0.zip). Is that for asunit? I thought the example used
as2lib, and that as2lib is a different engine to asunit...


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Chris Allen
Sent: 10 July 2006 17:21
To: Open Source Flash Mailing List
Subject: Re: [osflash] as2ant unittest task - silence...

It sounds like your TestRunner is not dispatching the events through
the XMLSocket. You need to implement the version of TestRunner that
comes with the AS2Ant download. Did you do that?

-Chris

On 7/10/06, Michael Forrest <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi - I'm new here...
>
>
>
> I think I've got all the configuration nearly right on the unittest
task -
> I'm trying to get the sample to run, but once the swf launches,
nothing
> happens until I close it.
>
>
>
> Anybody know what's going wrong?
>
>
>
> The procedure runs as follows:
>
>
>
> Apache Ant version 1.6.5 compiled on June 2 2005
>
> Buildfile: C:\workspaces\flash\Filesystem
Test\Build\as2ant\samples\unit
> test\build.xml
>
> parsing buildfile C:\workspaces\flash\Filesystem
> Test\Build\as2ant\samples\unit test\build.xml with URI =
>
file:///C:/workspaces/flash/Filesystem%20Test/Build/as2ant/samples/unit%
20test/build.xml
>
> Project base dir set to: C:\workspaces\flash\Filesystem
> Test\Build\as2ant\samples\unit test
>
>  [property] Loading C:\workspaces\flash\Filesystem
> Test\Build\as2ant\samples\unit test\build.properties
>
> Build sequence for target(s) `sample' is [sample]
>
> Complete build sequence is [sample, ]
>
> sample:
>
>     [mtasc] Compiling 1 source file.
>
>     [mtasc] "C:\workspaces\flash\Filesystem
Test\Build\exe\mtasc\mtasc.exe"
> -swf "C:\workspaces\flash\Filesystem Test\Build\as2ant\samples\unit
> test\build\test.swf" -header 10:10:10 -cp
"C:\workspaces\flash\Filesystem
> Test\Build\as2lib\src" -cp "C:\workspaces\flash\Filesystem
> Test\Build\as2ant\samples\unit test\tests" -cp
> "C:\workspaces\flash\Filesystem Test\Build\flash" -main
> org\as2lib\app\conf\MtascApplication.as
>
>  [unittest] "C:\Program Files\Macromedia\Flash
8\Players\SAFlashPlayer.exe"
> "C:\workspaces\flash\Filesystem Test\Build\as2ant\samples\unit
> test\build\test.swf"
>
>  [unittest] -
>
>  [unittest] -
>
>
>
> [[[ Then there's an indefinite pause until the swf is closed,
whereupon the
> process shows the following: ]]]
>
>
>
> [unittest] Exception in thread "Thread-2"
C:\workspaces\flash\Filesystem
> Test\Build\as2ant\samples\unit test\build.xml:16: Error on reading
result.
>
>  [unittest] at org.as2lib.ant.UnitTest$Receiver.run(Unknown
> Source)
>
>  [unittest] Caused by: java.net.SocketException: socket closed
>
>  [unittest] at java.net.PlainSocketImpl.socketAccept(Native
> Method)
>
>  [unittest] at java.net.PlainSocketImpl.accept(Unknown Source)
>
>  [unittest] at java.net.ServerSocket.implAccept(Unknown
> Source)
>
>  [unittest] at java.net.ServerSocket.accept(Unknown Source)
>
>  [unittest] ... 1 more
>
>  [unittest] --- Nested Exception ---
>
>  [unittest] java.net.SocketException: socket closed
>
>  [unittest] at java.net.PlainSocketImpl.socketAccept(Native
> Method)
>
>  [unittest] at java.net.PlainSocketImpl.accept(Unknown Source)
>
>  [unittest] at java.net.ServerSocket.implAccept(Unknown
> Source)
>
>  [unittest] at java.net.ServerSocket.accept(Unknown Source)
>
>  [unittest] at org.as2lib.ant.UnitTest$Receiver.run(Unknown
> Source)
>
> BUILD SUCCESSFUL
>
> Total time: 2 minutes 55 seconds
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to