|
From: Christian G. <ml...@nu...> - 2007-10-11 08:09:34
|
Hi guys, yesterday I spent almost the whole, working, day trying to
make it work. I started with Sprouts but then I found out that is not
really Windows compatible and I couldn't make it work (the fork()
issue). So I went straight to ASUnit to came across the
SystemManager.topLevelSystemManagers issue.
Is there a way, official or not, to make asunit working on Windows with As3?
Thanks for any tips, chr
--
___________________________________________________________________
{ Christian Giordano's site and blog @ http://nuthinking.com }
|
|
From: Robert S. <rob...@gm...> - 2007-10-11 10:47:42
|
> > So I went straight to ASUnit to came across the > SystemManager.topLevelSystemManagers issue. > When you say ASUnit are you talking about the XUL UI?. I am running Windows Vista, and I have not succesfully gotten the XUL UI to launch. I think there may be some incompatibility issues there. I can however write, compile, and run ASUnit tests successfully with FlashDevelop and the Flash Debug Player: http://geekswithblogs.net/rstackhouse/. I am afraid I am not familiar with the "SystemManager.topLevelSystemManagersissue". Do you have an error message or a link to where someone else has documented this problem? Robert On 10/11/07, Christian Giordano <ml...@nu...> wrote: > > Hi guys, yesterday I spent almost the whole, working, day trying to > make it work. I started with Sprouts but then I found out that is not > really Windows compatible and I couldn't make it work (the fork() > issue). So I went straight to ASUnit to came across the > SystemManager.topLevelSystemManagers issue. > Is there a way, official or not, to make asunit working on Windows with > As3? > > Thanks for any tips, chr > > -- > ___________________________________________________________________ > { Christian Giordano's site and blog @ http://nuthinking.com } > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |
|
From: Christian G. <ml...@nu...> - 2007-10-11 11:01:50
|
Hi Robert, I'm refering to this thread: http://sourceforge.net/mailarchive/message.php?msg_id=IJEOJMKCLCEKDIBJEMGHEEGPENAA.info%40robertpenner.com I just looked for that error in the mailing list archive. My problem is on running the tests, not creating them. At the moment I'm creating them kind of manually thus I'm not using XUL UI to run them (instead I'm compiling AsUnitTestRunner.as). Should I use a different procedure? I get compile error "Access of possibly undefined property topLevelSystemManagers through a reference with static type Class." and in fact that property is missing in Flex SWCs. Where is the trick? Thanks, chr On 10/11/07, Robert Stackhouse <rob...@gm...> wrote: > > So I went straight to ASUnit to came across the > > SystemManager.topLevelSystemMa > > nagers issue. > > When you say ASUnit are you talking about the XUL UI?. I am running Windows > Vista, and I have not succesfully gotten the XUL UI to launch. I think > there may be some incompatibility issues there. I can however write, > compile, and run ASUnit tests successfully with FlashDevelop and the Flash > Debug Player: http://geekswithblogs.net/rstackhouse/. > > I am afraid I am not familiar with the > "SystemManager.topLevelSystemManagers issue". Do you have > an error message or a link to where someone else has documented this > problem? > > Robert > > > On 10/11/07, Christian Giordano <ml...@nu...> wrote: > > > > Hi guys, yesterday I spent almost the whole, working, day trying to > > make it work. I started with Sprouts but then I found out that is not > > really Windows compatible and I couldn't make it work (the fork() > > issue). So I went straight to ASUnit to came across the > > SystemManager.topLevelSystemManagers issue. > > Is there a way, official or not, to make asunit working on Windows with > As3? > > > > Thanks for any tips, chr > > > > -- > > > ___________________________________________________________________ > > { Christian Giordano's site and blog @ http://nuthinking.com } > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Asunit-users mailing list > > Asu...@li... > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > -- ___________________________________________________________________ { Christian Giordano's site and blog @ http://nuthinking.com } |
|
From: Robert S. <rob...@gm...> - 2007-10-11 11:12:58
|
Could you supply one of the tests that is giving you grief? I can't reproduce the problem on my end unless I have your test class. This sounds like a compile time error not a runtime error. How are you compiling your tests? With MXMLC? By hand? With Ant or NAnt? It also sounds like you are trying to use Flex Components, this may be part of the cause of your problem. There is a lot of bootstrapping that goes on with Flex Components. Which makes me wonder, is the compiler error coming from the class under test or the test suite? Robert On 10/11/07, Christian Giordano <ml...@nu...> wrote: > > Hi Robert, I'm refering to this thread: > > > http://sourceforge.net/mailarchive/message.php?msg_id=IJEOJMKCLCEKDIBJEMGHEEGPENAA.info%40robertpenner.com > > I just looked for that error in the mailing list archive. > > My problem is on running the tests, not creating them. At the moment > I'm creating them kind of manually thus I'm not using XUL UI to run > them (instead I'm compiling AsUnitTestRunner.as). Should I use a > different procedure? > > I get compile error "Access of possibly undefined property > topLevelSystemManagers through a reference with static type Class." > and in fact that property is missing in Flex SWCs. > > Where is the trick? > > > Thanks, chr > > > On 10/11/07, Robert Stackhouse <rob...@gm...> wrote: > > > So I went straight to ASUnit to came across the > > > SystemManager.topLevelSystemMa > > > nagers issue. > > > > When you say ASUnit are you talking about the XUL UI?. I am running > Windows > > Vista, and I have not succesfully gotten the XUL UI to launch. I think > > there may be some incompatibility issues there. I can however write, > > compile, and run ASUnit tests successfully with FlashDevelop and the > Flash > > Debug Player: http://geekswithblogs.net/rstackhouse/. > > > > I am afraid I am not familiar with the > > "SystemManager.topLevelSystemManagers issue". Do you have > > an error message or a link to where someone else has documented this > > problem? > > > > Robert > > > > > > On 10/11/07, Christian Giordano <ml...@nu...> wrote: > > > > > > Hi guys, yesterday I spent almost the whole, working, day trying to > > > make it work. I started with Sprouts but then I found out that is not > > > really Windows compatible and I couldn't make it work (the fork() > > > issue). So I went straight to ASUnit to came across the > > > SystemManager.topLevelSystemManagers issue. > > > Is there a way, official or not, to make asunit working on Windows > with > > As3? > > > > > > Thanks for any tips, chr > > > > > > -- > > > > > ___________________________________________________________________ > > > { Christian Giordano's site and blog @ http://nuthinking.com } > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Asunit-users mailing list > > > Asu...@li... > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Asunit-users mailing list > > Asu...@li... > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > -- > ___________________________________________________________________ > { Christian Giordano's site and blog @ http://nuthinking.com } > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |
|
From: Robert S. <rob...@gm...> - 2007-10-11 11:20:26
|
Christian, I found this buried in that thread: Unfortunately, the new Flex Builder release includes some significant > refactoring to the framework and so the file that we released is now out > of > date. To fix this issue, you can copy/paste the following into the file > that > the compiler is complaining about and you should be good to go. > After Lukes signature line on that message in the thread is the fix for the problem (patched .as file). Have you tried getting ASUnit from the Subversion repository and building that? On 10/11/07, Robert Stackhouse <rob...@gm...> wrote: > > Could you supply one of the tests that is giving you grief? I can't > reproduce the problem on my end unless I have your test class. This sounds > like a compile time error not a runtime error. How are you compiling your > tests? With MXMLC? By hand? With Ant or NAnt? > > It also sounds like you are trying to use Flex Components, this may be > part of the cause of your problem. There is a lot of bootstrapping that > goes on with Flex Components. Which makes me wonder, is the compiler error > coming from the class under test or the test suite? > > Robert > > On 10/11/07, Christian Giordano <ml...@nu...> wrote: > > > > Hi Robert, I'm refering to this thread: > > > > http://sourceforge.net/mailarchive/message.php?msg_id=IJEOJMKCLCEKDIBJEMGHEEGPENAA.info%40robertpenner.com > > > > > > I just looked for that error in the mailing list archive. > > > > My problem is on running the tests, not creating them. At the moment > > I'm creating them kind of manually thus I'm not using XUL UI to run > > them (instead I'm compiling AsUnitTestRunner.as). Should I use a > > different procedure? > > > > I get compile error "Access of possibly undefined property > > topLevelSystemManagers through a reference with static type Class." > > and in fact that property is missing in Flex SWCs. > > > > Where is the trick? > > > > > > Thanks, chr > > > > > > On 10/11/07, Robert Stackhouse <rob...@gm... > wrote: > > > > So I went straight to ASUnit to came across the > > > > SystemManager.topLevelSystemMa > > > > nagers issue. > > > > > > When you say ASUnit are you talking about the XUL UI?. I am running > > Windows > > > Vista, and I have not succesfully gotten the XUL UI to launch. I > > think > > > there may be some incompatibility issues there. I can however write, > > > compile, and run ASUnit tests successfully with FlashDevelop and the > > Flash > > > Debug Player: http://geekswithblogs.net/rstackhouse/. > > > > > > I am afraid I am not familiar with the > > > "SystemManager.topLevelSystemManagers issue". Do you have > > > an error message or a link to where someone else has documented this > > > problem? > > > > > > Robert > > > > > > > > > On 10/11/07, Christian Giordano < ml...@nu...> wrote: > > > > > > > > Hi guys, yesterday I spent almost the whole, working, day trying to > > > > make it work. I started with Sprouts but then I found out that is > > not > > > > really Windows compatible and I couldn't make it work (the fork() > > > > issue). So I went straight to ASUnit to came across the > > > > SystemManager.topLevelSystemManagers issue. > > > > Is there a way, official or not, to make asunit working on Windows > > with > > > As3? > > > > > > > > Thanks for any tips, chr > > > > > > > > -- > > > > > > > ___________________________________________________________________ > > > > { Christian Giordano's site and blog @ http://nuthinking.com } > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. > > > > Still grepping through log files to find problems? Stop. > > > > Now Search log events and configuration files using AJAX and a > > browser. > > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > _______________________________________________ > > > > Asunit-users mailing list > > > > Asu...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Asunit-users mailing list > > > Asu...@li... > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > > > -- > > ___________________________________________________________________ > > { Christian Giordano's site and blog @ http://nuthinking.com } > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Asunit-users mailing list > > Asu...@li... > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > |
|
From: Christian G. <ml...@nu...> - 2007-10-11 13:22:35
|
Since the thread was pretty old and embed code present on my files, I didn't think it was necessary, but actually now is compiling :) My tests are failing though ;) I presume the issue is sorted then. Thanks a lot, chr On 10/11/07, Robert Stackhouse <rob...@gm...> wrote: > Christian, > > I found this buried in that thread: > > > Unfortunately, the new Flex Builder release includes some significant > > refactoring to the framework and so the file that we released is now out > of > > date. To fix this issue, you can copy/paste the following into the file > that > > the compiler is complaining about and you should be good to go. > > > > After Lukes signature line on that message in the thread is the fix for the > problem (patched .as file). > > Have you tried getting ASUnit from the Subversion repository and building > that? > > > On 10/11/07, Robert Stackhouse <rob...@gm...> wrote: > > Could you supply one of the tests that is giving you grief? I can't > reproduce the problem on my end unless I have your test class. This sounds > like a compile time error not a runtime error. How are you compiling your > tests? With MXMLC? By hand? With Ant or NAnt? > > > > It also sounds like you are trying to use Flex Components, this may be > part of the cause of your problem. There is a lot of bootstrapping that > goes on with Flex Components. Which makes me wonder, is the compiler error > coming from the class under test or the test suite? > > > > > > Robert > > > > > > On 10/11/07, Christian Giordano < ml...@nu...> wrote: > > > Hi Robert, I'm refering to this thread: > > > > > > > http://sourceforge.net/mailarchive/message.php?msg_id=IJEOJMKCLCEKDIBJEMGHEEGPENAA.info%40robertpenner.com > > > > > > I just looked for that error in the mailing list archive. > > > > > > My problem is on running the tests, not creating them. At the moment > > > I'm creating them kind of manually thus I'm not using XUL UI to run > > > them (instead I'm compiling AsUnitTestRunner.as). Should I use a > > > different procedure? > > > > > > I get compile error "Access of possibly undefined property > > > topLevelSystemManagers through a reference with static type Class." > > > and in fact that property is missing in Flex SWCs. > > > > > > Where is the trick? > > > > > > > > > Thanks, chr > > > > > > > > > On 10/11/07, Robert Stackhouse < rob...@gm... > wrote: > > > > > So I went straight to ASUnit to came across the > > > > > SystemManager.topLevelSystemMa > > > > > nagers issue. > > > > > > > > When you say ASUnit are you talking about the XUL UI?. I am running > Windows > > > > Vista, and I have not succesfully gotten the XUL UI to launch. I > think > > > > there may be some incompatibility issues there. I can however write, > > > > compile, and run ASUnit tests successfully with FlashDevelop and the > Flash > > > > Debug Player: http://geekswithblogs.net/rstackhouse/. > > > > > > > > I am afraid I am not familiar with the > > > > "SystemManager.topLevelSystemManagers issue". Do you > have > > > > an error message or a link to where someone else has documented this > > > > problem? > > > > > > > > Robert > > > > > > > > > > > > On 10/11/07, Christian Giordano < ml...@nu...> wrote: > > > > > > > > > > Hi guys, yesterday I spent almost the whole, working, day trying to > > > > > make it work. I started with Sprouts but then I found out that is > not > > > > > really Windows compatible and I couldn't make it work (the fork() > > > > > issue). So I went straight to ASUnit to came across the > > > > > SystemManager.topLevelSystemManagers issue. > > > > > Is there a way, official or not, to make asunit working on Windows > with > > > > As3? > > > > > > > > > > Thanks for any tips, chr > > > > > > > > > > -- > > > > > > > > > > ___________________________________________________________________ > > > > > { Christian Giordano's site and blog @ http://nuthinking.com } > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Splunk Inc. > > > > > Still grepping through log files to find problems? Stop. > > > > > Now Search log events and configuration files using AJAX and a > browser. > > > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > > _______________________________________________ > > > > > Asunit-users mailing list > > > > > Asu...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. > > > > Still grepping through log files to find problems? Stop. > > > > Now Search log events and configuration files using AJAX and a > browser. > > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > _______________________________________________ > > > > Asunit-users mailing list > > > > Asu...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > > > > > > > > -- > > > > ___________________________________________________________________ > > > { Christian Giordano's site and blog @ http://nuthinking.com } > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Asunit-users mailing list > > > Asu...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > -- ___________________________________________________________________ { Christian Giordano's site and blog @ http://nuthinking.com } |
|
From: Luke B. <lb...@pa...> - 2007-10-11 17:11:40
|
Hey Christian, It sounds like you're running a *very* old build of AsUnit. Out of curiosity, where or when did you get it? I suspect we may have a build hanging around somewhere that is out of date. Regarding testing Flex applications, you should be able to use AsUnit to test Flex applications by extending FlexRunner rather than AsUnitTestRunner. Here is an example Flex 2 Application file from one of our projects: <?xml version="1.0" encoding="utf-8"?> <FlexRunner xmlns="asunit.textui.*" xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="runTests()"> <mx:Style source="../css/Lifebin.css"/> <mx:Script> <![CDATA[ import asunit.textui.TestRunner; public function runTests():void { start(AllTests, null, TestRunner.SHOW_TRACE); } ]]> </mx:Script> </FlexRunner> Just out of curiosity, has anyone run AsUnit with Flex 3 projects? Any problems? How about AIR/Apollo? Thanks, Luke Bayes http://www.asserttrue.com |
|
From: Christian G. <ml...@nu...> - 2007-10-11 17:50:58
|
actually I'm quite sure my library came from the framework zip put on the website. chr On 10/11/07, Luke Bayes <lb...@pa...> wrote: > Hey Christian, > > It sounds like you're running a *very* old build of AsUnit. Out of > curiosity, where or when did you get it? I suspect we may have a build > hanging around somewhere that is out of date. > > Regarding testing Flex applications, you should be able to use AsUnit to > test Flex applications by extending FlexRunner rather than AsUnitTestRunner. > Here is an example Flex 2 Application file from one of our projects: > > <?xml version="1.0" encoding="utf-8"?> > <FlexRunner xmlns="asunit.textui.*" > xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="runTests()"> > <mx:Style source="../css/Lifebin.css"/> > <mx:Script> > <![CDATA[ > import asunit.textui.TestRunner; > > public function runTests():void { > start(AllTests, null, TestRunner.SHOW_TRACE); > } > ]]> > </mx:Script> > </FlexRunner> > > Just out of curiosity, has anyone run AsUnit with Flex 3 projects? Any > problems? How about AIR/Apollo? > > > Thanks, > > > Luke Bayes > http://www.asserttrue.com > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > -- ___________________________________________________________________ { Christian Giordano's site and blog @ http://nuthinking.com } |
|
From: Luke B. <lb...@pa...> - 2007-10-11 18:58:16
|
Who's in charge over there at AsUnit!? ;-P I just pushed the most current build, apparently we ditched that whole idea of clobbering framework code at some point and things appear to be working just fine with Flex 2 and Flex 2.0.1 and even Flex 3! You can pull down the latest framework code from the framework link at: http://www.asunit.org/#getStarted Unfortunately, building the XUL UI isn't exactly trivial and neither is publishing releases on Sourceforge, so I'm going to leave the MXP and XUL UI builds potentially a bit broken for now. If anyone finds themselves having problems with Flex 2 projects in XUL UI, you'll need to grab the latest framework zip from that link. I also *finally* added a link on the website to an article that Jonathan Marston wrote awhile ago, here it is again: http://marstonstudio.com/index.php/2007/07/28/asunit-testing-with-flash-cs3-and-actionscript-3/ Thanks for bringing this stuff up! Luke Bayes http://www.asserttrue.com |