Ok, I can confirm it has nothing to do with the uncaught FP error I
mentioned before. I commented that test out and now it does happen
for me even locally on my dev. box. So, in this log trace you'll see
the last test it executed finished, and then it queries the status
which is OK, but this canClose property is still false, so I'm
assuming that is why the FlashPlayer executable remains open, and it
just keeps repeating this over and over.
[DEBUG] [SYSERR]: FlexUnit4: Test testLoginClick in views.LoginTest finished
[DEBUG] [SYSERR]:
[DEBUG] [CONTROL] query status
[DEBUG] [CONTROL] received status
[DEBUG] [DEBUG] [CONTROL] status is: OK
[SYSERR]: Data handler received data: Server Status
[DEBUG] [SYSERR]:
[DEBUG] [SYSERR]:
[DEBUG] [SYSERR]:
[DEBUG] [SYSERR]: Property canClose is false
[DEBUG] [SYSERR]:
[DEBUG] [SYSERR]: Replying OK
[DEBUG] [SYSERR]:
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger RUNNING
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger RUNNING
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [CONTROL] query status
[DEBUG] [CONTROL] received status
[DEBUG] [SYSERR]: Data handler received data: Server Status
[DEBUG] [CONTROL] status is: OK
The actual test case it runs identified by the above looks like this:
[Test(async, ui)]
public function testLoginClick():void {
_login.usernameTI.text="davis";
_login.passwordTI.text="secret";
_login.serverTI.text="http://vm";
Async.handleEvent(this, _login, LoginEvent.LOGIN, assertLoginEvent,
500);
_login.loginBtn.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true,
false));
}
private function assertLoginEvent(event:LoginEvent, param2:*):void {
Assert.assertEquals(LoginEvent.LOGIN, event.type);
Assert.assertEquals("davis", event.username);
Assert.assertEquals("secret", event.password);
Assert.assertEquals("http://vm", event.baseUrl);
}
...and the setup and teardown for the test case are:
[Before(async, ui)]
public function setUp():void {
_login=new Login();
Async.proceedOnEvent(this, _login, FlexEvent.CREATION_COMPLETE);
UIImpersonator.addChild(_login);
}
[After(ui)]
public function tearDown():void {
UIImpersonator.removeChild(_login);
_login=null;
}
I don't think there is anything unusual about this, but I'm posting it
for reference. This endless loop cycle is a big deal for me since now
I can't seem to run tests from maven anymore. Any ideas on where to
look to resolve this?
Regards,
Davis
On Thu, Aug 5, 2010 at 8:38 AM, Marvin Froeder <[email protected]> wrote:
> I don't recall for sure. You can sneak a peak on sources. I guess if from
> flexmojos swf testrunner, but I'm not absolutely sure on that.
>
> VELO
>
> On Thu, Aug 5, 2010 at 9:36 AM, Davis Ford <[email protected]>
> wrote:
>>
>> Do you know where debug print comes from? It seems to be continuously
>> polling this to determine if it can close the flashplayer or not.
>>
>> [DEBUG] [SYSERR]: Property canClose set to false
>>
>>
>>
>> On Thu, Aug 5, 2010 at 8:32 AM, Marvin Froeder <[email protected]> wrote:
>> > On Thu, Aug 5, 2010 at 9:30 AM, Davis Ford
>> > <[email protected]>
>> > wrote:
>> >>
>> >> I'm not sure if this is an issue with FlexUnit4, FlashPlayer, my test
>> >> case, or flex-mojos, but I thought I'd throw it out there and see if
>> >> VELO had any ideas.
>> >
>> > None.
>> >
>> > --
>> > 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/
>> >
>>
>>
>>
>> --
>> Zeno Consulting, Inc.
>> home: http://www.zenoconsulting.biz
>> blog: http://zenoconsulting.wikidot.com
>> p: 248.894.4922
>> f: 313.884.2977
>>
>> --
>> 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/
>
> --
> 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/
>
--
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977
--
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/