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

Reply via email to