-
1. Re: AirCIListener freezing in FlexUnit 4.1 RC2
Michael Labriola Jan 6, 2011 8:19 AM (in response to richard.szalay)Sounds like the player isn't getting the acknowledgment to continue... although you said it gets through a few tests. Are you sure about that/is it always the same number or same test that fails?
Just asking as I haven't seen this but obviously need to get it fixed
-
2. Re: AirCIListener freezing in FlexUnit 4.1 RC2
richard.szalay Jan 6, 2011 8:27 AM (in response to Michael Labriola)It's always between 4 and 6 tests when it freezes - always the same number within a build, though causing a full rebuild could cause it to change (between 4 and 6). It definitely sounds like it's freezing when attempting to fire off the buffer to the server.
Also, I can confirm that moving back to FlexUnit 4.0 (swc and jar) fixes the problem.
-
3. Re: AirCIListener freezing in FlexUnit 4.1 RC2
Michael Labriola Jan 6, 2011 8:49 AM (in response to richard.szalay)Okay, thanks for the effort on this.
What's your environment like, os, jre version, etc.? Will try to get setup here to replicate
Mike
-
4. Re: AirCIListener freezing in FlexUnit 4.1 RC2
richard.szalay Jan 6, 2011 9:00 AM (in response to Michael Labriola)Windows 7 64-bit
Ant 1.7.0
JRE 6 U17
Flex SDK 4.1
FlexUnit 4.1 RC2 executing a single legacy FU1 "SuiteMethod" suite (~150 test cases contains 1002 tests; though the freeze is always after the first 4-6)
Some of the old test cases also use asMock (though FU1 integration, though, not the newer metadata or rule integration)
Let me know if you need any more information.
Cheers,Rich
-
5. Re: AirCIListener freezing in FlexUnit 4.1 RC2
tkaczanko Jan 7, 2011 3:39 PM (in response to richard.szalay)Rich,
We're trying to get this set up and figured out for you, but I'm having a hard time getting the test cases working. Can you give me a sample of asMock working in a FlexUnit1 test? This is what I'm having trouble with. Thank you.
-Tom
-
6. Re: AirCIListener freezing in FlexUnit 4.1 RC2
richard.szalay Jan 10, 2011 2:00 AM (in response to tkaczanko)Hi Tom,
The advice on the asMock website on FlexUnit 1 integration is actually incorrect (I'll try to get around to updating it when I can). Assuming you've added the asmock swc to your lib path, your TestCase class will need to subclass ASMockTestCase (updated version linked), then you can pass the required class/interface (interface recommended) to the base constructor:
public function SampleTestCase()
{
super([IInterfaceToMock]);
}
You can then call "mockRepository.createStub" from your individual tests.
Richard
-
7. Re: AirCIListener freezing in FlexUnit 4.1 RC2
Thomas Fowler Jan 10, 2011 9:14 AM (in response to richard.szalay)Hi Richard-
I'm also working with Tom on your issue. I created a sample test suite and was able to run a series of tests (8 of them to be exact) without any issues (albeit these tests are very rudimentary.) Could you provide an example of one of the tests, preferably one between the 4 and 6 range you described in your posts? I just want to be able to build a test case similar to those in that range so narrow down the possibilities.
Thanks,
Thomas

