As the Flash Player is closed with a fscommand call by itself I've created a little patch for flexmojos that closes the process from the outside. Now it also works if you are running the unit tests in a browser. If you like to add this to a future version, I will clean up my code and send you a patch.
Christoph On 6 Aug., 17:02, Marvin Froeder <[email protected]> wrote: > As I said, "integration tests.... isn't supported by flexmojos" > > On Fri, Aug 6, 2010 at 12:00 PM, ripcurlx > <[email protected]>wrote: > > > > > Yeah, I need a browser context for my integration tests to login and > > logout of a test server. > > So there is no workaround for my situation using flexmojos? > > > cheers, > > > Christoph > > > On 6 Aug., 16:58, Marvin Froeder <[email protected]> wrote: > > > Yeah, kinda make no sense running unit test on a browser..... usually if > > you > > > need a browser mean you are going to access some extra/external thing, > > and > > > that is more the role for integration tests.... which isn't supported by > > > flexmojos at the moment. > > > > VELO > > > > On Fri, Aug 6, 2010 at 11:56 AM, ripcurlx <[email protected] > > >wrote: > > > > > I celebrated my victory to early :-(. > > > > Unfortunately the running of tests within the browser works, but > > > > unfortunately it doesn't close the browser in the end and goes into an > > > > endless connection check loop: > > > > > [DEBUG] [RESULT] Recivied data: <testsuite errors="0" failures="0" > > > > name="com.test.TestApp" tests="1" time="0"> > > > > <testcase name="testGreeting" time="0"/> > > > > </testsuite> > > > > [DEBUG] [RESULT] End test suite > > > > [DEBUG] [RESULT] Recivied data: <endOfTestRun/> > > > > [DEBUG] [RESULT] End test run - sending ACK: <endOfTestRunAck/> > > > > [DEBUG] [RESULT] Socket buffer > > > > [DEBUG] [CONTROL] status is: OK > > > > [DEBUG] [MOJO] launcher RUNNING > > > > [DEBUG] [MOJO] pinger RUNNING > > > > [DEBUG] [MOJO] resultHandler DONE > > > > [DEBUG] [MOJO] launcher RUNNING > > > > [DEBUG] [MOJO] pinger RUNNING > > > > [DEBUG] [MOJO] resultHandler DONE > > > > [DEBUG] [CONTROL] query status > > > > [DEBUG] [CONTROL] received status > > > > [DEBUG] [CONTROL] status is: FINISHED > > > > [DEBUG] [CONTROL] FINISHED received, terminating the thread > > > > [DEBUG] [MOJO] launcher RUNNING > > > > [DEBUG] [MOJO] pinger DONE > > > > [DEBUG] [MOJO] resultHandler DONE > > > > [DEBUG] [MOJO] launcher RUNNING > > > > [DEBUG] [MOJO] pinger DONE > > > > [DEBUG] [MOJO] resultHandler DONE > > > > ... > > > > > Is there a workaround to timeout at this point as well? > > > > > - Christoph > > > > > On 6 Aug., 14:20, ripcurlx <[email protected]> wrote: > > > > > ups - little typo. I wanted to say, now it works.. > > > > > > On 6 Aug., 14:02, ripcurlx <[email protected]> wrote: > > > > > > > Thanks, not it works using the new property $ > > > > > > {flex.flashPlayer.command} :-) > > > > > > > On 6 Aug., 13:39, Marvin Froeder <[email protected]> wrote: > > > > >http://repository.sonatype.org/content/sites/flexmojos-site/4.0-alpha. > > .. > > > > > > > > On Fri, Aug 6, 2010 at 6:51 AM, ripcurlx < > > > > [email protected]>wrote: > > > > > > > > > First I thought I could easily solve it just by pointing > > > > > > > > flasplayerCommand to a browser instance, but I run into other > > > > issues > > > > > > > > with flexmojos 4.0-alpha-4: > > > > > > > > > After removing the path to the FlashPlayer from my bash_profile > > I > > > > > > > > tried lots of combination, but was not able to launch the unit > > > > tests > > > > > > > > anymore: > > > > > > > > > [DEBUG] [LAUNCHER] exec: Flash Player - > > /Users/chris/IdeaProjects/ > > > > > FlexMojosTest/FlashIntegrationTests/target/test-classes/TestRunner.swf > > > > > > > > ... > > > > > > > > Failed to launch Flash Player. Probably java was not able to > > find > > > > > > > > flashplayer. > > > > > > > > > I tried it with the additional parameter: > > > > > > > > mvn clean install -Dflashplayer.command=/Applications/Adobe\ > > Flash\ > > > > > > > > Player/Flash\ Player.app/Contents/MacOS/Flash\ Player > > > > > > > > > added it to my pom: > > > > > > > > <testRunner> > > > > > > > > <launcher> > > > > > > > > <flashplayerCommand>${flashplayer.command}</flashplayerCommand> > > > > > > > > </launcher> > > > > > > > > </testRunner> > > > > > > > > > also tried to add it as a property in my pom: > > > > > > > > <properties> > > > > > > > > <flashplayer.command>/Applications/Adobe\ Flash\ > > Player/Flash\ > > > > > > > > Player.app/Contents/MacOS/Flash\ Player</flashplayer.command> > > > > > > > > </properties> > > > > > > > > ... > > > > > > > > > but somehow it never picks up this parameters I'm setting. Did > > > > > > > > something changed for flexmojos 4? > > > > > > > > > thanks for your support, > > > > > > > > > Christoph > > > > > > > > > On 5 Aug., 12:46, ripcurlx <[email protected]> > > wrote: > > > > > > > > > Hi, > > > > > > > > > running the unit tests in the FlashPlayer works without any > > > > problems. > > > > > > > > > Beside the unit tests I have also Flash Integration tests. In > > the > > > > > > > > > tests I have to be able to login and logout from my test > > server. > > > > > > > > > Unfortunately that only works if I run the tests within a > > > > browser, > > > > > > > > > that sends the cookies. > > > > > > > > > > Is there a way to run the unit test swf with flexmojos within > > a > > > > > > > > > browser as well? > > > > > > > > > > cheers, > > > > > > > > > > Christoph > > > > > > > > > -- > > > > > > > > You received this message because you are subscribed to the > > Google > > > > > > > > Groups "Flex Mojos" group. > > > > > > > > To post to this group, send email to > > [email protected] > > > > > > > > To unsubscribe from this group, send email to > > > > > > > > [email protected]<flex-mojos%2bunsubscr...@googlegrou > > > > > > > > ps.com> > > <flex-mojos%2bunsubscr...@googlegrou ps.com> > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com> > > > > > > > > For more options, visit this group at > > > > > > > >http://groups.google.com/group/flex-mojos > > > > > > > > >http://flexmojos.sonatype.org/ > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Flex Mojos" group. > > > > To post to this group, send email to [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<flex-mojos%2bunsubscr...@googlegrou > > > > ps.com> > > <flex-mojos%2bunsubscr...@googlegrou ps.com> > > > > For more options, visit this group at > > > >http://groups.google.com/group/flex-mojos > > > > >http://flexmojos.sonatype.org/ > > > -- > > You received this message because you are subscribed to the Google > > Groups "Flex Mojos" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<flex-mojos%2bunsubscr...@googlegrou > > ps.com> > > For more options, visit this group at > >http://groups.google.com/group/flex-mojos > > >http://flexmojos.sonatype.org/ -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
