You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(58) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(23) |
Feb
(3) |
Mar
(6) |
Apr
(4) |
May
(15) |
Jun
(22) |
Jul
(18) |
Aug
(3) |
Sep
(25) |
Oct
(7) |
Nov
(86) |
Dec
(9) |
| 2006 |
Jan
(20) |
Feb
(44) |
Mar
(59) |
Apr
(23) |
May
(37) |
Jun
(35) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(21) |
Nov
(17) |
Dec
(22) |
| 2007 |
Jan
(13) |
Feb
(7) |
Mar
(1) |
Apr
(13) |
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
(8) |
Sep
(13) |
Oct
(22) |
Nov
(3) |
Dec
|
| 2008 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(34) |
Aug
(10) |
Sep
(5) |
Oct
(6) |
Nov
(8) |
Dec
|
| 2009 |
Jan
(1) |
Feb
(10) |
Mar
(4) |
Apr
(12) |
May
(10) |
Jun
(27) |
Jul
|
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(1) |
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Luke B. <lb...@gm...> - 2005-09-20 16:53:18
|
Hey Mark, Thanks for the heads up. It definitely looks interesting. I'll check it out= =20 over the coming weeks. Does anyone else have any opinions about TestNG? Thanks, Luke Bayes www.asunit.org <http://www.asunit.org> On 9/19/05, M Daggett <hea...@gm...> wrote: >=20 > Hey Luke, > Have you done any research into the testng framework? > Many of my friends who are very serious about testing belive it will > replace unit testing very soon. > http://testng.org/doc/ >=20 > Best, > Mark >=20 > On 9/16/05, Luke Bayes <lb...@gm...> wrote: > > Hey Mark, > > > > Thanks so much for that, I really appreciate you taking the time to=20 > write > > this out. > > > > I'm going to post a link to your file right now. > > > > > > Luke Bayes > > www.asunit.com <http://www.asunit.com> > > > > > > > > On 9/15/05, M Daggett <hea...@gm...> wrote: > > > Opps the PDF link is actually: > > > > > > > > http://www.collcoll.com/content/uploads/Unit-Testing-with-ASUNIT.pdf > > > > > > On 9/15/05, M Daggett < hea...@gm...> wrote: > > > > Hey Luke, > > > > Here is the URL to my primer: > > > > > > > > > > http://www.collcoll.com/index.php/2005/09/13/asunit-primer/ > > > > > > > > This is the url to the PDF which is formated much nicer: > > > > > > > > > > http://www.collcoll.com/index.php/2005/09/13/asunit-primer/ > > > > > > > > If you see anything out of order on the writing let me know. > > > > Best, > > > > Mark > > > > > > > > On 9/15/05, Luke Bayes <lb...@gm...> wrote: > > > > > Great, > > > > > > > > > > Thanks again for putting this together! > > > > > > > > > > > > > > > Luke > > > > > > > > > > > > > > > On 9/14/05, M Daggett < hea...@gm...> wrote: > > > > > > Hey Luke, > > > > > > Ok, I'll stick to the shallow waters, I don't want to lose my > > intended > > > > > > audience. However, if you find any sections of my guide that ar= e=20 > not > > > > > > up to snuff in regards to best practicies (or just plain wrong) > > please > > > > > > let me know. When I get some down time, I'll follow up this=20 > article > > > > > > with a more general "why-to" as opposed to this "how-to". > > > > > > > > > > > > Best, > > > > > > Mark > > > > > > > > > > > > On 9/14/05, Luke Bayes < lb...@gm...> wrote: > > > > > > > Hey Mark, > > > > > > > > > > > > > > I really appreciate your feedback, and if you're using AsUnit > > > > > regularly, > > > > > > > please feel free to let us know any issues you have or > > enhancements you > > > > > > > would like! > > > > > > > > > > > > > > We are really hoping AsUnit will remain the first choice for > > developers > > > > > > > that write to the Flash Player - regardless of their=20 > development > > tools. > > > > > > > > > > > > > > With this article, you have begun an extremely helpful=20 > endeavor > > that we > > > > > > > have been lacking for a long, long time now... > > > > > > > > > > > > > > Answers below: > > > > > > > > > > > > > > >> 1. I'll give a more detailed usage of the proper use of > > fixtures. > > > > > > > Awesome! > > > > > > > > > > > > > > >> 2. I have been asked from another reader to explain to the= =20 > new > > users > > > > > > > >> why you should use a framework like ASUNIT as opposed to > > writing > > > > > your > > > > > > > >> own custom testClass (which seems pretty obvious, but I'll= =20 > dig > > into > > > > > > > >> the subject anyway). > > > > > > > > > > > > > > I've been asked about this quite a few times. I think this=20 > would > > be a > > > > > > > really important article, but I would separate it from the=20 > getting > > > > > started > > > > > > > guide. That is the "why", in your article, you have concisely= =20 > and > > > > > eloquently > > > > > > > described the "how". > > > > > > > > > > > > > > >> 3. I would like to give more input on XULRUNNER though I a= m=20 > a > > little > > > > > > > >>fuzzy on how some of the details work so it would probably= =20 > be > > best if > > > > > > > >>I could ask you some specific questions about it. For=20 > example, > > I can > > > > > > > >>create test suites from it, but can I run them? > > > > > > > > > > > > > > Please don't spend too much time documenting the alpha that w= e > > have > > > > > > > released! We're busy iterating on it right now and there are= =20 > some > > big > > > > > > > improvements on the way... To your question, you will probabl= y=20 > not > > be > > > > > able > > > > > > > to "execute" test suites from XULRunner. It is meant to be a > > standalone > > > > > > > application that "integrates" with whatever development tools= =20 > you > > use - > > > > > to > > > > > > > name a few that I have used over the past year: FAMES, > > FlexBuilder, > > > > > Flash MX > > > > > > > 2k4, Flash 8.x, PrimalScript, TextPad, Emacs... The main=20 > compiler > > that > > > > > we're > > > > > > > writing it to is MTASC. If you're not using that yet, I would > > highly > > > > > > > recomend that you start, it's AMAZING. I finally came around > > pretty > > > > > > > recently, but I don't think I'll be able to go back! > > > > > > > > > > > > > > >> 4. Can ASUNIT support mock objects, if so do you think tha= t > > would be > > > > > > > >> worth mentioning in an intro article? > > > > > > > > > > > > > > It absolutely can support mock objects, as a matter of fact, > > we're > > > > > looking > > > > > > > at automatically writing mock stubs for the XULRunner build..= .=20 > I > > think > > > > > that > > > > > > > your article has a perfect amount of depth as it is and I=20 > wouldn't > > try > > > > > to > > > > > > > get into much more detail in that first chapter. With that=20 > said, I > > think > > > > > you > > > > > > > would be an excellent spokesperson for unit testing and if=20 > you'd > > like to > > > > > > > publish any number of additional articles, we would be more= =20 > than > > happy > > > > > to > > > > > > > host or at least link to your "series"... ;-) > > > > > > > > > > > > > > > > > > > > > Thanks again! > > > > > > > > > > > > > > > > > > > > > > > > > > > > Luke Bayes > > > > > > > www.asunit.com <http://www.asunit.com> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > I am Mark Daggett and I approve this message. > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > -------------------------------------------------------------------- > > > > I am Mark Daggett and I approve this message. > > > > > > > > > > > > > -- > > > > > -------------------------------------------------------------------- > > > I am Mark Daggett and I approve this message. > > > > > > > >=20 >=20 > -- > -------------------------------------------------------------------- > I am Mark Daggett and I approve this message. > |
|
From: Luke B. <lb...@gm...> - 2005-09-10 01:05:44
|
>> When I can, I will download the CVS version and see if it works, and the= =20 perms on the file it generates. Tonight and tomorrow I'm just slammed with= =20 work and I can't do a thing.=20 Hey Don, The directories that you have where the application.ini file resides should= =20 already have anonymous cvs files in them. You should be able to simply go t= o=20 that directory and enter "cvs update" from the command prompt. After that -= =20 just do "xulrunner application.ini" to see the new code and you should be= =20 fine. I believe you're absolutely correct about the entry. I have updated the=20 sources to use 0750 so the real version might actually work at this point. If you do need to tweak that param, it's in: xulCreateClass/chrome/createclass/script/CreateClass.js approx. line 6: CreateClass.LINUX_PERMISSIONS =3D 0750; If it needs to change, please let me know what works and I'll be sure to=20 update the sources over here. (FYI: Sourceforge is down right now so I'm unable to make that commit, but= =20 it should be done shortly...) Thanks again, Luke Bayes www.asunit.com <http://www.asunit.com> |
|
From: Robert P. <in...@ro...> - 2005-09-08 21:34:45
|
This works:
Sys.println('<lyric-font font-family="Arial" font-size="10.6"
name="section"/>');
Did you have anything more complex, like CDATA or line breaks?
Also, I found that tabs will terminate a string unless escaped, in which
case the Output panel shows it as a space.
msg = stringReplace(msg, "\t", "\\t");
Hold the phone, just found another one. Literal backslashes "\\" need to be
escaped as well.
msg = stringReplace(msg, "\\", "\\\\");
This should happen before the other escapes, of course.
Here's a string testing the various characters so far:
Sys.println("one\rtwo\nthree's\tcompany\\\\//");
Desired output:
one
two
three's company\\//
If you don't escape the backslashes, they collapse to a single one in the
output.
Robert
-----Original Message-----
From: asu...@li...
[mailto:asu...@li...]On Behalf Of Luke Bayes
Sent: Thursday, September 08, 2005 1:53 PM
To: asu...@li...
Subject: Re: [Asunit-users] escaping special characters sent through
MMExecute
Hey Robert,
There has been a really persistent bug related to sending an XML string
through JSFL, I think it's root is in these special characters. Can you see
if a typical XML string will make it through this script?
If so, I'll update the sources with your suggestion this afternoon.
Thanks,
Luke Bayes
www.asunit.com
|
|
From: Luke B. <lb...@gm...> - 2005-09-08 20:53:20
|
Hey Robert, There has been a really persistent bug related to sending an XML string=20 through JSFL, I think it's root is in these special characters. Can you see= =20 if a typical XML string will make it through this script? If so, I'll update the sources with your suggestion this afternoon. Thanks, Luke Bayes www.asunit.com <http://www.asunit.com> |
|
From: Robert P. <in...@ro...> - 2005-09-08 20:43:52
|
Here's a little thing I've run into. Sys.println() sends messages to the UI,
which are sent to MMExecute:
[asunit.ui.Main.as]
public function onShowEcho(msg, category) {
msg = unescape(msg);
if(showSys.selected) {
outputPanel.text += msg;
} else {
MMExecute("fl.trace('" + msg + "');");
}
}
I can generate a JSFL error window by sending any of these strings:
"'"
"\r"
"\n"
Currently I'm escaping them like so--
msg = stringReplace(msg, "\r", "\\r");
msg = stringReplace(msg, "\n", "\\n");
msg = stringReplace(msg, "'", "\\'");
--where stringReplace is:
static function stringReplace(source:String, find:String,
replace:String):String
{
return source.split(find).join(replace);
}
(If anyone has an alternative string replace shown to be more efficient, let
me know.)
I'm doing the escaping in Sys.as right now because it's convenient, but it
should be done in Main.as really, because the issue is with MMExecute().
Robert
|
|
From: Luke B. <lb...@gm...> - 2005-09-08 17:37:30
|
Hey Don, Please disregard my last request... We have gone into CVS and changed the permissions parameter to use a static= =20 member which is: CreateClass.LINUX_PERMISSIONS =3D 7; If you could please do a CVS update on the directory where you find the=20 application.ini file, you should retreive the changed files. If you still have problems, please change that parameter value which is=20 found in: chrome/createclass/script/CreateClass.js=20 (near the top of the file) Any mac users out there getting any love? (or no love for that matter) Thanks, Luke Bayes www.asunit.com <http://www.asunit.com> |
|
From: Luke B. <lb...@gm...> - 2005-09-08 08:36:28
|
Hey Don, I think I know what's causing the problem... It's a one-liner. There was an argument for the nsiFile.create argument that talked about=20 linux file permissions and I couldn't figure out what would be an=20 appropriate value. It seemed to work on windows so I didn't spend any time= =20 on it... Here is the reference: http://xulplanet.com/references/xpcomref/ifaces/nsIFile.html Based on this information: "*permissions:* The unix style octal permissions. This may be ignored on=20 systems that do not need to do permissions." I couldn't figure out an appropriate parameter value, so I put in a zero an= d=20 it worked. If you wouldn't mind doing a little hacking, you're welcome to= =20 search the source for "create(" and try some other ints in there... I would be immensely greatful if you get that working and maybe send me a= =20 .patch file or just let me know what to put in there! Thanks, Luke Bayes www.asunit.com |
|
From: Don P. <dpe...@cr...> - 2005-09-08 04:08:21
|
I'd be interested to hear if anybody has this successfully working on = Linux. I ran really quickly through the install instructions. The = builder comes up, I can browse the file system, etc etc, everything = looks good there. Actually trying to create the class, it tries to tell = me that access is denied, and it's unable to write the file. = Permissions shouldn't be an issue, but I busted them wide open anyway = for any involved directory, with no effect. =20 I'll set this up on my Windows box tomorrow and make sure I'm not being = a total noob. If at that point I see inconsistent behavior between = Windows and Linux, and nobody has come forward saying this is working = for them on that platform, I'll post again with more info. =20 Don Petersen . =20 ________________________________ From: asu...@li... on behalf of Luke Bayes Sent: Wed 9/7/2005 5:50 PM To: Open Source Flash Mailing List Cc: asunit-users Subject: [Asunit-users] AsUnit Meets XULRunner v.2.7 alpha released! Hey Folks, AsUnit is proud to announce a long-awaited iteration in the works! We have an alpha release of what will ultimately be version 2.7 of = AsUnit! This development build includes a new XULRunner user interface for = presenting the AsUnit UI and *dramatically* improved Create Class / = Build Test Suites / Create Test Case functionality! We are no longer = tied to the IDE and should work completely independently on any = operating system (Including Linux)! This build should also integrate = seamlessly into any development tools or processes! We have also included a dramatic performance boost related to the = transmission of test results over local connection. No more waiting for = those dots to draw! We have only tested the development build on Win XP, but the = infrastructure is all built on the Mozilla platform, so it *should* be = very easy to get it working on Mac and even Linux - we need your help to = find those cross platform issues... Please check it out and let us know what you think! The installation process for the development build is pretty loose right = now, but the final release will integrate with XULRunner, Mozilla and = Firefox as a single-click installation for all platforms... Go here to get the info: http://lukebayes.blogspot.com Thanks, Luke Bayes www.asunit.com |
|
From: Luke B. <lb...@gm...> - 2005-09-07 23:50:50
|
Hey Folks, AsUnit is proud to announce a long-awaited iteration in the works! We have an alpha release of what will ultimately be version 2.7 of AsUnit! This development build includes a new XULRunner user interface for=20 presenting the AsUnit UI and *dramatically* improved Create Class / Build= =20 Test Suites / Create Test Case functionality! We are no longer tied to the= =20 IDE and should work completely independently on any operating system=20 (Including Linux)! This build should also integrate seamlessly into any=20 development tools or processes! We have also included a dramatic performance boost related to the=20 transmission of test results over local connection. No more waiting for=20 those dots to draw! We have only tested the development build on Win XP, but the infrastructure= =20 is all built on the Mozilla platform, so it *should* be very easy to get it= =20 working on Mac and even Linux - we need your help to find those cross=20 platform issues... Please check it out and let us know what you think! The installation process for the development build is pretty loose right=20 now, but the final release will integrate with XULRunner, Mozilla and=20 Firefox as a single-click installation for all platforms... Go here to get the info: http://lukebayes.blogspot.com Thanks, Luke Bayes www.asunit.com <http://www.asunit.com> |
|
From: Luke B. <lb...@gm...> - 2005-09-07 20:37:22
|
First Off, Thanks Don for answering this! You are absolutely correct. Any class that extends TestCase should have a member named "className" that= =20 identifies it's fully qualified name as a string. As Don mentioend, this is a requirement because we don't have an efficient= =20 means of Reflection in ActionScript and we wanted the test failure output t= o=20 be at least somewhat meaningful... It wouldn't really be very helpful if we= =20 showed test failures without identifying where they were. ;-) We added the feature to the Create Class templates in order to avoid=20 burdening ourselves with the extra effort of keeping those strings accurate= . Cary,=20 It seems that you must have a couple of classes (it looks like 4 to be=20 precise) in your project that: a) Have a name ending with the string "Test.as <http://Test.as>" b) Extend TestCase=20 and c) Don't include (or assign a value to) this member. If you double check your source code, you should be able to find them. If= =20 you do a search for the string "extends TestCase" you *should* be able to= =20 find them. Please let us know if that doesn't fix the problem. Thanks, Luke Bayes www.asunit.com <http://www.asunit.com> |
|
From: Cary N. <ca...@do...> - 2005-09-06 19:30:38
|
Hi Don,
The private variable is present in all the test files, and is pointing
at the actual test not the class it is testing. I'm not sure if this is
the problem, but the stub code produced when selecting the 'Create
Class' command does the same thing, and I get no such messages.
This is the format I have: (using your example below)
com.mycompany.MyClassTest
private var className:String = "com.mycompany.MyclassTest";
I referenced the complete chain from the folder 'com' down with the stub
code created in the 'example' documentation on the website and
everything is in order. So, no luck, I am still receiving the same
output message. At this point I'm not sure if it is an error. As I
mentioned before the tests seem to work, but I am curious as to why the
output message is, what it is.
I must be missing something. Some more examples and documentation for us
'Flash minded' folk would be nice ;) I will keep plugging away.
thanks for your time,
c
Don Petersen wrote:
>I might be able to help you on this one.
>
>I wasn't aware that it was actually a requirement, but every TestCase I
>build defines a private string called "className", which is the class
>that I'm actually testing. I was under the impression that this was a
>convenience thing, so that when a test failed that ASUnit would know
>what display what class I was testing. Apparently this is actually
>required, and probably rightly so.
>
>So to reiterate, if I'm testing the class:
>com.mycompany.MyClass
>
>My TestCase would have the following line:
>
>private var className:String = "com.mycompany.Myclass";
>
>Hope that helps.
>
>Don Petersen
>
>On Tue, 2005-09-06 at 13:41 -0400, Cary Newfeldt wrote:
>
>
>>Hi,
>>
>>Just started digging in to using the ASUnit component. I'm afraid I am
>>quiet new to the Junit testing philosophy and are eager to learn as
>>much as I can.
>>
>>I have tried inserting the unit testing framework in to an existing
>>project and have run in to this:
>>
>>
>>
>>>>Any class that extends Assert should have an instance member named
>>>>
>>>>
>>[className] because there is no reflection in AS 2.0
>>
>>
>>>>This member should be defined as follows: private var
>>>>
>>>>
>>className:String = [com.package.package.ClassName];
>>
>>
>>>>Any class that extends Assert should have an instance member named
>>>>
>>>>
>>[className] because there is no reflection in AS 2.0
>>
>>
>>>>This member should be defined as follows: private var
>>>>
>>>>
>>className:String = [com.package.package.ClassName];
>>
>>The system runs well and my initial test work, but, I'm not sure what
>>the above means, I get what reflection means, but 'extends assert'
>>seems to escape me. I am downloading the asunit source now to
>>investigate further, but any insight would be welcomed.
>>
>>regards,
>>
>>Cary.
>>
>>
>
>
>-------------------------------------------------------
>SF.Net email is Sponsored by the Better Software Conference & EXPO
>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
>_______________________________________________
>Asunit-users mailing list
>Asu...@li...
>https://lists.sourceforge.net/lists/listinfo/asunit-users
>
>
>
>
|
|
From: Don P. <dpe...@cr...> - 2005-09-06 18:06:16
|
I might be able to help you on this one. I wasn't aware that it was actually a requirement, but every TestCase I build defines a private string called "className", which is the class that I'm actually testing. I was under the impression that this was a convenience thing, so that when a test failed that ASUnit would know what display what class I was testing. Apparently this is actually required, and probably rightly so. So to reiterate, if I'm testing the class: com.mycompany.MyClass My TestCase would have the following line: private var className:String = "com.mycompany.Myclass"; Hope that helps. Don Petersen On Tue, 2005-09-06 at 13:41 -0400, Cary Newfeldt wrote: > Hi, > > Just started digging in to using the ASUnit component. I'm afraid I am > quiet new to the Junit testing philosophy and are eager to learn as > much as I can. > > I have tried inserting the unit testing framework in to an existing > project and have run in to this: > > >> Any class that extends Assert should have an instance member named > [className] because there is no reflection in AS 2.0 > >> This member should be defined as follows: private var > className:String = [com.package.package.ClassName]; > >> Any class that extends Assert should have an instance member named > [className] because there is no reflection in AS 2.0 > >> This member should be defined as follows: private var > className:String = [com.package.package.ClassName]; > > The system runs well and my initial test work, but, I'm not sure what > the above means, I get what reflection means, but 'extends assert' > seems to escape me. I am downloading the asunit source now to > investigate further, but any insight would be welcomed. > > regards, > > Cary. |
|
From: Cary N. <ca...@do...> - 2005-09-06 17:41:12
|
Hi, Just started digging in to using the ASUnit component. I'm afraid I am quiet new to the Junit testing philosophy and are eager to learn as much as I can. I have tried inserting the unit testing framework in to an existing project and have run in to this: >> Any class that extends Assert should have an instance member named [className] because there is no reflection in AS 2.0 >> This member should be defined as follows: private var className:String = [com.package.package.ClassName]; >> Any class that extends Assert should have an instance member named [className] because there is no reflection in AS 2.0 >> This member should be defined as follows: private var className:String = [com.package.package.ClassName]; The system runs well and my initial test work, but, I'm not sure what the above means, I get what reflection means, but 'extends assert' seems to escape me. I am downloading the asunit source now to investigate further, but any insight would be welcomed. regards, Cary. |
|
From: Luke B. <lb...@gm...> - 2005-08-26 18:47:20
|
AsUnit uses a LocalConnection Server and sometimes there are problems with the compiled code connecting to the instance. You might be able to hit the "refresh" button at the bottom and get some results. Please let me know if that doesn't work. Thanks, Luke www.asunit.com |
|
From: Luke B. <lb...@gm...> - 2005-08-25 16:14:37
|
First Step - Make sure the AsUnit Ui Panel is open before and after the compilation in Test Movie. I'll check the sources and make sure the examples are current. Thanks, Luke Bayes www.asunit.com |
|
From: Benjamin J. <bhj...@gm...> - 2005-08-25 03:52:14
|
Compiling the sample test in the Flash IDE gives no output. Any idea what's= =20 up? Thanks - Ben |
|
From: Luke B. <lb...@gm...> - 2005-07-25 17:51:05
|
Hey Jacek,
One of the major requirements for us when we first began development
on this framework was to support Flash 6.0 output since we were
building some mobile applications at the time.
Exceptions are not supported in Flash 6, so we haven't integrated
exception handling yet. We are expecting to branch the code base in
the coming 2 or 3 months and at that time we expect to move our
support up to FP 7, which will include support for exception handling.
We will continue to offer downloads of the Flash Player 6 branch for
developers that are in need of legacy player deployments, but primary
development will soon shift upward into the more robust environment.
Unfortunately, until we get that transition underway, support for
exceptions will be spotty at best. In order to get you productive in
the short term, you could definitely do some boundary-checking on your
arguments in order to unit test the functionality that you're showing
in the example.
assertTrue("view is undefined", view !=3D undefined);
assertTrue("url is undefined", url !=3D undefined);
view.loadMovie(url);
You could also use "assertNotUndefined" but I tend to just make
boolean assertions, even at the cost of some legibility.
Please let us know if you have any more questions and especially if
you wind up implementing some support for exception handling. We would
be interested in taking a patch and possibly publishing an F7
exception branch sooner rather than later.
Thanks,
Luke Bayes
www.asunit.com
|
|
From: Jacek O. <ha...@wi...> - 2005-07-25 13:38:07
|
Hi everyone,
I've created a simple test case with test method like this:
public function testLoadMovieClip():Void{
try{
view.loadMovieClip(name,file);
} catch (e:SceneNotFoundException){
fail("....");
}
try {
var msg:String=3D"...";
view.loadMovieClip(name,notExistedFile);
fail(msg);
view.loadMovieClip(name,null);
fail(msg);
view.loadMovieClip(name,undefined);
fail(msg);
} catch (e:SceneNotFoundException){
}
=09
}
When I run tests, view.loadMovieClip() method throw an exception and all =
=20
tests stop. Why? Why whole program stops ? Unit tests are independent, so=
=20
when one test fail, next must be executed. Isn't it?
Regards
Jacek Olszak
software developer
Wiedzanet Sp. z o.o.
http://wiedzanet.pl
--=20
Pozdrawiam
Jacek Olszak
Programista WiedzaNet Sp. z o.o.
Autoryzowany dystrybutor Thomson NETg
ul. Okrzei 35
03-715 Warszawa
tel. + 48 (0-22) 511-98-52
fax + 48 (0-22) 511-98-53
mail: jo...@wi...
www.wiedzanet.pl
|
|
From: Luke B. <lb...@gm...> - 2005-07-12 16:21:30
|
Hey Folks, Sorry for the spam - but Ali and I are presenting Test-Driven Development tonight in San Francisco. Please join us if you can! Announcement below... Thanks, Luke Bayes www.asunit.com ------------------------------------------------ San Francisco Macromedia Users Forum This email includes: MEETING INFO FOR TUESDAY, JULY 12th , 2005 MEETING LOCATION ADMISSION INFO SPECIAL ANNOUNCEMENTS MEETING For July we will have two topics, Test Driven Development, and Google API's Exposed. The first session will be presented by Luke Bayes and Ali Mills covering the "what", "why" and "how" of Test-Driven Development (TDD) in ActionScript 2.0, this process is an integral part of the growing trends in the agile development community. Luke and Ali are both well suited to cover this topic as they are the cofounders of the San Francisco Design Patterns Study Group and AsUnit, the leading open-source ActionScript unit testing framework. Following our usual pizza break, Beau Ambur will present on the newly released Google Map API's. This will be focused on adding maps to your websites with the use of Dreamweaver and Flash MX 2004. Additionally the newly released JavaScript API for Flash will be covered on how it can be used to integrate with the full set of functionality of Google Maps. MEETING LOCATION: Macromedia, Headquarters 601 Townsend Street San Francisco 94110 Map: http://maps.google.com/maps?q=3D601+Townsend+Street,+San+Francisco,+CA&hl= =3Den URL: http://www.sfmmuf.org ADMISSION INFO: $5 (covers pizza, sodas & misc. association expenses) - Exact change is appreciated!! - Students with ID receive 2 for 1 admission MEETING SCHEDULE: 6:30pm to 7:00pm Q&A - (John Dowdell) 7:00pm to 7:45pm First Session 7:45pm to 8:15pm Pizza 8:15pm to 9:00pm Second Session 9:00pm to 9:10pm Raffle |
|
From: Luke B. <lb...@lu...> - 2005-07-12 16:20:22
|
Hey Guys, Sorry for the spam - but Ali and I are presenting Test-Driven Development tonight in San Francisco. Please join us if you can! Announcement below... Thanks, Luke Bayes www.asunit.com ------------------------------------------------ San Francisco Macromedia Users Forum This email includes: MEETING INFO FOR TUESDAY, JULY 12th , 2005 MEETING LOCATION ADMISSION INFO SPECIAL ANNOUNCEMENTS MEETING For July we will have two topics, Test Driven Development, and Google API's Exposed. The first session will be presented by Luke Bayes and Ali Mills covering the "what", "why" and "how" of Test-Driven Development (TDD) in ActionScript 2.0, this process is an integral part of the growing trends in the agile development community. Luke and Ali are both well suited to cover this topic as they are the cofounders of the San Francisco Design Patterns Study Group and AsUnit, the leading open-source ActionScript unit testing framework. Following our usual pizza break, Beau Ambur will present on the newly released Google Map API's. This will be focused on adding maps to your websites with the use of Dreamweaver and Flash MX 2004. Additionally the newly released JavaScript API for Flash will be covered on how it can be used to integrate with the full set of functionality of Google Maps. MEETING LOCATION: Macromedia, Headquarters 601 Townsend Street San Francisco 94110 Map: http://maps.google.com/maps?q=601+Townsend+Street,+San+Francisco,+CA&hl=en URL: http://www.sfmmuf.org ADMISSION INFO: $5 (covers pizza, sodas & misc. association expenses) - Exact change is appreciated!! - Students with ID receive 2 for 1 admission MEETING SCHEDULE: 6:30pm to 7:00pm Q&A - (John Dowdell) 7:00pm to 7:45pm First Session 7:45pm to 8:15pm Pizza 8:15pm to 9:00pm Second Session 9:00pm to 9:10pm Raffle |
|
From: Neil M. <na...@nc...> - 2005-07-06 21:08:23
|
Hi all -- Thanks for all the efforts put into AsUnit! I am new to AsUnit and am setting up testing for a new rich client application. I can see how to use AsUnit to test data and utility/calculation classes, but I'm stuck on how (or whether) to test GUI elements. An example would be to test the dynamic population of a List using a data object populated from XML, or to test the updating of a "tool tip" style box in response to a mouse event. Our application is Screens based, with each main GUI "page" represented by an actionscript class. This actionscript class, which handles all user events etc., is the class I would like to test. I'm familiar with the JfcUnit framework for testing Swing applications and am wondering if there's something similar for Actionscript. Or is there an easy way to do this testing with AsUnit that I'm missing? Thanks in advance for the help. - Neil |
|
From: Luke B. <lb...@gm...> - 2005-07-05 17:11:13
|
Hey Kris, Great question on the patch - the main idea behind the patches is that you will be delayed between the time you send it, and the time I integrate it. So if you hit a point where you aren't going to be working on it for a few hours, go ahead and send the patch - I'll try to be quick about integration, the way I understand it, you'll then need to do an update. To get the latest sources. I *hope* that it will simply mark your files as "current", but there is a risk that you'll have to do some kind of "get the clean copy" or something, which would be a drag. So maybe it would be good to get that Assert patch now and we can figure out how this thing is going to work for us. Also - I use Yahoo messenger - do you? It would be good to get slightly more real-time than email for these early efforts... (I'm foreeldo2001) I don't have a preference for the doc gen tool - I'm assuming they all parse the same style comments, right? So there shouldn't be a high cost if there is a need to switch? As far as using David's build, I support that decision especially considering free is better than not. I also agree with David in that getting documentation in the highly unusable IDE doc engine is an extremely low priority for me too. Thanks again! Luke Bayes www.asunit.com |
|
From: David H. <wa...@us...> - 2005-07-05 10:17:12
|
On Tue, Jul 05, 2005 at 09:33:03AM +0000, David Holroyd wrote: > Cool! If there's anything I can do to help, just let me know (maybe on > as2api-dev -- to keep off-topic discussion away from the asunit list). I forgot to mention that's I've recently committed to CVS something to help projects which are a light on documentation. The usual mantra is 'use the source', so I've added an option for including the sourcecode in the documentation. It looks like this, http://www.badgers-in-foil.co.uk/projects/as2api/examples/asunit_20050705_apidoc/frameset.html (Look at documentation for one of the classes. The 'Source' option in the navigation will become available, letting you see the entire implementation of the API you were just looking at.) dave -- http://david.holroyd.me.uk/ |
|
From: David H. <wa...@us...> - 2005-07-05 09:33:10
|
On Mon, Jul 04, 2005 at 10:44:30PM -0400, Kristopher Schultz wrote: > Also, I've decided to use Dave's as2api utility as my reference doc > generator when proofing my doc comments. I've chosen as2api because a) > I'd like to support Dave's efforts (thanks, Dave!), b) using as2api > should help ensure that the doc comment formatting will parse properly > in any doc gen tool that supports javadoc style tags, and c) it's > free. Cool! If there's anything I can do to help, just let me know (maybe on as2api-dev -- to keep off-topic discussion away from the asunit list). > There are some downsides, however. From what I can tell, as2api can > not currently generate XHTML-compliant markup (and in fact, the markup > required to get the doc comments to display properly will likely have > to change if as2api ever does become XHTML-compliant), I put a bit of effort into making output from the as2api 0.3 release validate against the XHTML DTDs. Are you using an older version, or did I miss some bugs? > and it doesn't support alternate output formats - especially Flash > Help and XML. I spend next-to-no time using the MM Flash IDE, so I'm more motivated to get the HTML output working really well, for the moment. [ I'll accept patches ;) ] dave -- http://david.holroyd.me.uk/ |
|
From: Kristopher S. <ksc...@re...> - 2005-07-05 02:44:39
|
Thanks, Luke. >What platform are you running? At home I tend to use the Mac and at work I tend to use Windows. I'm = using Eclipse on both platforms, so I'll go ahead an use its built-in = CVS support which seems to allow me to create patch files easily, so I = think I'm all set there. How frequently would you prefer that I send you patch files? I've = finished documenting the Assert class. Should I send a patch file = containing those changes to you now, or should I wait until I have more = classes finished? Also, I've decided to use Dave's as2api utility as my reference doc = generator when proofing my doc comments. I've chosen as2api because a) = I'd like to support Dave's efforts (thanks, Dave!), b) using as2api = should help ensure that the doc comment formatting will parse properly = in any doc gen tool that supports javadoc style tags, and c) it's free. = There are some downsides, however. From what I can tell, as2api can not = currently generate XHTML-compliant markup (and in fact, the markup = required to get the doc comments to display properly will likely have to = change if as2api ever does become XHTML-compliant), and it doesn't = support alternate output formats - especially Flash Help and XML. Kris -----Original Message----- From: Luke Bayes [mailto:lb...@gm...] Sent: Mon 7/4/2005 7:24 PM To: Kristopher Schultz Cc: asu...@li... Subject: Re: [Asunit-users] Great tool, but where's the documentation? =20 Hey Kris, I've been using CVS for a long time now too - but I'm also very inexperienced when it comes to dealing with patches! Maybe we can learn this thing together. ;-) I've checked in my branch - the head revision should be all set for you to do an update. What platform are you running?=20 I use Windows which means that I get to use Tortoise SVN. In this case, you can just right click on a CVS repository and choose "Create Patch". This will generate a .patch text file that contains all of your changes. You can simply email me that patch file, I can easily integrate on my end and then you'll need to do another update. One thing that has worked pretty well for me in the past, was to actually copy the cvs directories into my Macromedia Configuration directory. Then I can edit the actual files as they're being used, test them, and update them periodically to get the latest. I wouldn't recommend "leaving" your config in this state, but for periods of heavy development, it helps find the simple errors sooner. I just did a quick google search on "create cvs patch file" and there seem to be a lot of resources out there. Here's the first one that came up for me: http://owen.sj.ca.us/rkowen/howto/cvs.html#patch Basically, what I'll be looking for is a single .patch file that includes all changes that you've made since the repository was last updated. Thanks, Luke Bayes www.asunit.com |