|
From: Luke B. <lb...@gm...> - 2006-11-21 00:05:00
|
Hey David, I'm really sorry that this has been so difficult! Thanks for sticking with it, at this point, you just need to add the asunit framework sources to your fla classpath. You can do this in authoring for all fla's by pressing CMD+U, and adding the appropriate framework src path to your ActionScript classpath... You can do it for a specific fla file by going to the publish settings. Please let me know if this doesn't work for you. Thanks, Luke www.asunit.org On 11/20/06, David Ham <em...@da...> wrote: > > Hi, > > I am trying to get started in ASUnit but am having some trouble. > > I am running Flash 8 on Mac OS X Tiger. I installed the ASUnit MXP. I also > downloaded the Unit Testing with ASUnit PDF by Mark Daggett. When I tried > to > create the first test suite as he describes, the JSFL recursively added > AllTest.as files to every directory on my hard drive, beginning at root, > before it bombed. > > Next, I installed the ASUnit XUL app, as described in a recent entry on > the > blog. I got that to run, and I tried to follow the PDF using the XUL > instead > of the MXP. I created a new project set up as follows: > > /example > /deploy > /source > /test > > I put my FLA into 'source', and had ASUnit put a class called Example.as > into 'source' and had ASUnit put the test files into 'test'. I changed the > publish settings for the file to publish the swf to 'deploy.' > > No matter what I do, I cannot seem to get past these error messages: > > **Error** /Users/dham/Desktop/example/test/ExampleTest.as: Line 5: The > class > or interface 'asunit.framework.TestCase' could not be loaded. > class ExampleTest extends TestCase { > > **Error** /Users/dham/Desktop/example/test/AllTests.as: Line 2: The class > or > interface 'asunit.framework.TestSuite' could not be loaded. > class AllTests extends asunit.framework.TestSuite { > > Total ActionScript Errors: 2 Reported Errors: 2 > > Help! What am I doing wrong? Many thanks for any help you can offer, > > OK > DAH > -- > David Ham > http://anthropomorphy.org :: NEW MOBILE NUMBER => +1 > 630.297.1273 > http://davidham.com :: em...@da... > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |