Skip navigation
erwg34yv3
Currently Being Moderated

Flexunit on a headless mac server

Feb 10, 2012 5:42 PM

Tags: #flexunit #mac_os_10.6.8 #mac_osx #tomcat #jenkins

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

 
Replies
  • Currently Being Moderated
    Aug 13, 2012 12:41 AM   in reply to erwg34yv3

    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/unit test/bin/TestRunner.swf.

    [flexunit]

    [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

     

    ..sigh

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points