0 Replies Latest reply on Dec 16, 2011 7:17 AM by JavierSivack

    FlexUnit Ant task freeze at Reciving Data...

    JavierSivack

      Hello,

      I'm trying to use flex unit task and when I run it, get this on console and stay there for ever.

      "*****" is just to privacy

       

      this is my ant task

       

       

      <target name="UNIT TEST">

                          <echo>COMPILING TEST SWF..</echo>

                          <mxmlc output="${basedir}/bin/Test.swf" file="${basedir}/test-src/TestRunner.as">

                                    <target-player>${env.TARGET_PLAYER}</target-player>

       

                                    <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>

                                    <source-path path-element="${FLEX_HOME}/frameworks"/>

                                    <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">

                             <include name="libs" />

                      <include name="../bundles/{locale}" />

                          </compiler.library-path>       

       

                                    <source-path path-element="${env.WIP_CLIENT_COM_SRC_PATH}"/>

                                    <define name="CONFIG::FLASH_AUTHORING" value="false"/>

       

                                    <source-path path-element="${basedir}/test-src"/>

                                    <source-path path-element="${basedir}/src"/>

                                    <compiler.library-path dir="${basedir}" append="true">

                                   <include name="libs" />

                                </compiler.library-path>  

                                    <compiler.library-path dir="${env.WIP_CLIENT_COM_SRC_PATH}" append="true">

                                   <include name="libs" />

                                </compiler.library-path>  

                                    <compiler.external-library-path dir="${env.WIP_CLIENT_COM_SRC_PATH}/libs" append="true">

                                              <include name="GenericChat.swc"/>

                                    </compiler.external-library-path>

                           </mxmlc>

                          <echo>COMPILED TEST SWF..</echo>

       

                          <echo>Running Test Runner SWF</echo>

              <flexunit swf="${basedir}\bin\Test.swf"

                  toDir="${basedir}\bin"

                  haltonfailure="true"

                  verbose="true"

                  localTrusted="false"/>

              <echo>Ran Test Runner SWF</echo>

       

       

              <echo>Generate Readable Tests</echo>

              <junitreport todir="${basedir}\bin">

                  <fileset dir="${basedir}\bin">

                      <include name="TEST-*.xml"/>

                  </fileset>

                  <report format="frames" todir="${basedir}\bin\html"/>

              </junitreport>

              <echo>Generated Readable Tests</echo>

                </target>

       

       

       

      Buildfile:******.xml

      UNIT TEST:

           [echo] COMPILING TEST SWF..

          [mxmlc] Cargando el archivo de configuración D:\Desarrollo\fdk\flex_sdk_4.5.1.21328\frameworks\flex-config.xml

          [mxmlc] D:\Proyectos\Bubble\Cliente\trunk\test-src\TestRunner.as: Advertencia: Esta unidad de compilación no tiene ninguna factoryClass especificada en los metadatos del fotograma para cargar las bibliotecas compartidas en tiempo de ejecución configuradas. Para compilar sin bibliotecas compartidas en tiempo de ejecución establezca la opción -static-link-runtime-shared-libraries en true o elimine la opción -runtime-shared-libraries.

          [mxmlc] *********Test.swf (50729 bytes)

           [echo] COMPILED TEST SWF..

           [echo] Running Test Runner SWF

      [flexunit] Validating task attributes ...

      [flexunit] Generating default values ...

      [flexunit] Using default working dir [****]

      [flexunit] Using the following settings for the test run:

      [flexunit]           FLEX_HOME: [*****fdk\flex_sdk_4.5.1.21328]

      [flexunit]           haltonfailure: [true]

      [flexunit]           headless: [false]

      [flexunit]           display: [99]

      [flexunit]           localTrusted: [false]

      [flexunit]           player: [flash]

      [flexunit]           port: [1024]

      [flexunit]           swf: [****\Test.swf]

      [flexunit]           timeout: [60000ms]

      [flexunit]           toDir: [********\bin]

      [flexunit] Setting up server process ...

      [flexunit] Starting server ...

      [flexunit] Opening server socket on port [1024].

      [flexunit] Waiting for client connection ...

      [flexunit] Executing 'rundll32' with arguments:

      [flexunit] 'url.dll,FileProtocolHandler'

      [flexunit] '********\Test.swf'

      [flexunit] The ' characters around the executable and arguments are

      [flexunit] not part of the command.

      [flexunit] Client connected.

      [flexunit] Setting inbound buffer size to [262144] bytes.

      [flexunit] Receiving data ...

       

       

      Thank you in advance.

      Javier