3 Replies Latest reply on Mar 11, 2011 2:14 PM by trevorbutler

    FU4.1RC2 - tests do not start executing with adl.exe

    trevorbutler Level 1

      Hello again...


      I wanted to see if there was a known issue with FlexUnit4.1 RC2 when running AIR based tests with the "air" player option.


      What I am seeing is that adl.exe launches a window, and the display says it is running tests, but no tests are ever executed. The window stays open forever until I kill it manually. The interesting thing is that I can run adl.exe from the command line using the same arguments FlexUnit says it is using, and the runner window will appear and the tests will run.  I cannot imagine what the difference is between the Ant task running adl.exe and my running it from the command line.


      Here is the setup.

      • I set FLEX_HOME to the latest Adobe Flex 4.1 SDK, which contains an AIR runtime (2.0.2 I think).
      • I then run the FlexUnit Ant task and use the AirCIListener in my MXML file.
      • Note that for now I am still using the Flex 3.5 level binaries for FlexUnit 4.1 RC2 as we have a few projects that are still building at that level.
      • Java 6 u24
      • Ant 1.7.1
      • Eclipse Helios Service Release 2


      Here is the log output:



      [flexunit] Validating task attributes ...
      [flexunit] Generating default values ...
      [flexunit] Using default working dir [C:\EclipseWorkspace3.5\report.renderer_tests_2\Source\Flex]
      [flexunit] Using the following settings for the test run:
      [flexunit]     FLEX_HOME: [C:\Flex\FlexSDK4.1]
      [flexunit]     haltonfailure: [false]
      [flexunit]     headless: [false]
      [flexunit]     display: [99]
      [flexunit]     localTrusted: [true]
      [flexunit]     player: [air]
      [flexunit]     port: [1024]
      [flexunit]     swf: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\report.renderer.tests.unit.swf]
      [flexunit]     timeout: [1800000ms]
      [flexunit]     toDir: [C:\EclipseWorkspace3.5\report.renderer_tests_2\reports\xml]
      [flexunit] Setting up server process ...
      [flexunit] Starting server ...
      [flexunit] Opening server socket on port [1024].
      [flexunit] Waiting for client connection ...
      [flexunit] Found AIR version: 2.0
      [flexunit] Created application descriptor at [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\flexUnitDescriptor.xml]
      [flexunit] Executing 'C:\DJTE\config\Flex\FlexSDK4.1\bin\adl.exe' with arguments:
      [flexunit] 'C:\EclipseWorkspace3.5\report.renderer_tests_2\build\flexUnitDescriptor.xml'
      [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 ...
      [flexunit] Sending acknowledgement to player to start sending test data ...


      At this point, adl.exe launches but no tests run, and I have to kill the window.


      Any ideas?


      Thanks in advance...