1 Reply Latest reply: Aug 13, 2012 12:41 AM by Omita RSS

    Flexunit on a headless mac server

    erwg34yv3 Community Member

      Has anyone successfully ran flexUnit on a headless mac?

      im running ant builds via Jenkins, it will build a flex app no problem, however when I try to build the sample flexunit CI app I get the followin error

      [flexunit] LSOpenURLsWithRole() failed with error -10810 for the file /Library/Jenkins/jobs/flexUnitSampleCIProject/workspace/target/bin/TestRunner.swf.


      im using the Jenkins Xvnc plugin wich looks like it is working however I notice flexUnit is using the following settings


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

      [flexunit] FLEX_HOME: [/Library/Flex/flex_sdk_4]

      [flexunit] haltonfailure: [false]

      [flexunit] headless: [false]

      [flexunit] display: [99]

      [flexunit] localTrusted: [false]

      [flexunit] player: [flash]

      [flexunit] port: [1024]

      [flexunit] swf: [/Library/Jenkins/jobs/flexUnitSampleCIProject/workspace/target/bin/TestRunner.swf]

      [flexunit] timeout: [60000ms]

      [flexunit] toDir: [/Library/Jenkins/jobs/flexUnitSampleCIProject/workspace/target/report]


      If I set headless = true build fails with

      [flexunit] Validating task attributes ...
      [flexunit] OS: [Mac]


      Any help would be greatly apricated

        • 1. Re: Flexunit on a headless mac server
          Omita Community Member

          I'm trying to use Xvfb on OSX with Jenkins and having the same issue:


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

          [flexunit] Waiting for client connection ...

          [flexunit] LSOpenURLsWithRole() failed with error -10810 for the file /Users/Shared/Jenkins/Home/jobs/Flash_Client_UnitTests/workspace/unittest/bin/TestRunner. swf.


          [flexunit] Stopping server ...

          [flexunit] End of test data reached, sending acknowledgement to player ...

          [flexunit] Closing client connection ...

          [flexunit] Closing server on port [1024] ...



          And here is what Apple says about that error...


          kLSUnknownErr -10810 An unknown error has occurred.

          Available in OS X v10.0 and later