[flexcoders] FlexUnit not working
Hey all, I have a Flex3 project I am trying to add unit testing to. Currently using Flashbuilder 4.5 Pro. I am using the IDE-provided stub generators to do this. I took my real project out of the equation, and made a Flex 3 project with an app and one static function I wish to test. I create a test suite, then a test case. They run in the browser based test runner just fine, and will fail/succeed as I expect. However, I cannot get the FlextUnit Results pane to do anything. I have tried two different machines, multiple projects, a Flex 4 project -- nothing works. Any advice here? Google hasn't helped me out at all on this topic...thanks.
[flexcoders] flexunit stage
Hi! I'm triing to set up a test enviroment for a big app. 3 class use Stage. Anybody knows how can I make the stage non null in flexunit? or how to substitute it? thanks! Gabor
[flexcoders] FlexUnit - Generated XML
Hi everyone, I noticed that flexunit generates a bunch of XML files I was wondering if anyone knows of any plugins or toolsets that can be used to generate a web page from all of the generated files. That way I can quickly see all of the tests that failed and passed. Thanks!
[flexcoders] FlexUnit
Hello all. I am using Flex 4 and am trying to do My First FlexUnit Project :) following the instructions at: http://docs.flexunit.org/index.php?title=Setting_up_a_FlexUnit_4_Project It appears that org.flexunit.listeners.UIListener does not exist in the FlashBuilder 4 Professional installation. Can anyone tell me what replaced it or where it is? The code from the page above is below. Thanks, Libby import org.flexunit.listeners.UIListener; import sampleSuite.SampleSuite; private var core:FlexUnitCore; public function runMe():void { core = new FlexUnitCore(); core.addListener(new UIListener(uiListener)); core.run( sampleSuite.SampleSuite );
Re: [flexcoders] Flexunit and button click simulation
Do you want to do it because you want to test handler method? If so, why not call straight handler method? On 09/06/2010, at 07:36, NagendraP wrote: hi I have a button in my view which is listening to the mouse click. Im my flex unit test function, i am creating mouseevent object and then dispatching the event on the button object. this is not working when i run the flex unit cases. Any one to throw more light in simulating the button clicks in flex units. Regards Prasad -- Marco Catunda
[flexcoders] Flexunit and button click simulation
hi I have a button in my view which is listening to the mouse click. Im my flex unit test function, i am creating mouseevent object and then dispatching the event on the button object. this is not working when i run the flex unit cases. Any one to throw more light in simulating the button clicks in flex units. Regards Prasad
[flexcoders] FlexUnit or fluint ?? which the best ???
Hello :) I 'm currently doing units test for my application developped on Flex. I would like to know of anybody has used fluint http://code.google.com/p/fluint/ before ?? Do you know it's better to use FlexUnit or fluint ?? Do you know the advantages of fluint Do you have informations please ??? Any Idea please ??? Thanks ;) _ Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, Blackberry, … http://www.messengersurvotremobile.com/?d=Hotmail
[flexcoders] FlexUnit + UIComponents
Hello :) I am doing unit tests to my application using FlexUnit: http://docs.flexunit.org/index.php?title=Main_Page when i run the testRunner, all my components User interface are null. I have to run my application and then run the testRunner. I tried to run my application in a browser and then i run the testerRunner but unfortunatelly it didn't find the UI components which are in the interface :( Do you know any method to run the application and the testRunner in the same time Any idea please ?? Did you have the same problem before thanks you for your help _ Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, Blackberry, … http://www.messengersurvotremobile.com/?d=Hotmail
[flexcoders] FlexUnit and Cairngorm ?
Hello :) I would like to know if any body has used FlexUnit to test an application which used the framework Cairngorm ?? I found Flunit http://code.google.com/p/fluint/ Do you think it is better please ?? Any person has tried it before ?? Thanks To: flexcoders@yahoogroups.com From: nahloulaha...@hotmail.com Date: Tue, 9 Mar 2010 11:16:52 +0100 Subject: [flexcoders] RE: Eclipse Checkstyle Plugin for Flex Builder? Hello :) Thank you very much Michael :) I tried FlexPMD last week, but when i click in run PDM it didn't display anything however i followed all the instruction in this site : http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD+Eclipse+plugin Did you tried it before please ??? it 's really urgent Thank again regards To: flexcoders@yahoogroups.com From: nahloulaha...@hotmail.com Date: Mon, 8 Mar 2010 13:46:26 +0100 Subject: RE: [flexcoders] Re: How to validate an AsDOC ?? Hello :) I would like to check the coverage (cover) of the AsDoc, do metrics to the AsDoc ... Is it clear please ??? Thank you very very much To: flexcoders@yahoogroups.com From: primo...@gmail.com Date: Mon, 8 Mar 2010 10:45:30 +0100 Subject: Re: [flexcoders] Re: How to validate an AsDOC ?? I don't really get it, what do you want to validate in your asdoc ? 2010/3/8 lacito.domingo lacito.domi...@yahoo.com Hello, I have never heard of asdoc validator tool. If you find one, would you be so kind as to post a reply? Thanks, Laszlo --- In flexcoders@yahoogroups.com, Nahla Laribi nahloulaha...@... wrote: Hello, In our project, we have created an AsDOC (a documentation for ActionScript and MXML) and we serach a tool which validate this ASDOC ? It will be able to say us if there are errors in our ASDOC Any Help please Thank you very much __ D�couvrez comment SURFER DISCRETEMENT sur un site de rencontres ! http://clk.atdmt.com/FRM/go/206608211/direct/01/ Télécharger en toute sécurité sur Internet ? La solution avec Internet Explorer 8 Hotmail débarque sur votre téléphone ! Paramétrez Hotmail sur votre téléphone! Gratuit ! _ Découvrez comment SURFER DISCRETEMENT sur un site de rencontres ! http://clk.atdmt.com/FRM/go/206608211/direct/01/
[flexcoders] FlexUnit + Ant + Continuos Integration
Hello, I'm working in a project with FlexUnit, Ant and Bamboo as continuos integration tool, have you ever try to do this? How is the ant tasks that you need to Run? How the FlexUnitTestRunner works in the servers (because always open the browser for running the tests)? Do you have any example of this working? I would appreciate any information about this, there isn't much information about this in the websites! Thanks a lot, Fer this is the part that runs the test in the ant file. !-- Run unit test -- target name=unit-tests depends=init description=Compiles and runs the tests mxmlc file=${flex.unit.runner} output=${flex.unit.swf} actionscript-file-encoding=${ENCODING} keep-generated-actionscript=false incremental=false load-config filename=${FLEX_HOME}/frameworks/flex-config.xml / source-path path-element=${FLEX_HOME}/frameworks / compiler.source-path path-element=${src.dir} / compiler.include-libraries dir=${lib.dir} append=true include name=**/*.swc / /compiler.include-libraries /mxmlc echoRunning Test Runner SWF/echo flexunit swf=${flex.unit.swf} toDir=${report.dir} haltonfailure=false verbose=true localTrusted=true timeout=9/ echoRan Test Runner SWF/echo echoGenerate Readable Tests/echo junitreport todir=${report.dir} fileset dir=${report.dir} include name=Test-*.xml/ /fileset report format=frames todir=${report.dir}/html/ /junitreport echoGenerated Readable Tests/echo /target
[flexcoders] FlexUnit print message
Anyone know if there is a way using the FlexUnit API to output a custom message from a TestCase. I can use fail( a message ); but then it says a particular test failed in my unit test results. I just want to add a message to the results, without saying it failed or there was an error. Thanks, -Ans
[flexcoders] FlexUnit, DataGrid and listItems
I'm using Flex 2.0.1 SDK, and I have a class that extends mx:DataGrid. One of the methods in my class is dependent on listItems which is a map of item renderers. I'm trying to test my method with FlexUnit, but I can't get listItems populated so the test can't really check anything. In my FlexUnit test, I'm adding the DataGrid instance to a container to get all of it's properties initialized. I'm also adding columns to the DG instance. I'm adding data that maps to those columns. I've tried calling validateNow(), invalidateList() and invalidateDisplayList(), but nothing I've done so far has managed to get listItems populated. Any suggestions on what I can in FlexUnit to get the grid to create item renderers? Thanks, - Glenn
[flexcoders] Flexunit and asynchronous calls
Does anyone have an example of using FlexUnit's addAsync() call with a service method that takes an IResponder, rather than firing events? Thanks.
[flexcoders] FlexUnit + Cairngorm + Antennae
Hello, We have an application that uses Cairngorm Framework and our backend is Seam and GraniteDS. I started writing some unit tests using Flex Unit. I modified the Flex unit TestCase to handle async calls made by Cairngorm. When I build and automate these test cases using Antennae backend calls are not getting invoked. I am running this on Linux so initially I was using the standalone player and was using the flexunit task written by Peter Martin. I later switched it to run in Firefox using Antennae thinking that the standalone player did not have server context. But I have had no luck with both approaches. Initially when I started this project I wrote some test cases for a standalone Flex and Cairngorm app that used HttpService and it worked as a charm but trying to integrate the concepts into our app has been a painful process. So here is my question. How many people out there are testing and automating flex and cairngorm applications on linux using Antennae? or using Peter Martin's flexunit task? Also have people out there using Flex, Cairngorm and Seam successfully written flex unit tests? Thanks, Pratima
[flexcoders] FlexUnit error while using stage
Hi, FlexUnit is showing error in my test class for stage.showDefaultContextMenu = false; Please let me know, if you experienced this kind of error Thanks in advance, Vinoth
[flexcoders] Flexunit and Protected or Priovate method
hello i have to integrate Fleunit testing into an existing/ongoing project that have classes calling webservices. Those classes have two types that methodes that are both declared like this override protected methodname. I would like to know how one should proceed to have a testcase on those methodes that are protected given that AS3 allow calls on method that are procted only from the class and the ones that extend it... and in general how would someone use flexunit to test the result of XML-RPC calls?
[flexcoders] FlexUnit Cairngorm
Is anyone currently using FlexUnit to test a Cairngorm app? I have some questions about how best to set this up. Thanks, Kevin
[flexcoders] FlexUnit/CoreLib testing
Apparently I am completely moronic. It's been a while since I did any Flex work, and I started up a new workspace. I've checked out as3corelib and as3flexunitlib from the repositories, and each is in a Flex Library Project, as the incomplete, out-of-date as3corelib wiki recommends. Hooray. How do I actually run the freaking test suite on as3corelib? Can't set anything as the default application, can't compile anything. The wiki page describes the test code as lying int he src folder, which it no longer does. How do I run the tests? Arrgh. -Mark
[flexcoders] Flexunit
Hi. I try to do some tests cases with Flexunit, but i´m having a problem: When run my test the flash debug show that the assert fail, but in the test console the test status is SUCESS. What i´m doing wrong? Help?
Re: [flexcoders] FlexUnit asserError()?
Just posted on my blog about this: http://www.brightworks.com/flex_ability/?p=39 Thanks again, Angus. Douglas McCarroll wrote: Thanks, Angus! Angus Johnson wrote: Douglas, One way to test for failure: try { ... // code that should throw exception fail('Exception was not thrown'); } catch { // test exception type / message etc is what is expected } hth Angus On 31/05/07, *Douglas McCarroll* [EMAIL PROTECTED] mailto:org.yahoo_primary.001%40douglasmccarroll.com mailto:[EMAIL PROTECTED] mailto:org.yahoo_primary.001%40douglasmccarroll.com wrote: Hi All, I'd like to write FlexUnit tests that confirm that certain things cause my code to throw errors. assertError(), so to speak. I don't see any way to do this. Is there a way? Thanks in advance! Douglas - Douglas McCarroll Flex Developer http://www.brightworks.com http://www.brightworks.com http://www.brightworks.com http://www.brightworks.com 617.459.3840 -
[flexcoders] FlexUnit asserError()?
Hi All, I'd like to write FlexUnit tests that confirm that certain things cause my code to throw errors. assertError(), so to speak. I don't see any way to do this. Is there a way? Thanks in advance! Douglas - Douglas McCarroll Flex Developer http://www.brightworks.com 617.459.3840 -
Re: [flexcoders] FlexUnit asserError()?
Douglas, One way to test for failure: try { ... // code that should throw exception fail('Exception was not thrown'); } catch { // test exception type / message etc is what is expected } hth Angus On 31/05/07, Douglas McCarroll [EMAIL PROTECTED] wrote: Hi All, I'd like to write FlexUnit tests that confirm that certain things cause my code to throw errors. assertError(), so to speak. I don't see any way to do this. Is there a way? Thanks in advance! Douglas - Douglas McCarroll Flex Developer http://www.brightworks.com 617.459.3840 -
Re: [flexcoders] FlexUnit asserError()?
Thanks, Angus! Angus Johnson wrote: Douglas, One way to test for failure: try { ... // code that should throw exception fail('Exception was not thrown'); } catch { // test exception type / message etc is what is expected } hth Angus On 31/05/07, *Douglas McCarroll* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi All, I'd like to write FlexUnit tests that confirm that certain things cause my code to throw errors. assertError(), so to speak. I don't see any way to do this. Is there a way? Thanks in advance! Douglas - Douglas McCarroll Flex Developer http://www.brightworks.com http://www.brightworks.com 617.459.3840 -
[flexcoders] flexunit and mxml components
I'm attempting to write Flexunit test cases to test some mxml components I've written. I've gotten addAsync to work for testing that creationCompoete happens but further events simply aren't being fired on the component no matter what I do. Are there any howtos or best practices out there for how to unit test actual flex components?
[flexcoders] FlexUnit: reading xml files sequentially using HTTPService and addAsync()
Hi All, I have a problem reading a sequence of 5 xml files (test1.xml, test2.xml etc.) in my flex unit test... I need to read these files and validate info in each of them... Looks like this conflicts with using addAsync() calls. I have the following code in my test class: public function testResults():void { var vcc:HTTPService; for ( var i:int = 1; i = 5 i++) { vcc = new HTTPService(); vcc.url = test + i + .xml; vcc.resultFormat = text; vcc.addEventListener (ResultEvent.RESULT, addAsync(handler,1500), false,0,true); vcc.send(); } } public function handler(e:ResultEvent):void { var resp:String = e.result.toString(); var fileName = e.currentTarget.url; Alert.show(resp + + fileName); . . . . . . } Even though I loop in the testResults test function, it looks like I get the handler for the same vcc (HTTPService) to fire, i.o. my Alert stmt fires 5 times, but the resp and fileName values are the same each time (for test1.xml) Any idea of how to iterate through all xml file names/file contents? Thank you, EP
[flexcoders] [Flexunit] - How to test throwing errors?
Hi all, sorry for this slightly OT message. I was wondering what the best way is to test for a method throwing an error. I have an Account class that takes a number:int and a name:String as constructor params. If an Account is instantiated with a null name, I want to throw an Error (IllegalArgumentException). In my test, I instantiate a new Account with a null name inside a try/catch and fail immediately after the instantiation. However this does not seem to work. The fail never executes and the test passes. See example: var errorMessage:String = Account constructor should throw IllegalArgumentException when passing 'null' name.; try { var a:Account = new Account(100, null); fail(errorMessage); } catch (e:Error) {} The only way I can get this to work, is to check if the errorMessage in the catch block is the same as the error message in my test and then call fail() again. var errorMessage:String = Account constructor should throw IllegalArgumentException when passing 'null' name.; try { var a:Account = new Account(100, null); fail(errorMessage); } catch(e:Error) { if (e.message == errorMessage) { fail(errorMessage); } } Seems a bit weird. The fail() in the try block is catched by the catch block. I thought this worked in AS2? Am I missing out on something or doing something wrong here? thx in advance. regards, Christophe
RE: [flexcoders] [Flexunit] - How to test throwing errors?
Hi Christophe, It seems logic the fail() statement is not executed since it follows the new Account() statement which throws the exception. I'm not sure I understand what you mean... Regards, Olivier From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of herrodius Sent: Wednesday, January 17, 2007 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] [Flexunit] - How to test throwing errors? Hi all, sorry for this slightly OT message. I was wondering what the best way is to test for a method throwing an error. I have an Account class that takes a number:int and a name:String as constructor params. If an Account is instantiated with a null name, I want to throw an Error (IllegalArgumentException). In my test, I instantiate a new Account with a null name inside a try/catch and fail immediately after the instantiation. However this does not seem to work. The fail never executes and the test passes. See example: var errorMessage:String = Account constructor should throw IllegalArgumentException when passing 'null' name.; try { var a:Account = new Account(100, null); fail(errorMessage); } catch (e:Error) {} The only way I can get this to work, is to check if the errorMessage in the catch block is the same as the error message in my test and then call fail() again. var errorMessage:String = Account constructor should throw IllegalArgumentException when passing 'null' name.; try { var a:Account = new Account(100, null); fail(errorMessage); } catch(e:Error) { if (e.message == errorMessage) { fail(errorMessage); } } Seems a bit weird. The fail() in the try block is catched by the catch block. I thought this worked in AS2? Am I missing out on something or doing something wrong here? thx in advance. regards, Christophe - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] FlexUnit for testing a cairngorm application
Hi, I have a Flex2 application built on cairngorm, with AMFPHP for business delegates. I want to test unit Cairngorm flows for example when the user click a login button. It creates a Cairngorm Events that calls a command that delegate to business, and so on. I m pretty new with test unit so I m paralysed with this challenge. Can someone help me to start? Thanks Phil attachment: winmail.dat
[flexcoders] FlexUnit
Does anyone know when Adobe plans to release a production version of FlexUnit? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] FlexUnit
Ya its kinda weird that its on a labs website, but I consider it production version. Its like Cairngorm, its production software, many people use it. I use FlexUnit for my projects and it works great. The only thing I recommend is you look into how to run FlexUnit from Ant and generate a JUnit like report (http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.cfm#more). Enjoy! Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of flack_gary Sent: Mon 10/30/2006 9:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexUnit Does anyone know when Adobe plans to release a production version of FlexUnit? -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ winmail.dat
Re: [flexcoders] FlexUnit
fyi, I just added a link on the FlexUnit page on labs to your article. mike chambers [EMAIL PROTECTED] On Oct 30, 2006, at 3:50 PM, Dimitrios Gianninas wrote: Ya its kinda weird that its on a labs website, but I consider it production version. Its like Cairngorm, its production software, many people use it. I use FlexUnit for my projects and it works great. The only thing I recommend is you look into how to run FlexUnit from Ant and generate a JUnit like report (http://weblogs.macromedia.com/pmartin/ archives/2006/06/flexunit_ant.cfm#more). Enjoy! Dimitrios Gianninas Optimal Payments Inc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FlexUnit usage examples
Hi everybody, Does anyone have an example of using FlexUnit with async requests made to the server? Is there a way of testing existing flex application? How do you usually test yours? Thanks Dima __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re[2]: [flexcoders] Flexunit Help Req, the TestRunnerBase/startTest() gives TypeError
Hello Beverly, I haven't gotten any answers yet. I'm hoping someone has the answers.. :) We had recompiled locally FlexUnit SWC file out of AS source files available at http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#FlexUnit and this particular error that you had mentioned had disappeared. -- Best regards, Andriymailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: Re[2]: [flexcoders] Flexunit Help Req, the TestRunnerBase/startTest() gives TypeError
Thanks, that's actually a great ideaand it works now without copying the source files. It's just that I kind of thought the pre-packaged swc file would actually work... :) Anyhow, it's all good! On 7/11/06, Andriy Panas [EMAIL PROTECTED] wrote: Hello Beverly, Ihaven't gotten any answers yet. I'm hoping someone has the answers.. :) We had recompiled locally FlexUnit SWC file out of AS source filesavailable at http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#FlexUnitand this particular error that you had mentioned had disappeared.-- Best regards,Andriy mailto: [EMAIL PROTECTED] __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flexunit Help Req, the TestRunnerBase/startTest() gives TypeError
I have the same problem. Any solution ? 2006/7/5, Beverly Guillermo [EMAIL PROTECTED]: Hello everyone, I have been really trying to findto work out this problem and even tried searching for theanswerthrough the flexcoder archives and through Google/Ask but have not yet found any resolution. Here's the error that I've been getting in the debugger: TypeError: Error #1009: Cannot access a property or method of a null object reference.at flexunit.flexui::TestRunnerBase/startTest()at ExampleTestRunner/::onCreationComplete() at ExampleTestRunner/___Application1_creationComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()at flash.events::EventDispatcher/dispatchEvent()at mx.core::UIComponent/set initialized()at mx.managers::LayoutManager/::doPhasedInstantiation ()at Function/http://adobe.com/AS3/2006/builtin::apply()at mx.core::UIComponent/::callLaterDispatcher2()at mx.core::UIComponent/::callLaterDispatcher () Currently,I am using a mac for development, so all my tools are via the terminal command line andI use the flex2_sdk from Adobe's site and flexunit.zip from Adobe Labs' site. I've used the example that Darron Schall wrote up for use with FlexBuilder2 but tweaked it to compile via mxmlc. Please see the attached zipfile for specifics on the example code and my ant build parameters. Thanks, Beverly __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flexunit Help Req, the TestRunnerBase/startTest() gives TypeError
Ihaven't gotten any answers yet. I'm hoping someone has the answers.. :) On 7/7/06, Michael BADEN [EMAIL PROTECTED] wrote: I have the same problem. Any solution ? 2006/7/5, Beverly Guillermo [EMAIL PROTECTED] : Hello everyone, I have been really trying to findto work out this problem and even tried searching for theanswerthrough the flexcoder archives and through Google/Ask but have not yet found any resolution. Here's the error that I've been getting in the debugger: TypeError: Error #1009: Cannot access a property or method of a null object reference.at flexunit.flexui::TestRunnerBase/startTest()at ExampleTestRunner/::onCreationComplete() at ExampleTestRunner/___Application1_creationComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()at flash.events::EventDispatcher/dispatchEvent()at mx.core::UIComponent/set initialized()at mx.managers::LayoutManager/::doPhasedInstantiation ()at Function/http://adobe.com/AS3/2006/builtin::apply()at mx.core::UIComponent/::callLaterDispatcher2()at mx.core::UIComponent/::callLaterDispatcher () Currently,I am using a mac for development, so all my tools are via the terminal command line andI use the flex2_sdk from Adobe's site and flexunit.zip from Adobe Labs' site. I've used the example that Darron Schall wrote up for use with FlexBuilder2 but tweaked it to compile via mxmlc. Please see the attached zipfile for specifics on the example code and my ant build parameters. Thanks, Beverly __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] FlexUnit, Web Service
Besides dummying the webservice result can you place the assert in the handler. I am interested in this and will run some tests myself later on. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of bchirgwin Sent: Tuesday, 4 July 2006 3:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexUnit, Web Service I have a web service I am trying to write and test a web service using FlexUnit. I write the test that FlexUnit I add the a testsuite, but I can't test (assert) the results, because the web service doesn't immediately return a response. I have dispatched an event and tried asserting results in the dispatched event, but this causes an error in the console as asserts are being performed outside of a test. Any help would be appreciated. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] FlexUnit, Web Service
I tried adding the asserts in the handler. If the asserts fails, it causes a crash of the application. I tested this by making forcing an assert fail. It seems, since the handler is not part of the test suite, the FlexUnit is crashing (on failure only). Must be looking for the test that is running (or something) and since it isn't, it fails. I did recompile FlexUnit to work with Flex Release (wouldn't work without some changes). Maybe there are other changes required as well. I am new to Flex, so I could very well be doing something wrong. On Wed, 5 Jul 2006 17:09:27 +1000, Bjorn Schultheiss wrote: Besides dummying the webservice result can you place the assert in the handler. I am interested in this and will run some tests myself later on. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FlexUnit, Web Service
I have a web service I am trying to write and test a web service using FlexUnit. I write the test that FlexUnit I add the a testsuite, but I can't test (assert) the results, because the web service doesn't immediately return a response. I have dispatched an event and tried asserting results in the dispatched event, but this causes an error in the console as asserts are being performed outside of a test. Any help would be appreciated. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FlexUnit question
Hi, I'm trying to use for the first time flexUnit for Flex 2. I read Darron Schall article about it http://www.darronschall.com/weblog/ archives/000216.cfm. I'm wondering why we have to write such code in every test case public static function suite():TestSuite { var ts:TestSuite = new TestSuite(); ts.addTest( new TemperatureConverterTest( testToFarenheight ) ); ts.addTest( new TemperatureConverterTest( testToCelsius ) ); return ts; } Can I use naming convention test* to specify test methods like it was in flexUnit for as2 and like it is in any testing framework??? Or i have to specify them manually like in Darron Schall's article??? Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] FlexUnit question
Hi Max, Monday, June 12, 2006, 1:15:13 PM, you wrote: mh ts.addTest( new TemperatureConverterTest( testToFarenheight ) ); mh ts.addTest( new TemperatureConverterTest( testToCelsius ) ); I think, it is just a naming convention selected (which can be overriden by anybody, why not) in Adobe to put word Test at the end of the test case class name instead of using the word Test at the beginning of the test case class name. Examples of naming of other Adobe's test case classes: http://labs.adobe.com/subversion/flashplatform/projects/mappr/trunk/tests/MapprTestRunner/MapprTestRunner.as http://labs.adobe.com/svn/flashplatform/?/projects/flickr/trunk/tests/FlickrTestRunner/FlickrTestRunner.mxml -- Best regards, Andriymailto:[EMAIL PROTECTED] Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] FlexUnit question
what he is asking is wether naming a function starting with test will automatically add the test to be run as it does in most unit test frameworks. i know asunit (for as3 as well) does this.On 6/12/06, Andriy Panas [EMAIL PROTECTED] wrote: Hi Max,Monday, June 12, 2006, 1:15:13 PM, you wrote:mhts.addTest( new TemperatureConverterTest( testToFarenheight ) ); mhts.addTest( new TemperatureConverterTest( testToCelsius ) );I think, it is just a naming convention selected (which can beoverriden by anybody, why not) in Adobe to putword Test at the end of the test case class name instead of using the word Test at the beginning of the test case class name.Examples of naming of other Adobe's test case classes: http://labs.adobe.com/subversion/flashplatform/projects/mappr/trunk/tests/MapprTestRunner/MapprTestRunner.as http://labs.adobe.com/svn/flashplatform/?/projects/flickr/trunk/tests/FlickrTestRunner/FlickrTestRunner.mxml--Best regards, Andriymailto:[EMAIL PROTECTED] Yahoo! Groups Sponsor ~--Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM~--- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- j:pn http://www.lennel.org __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] FlexUnit error
Hi, I am just trying FlexUnit (http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:apis:lib raries#FlexUnit) like in the example by Darron Schall (http://www.darronschall.com/weblog/archives/000216.cfm) and I get the following error: ReferenceError: Error #1065: Variable http://www.adobe.com/2006/flex/mx/internal::_TestRunnerBase_StylesInit is not defined at flexunit.flexui::TestRunnerBase$iinit() ... This line causes the error: flexunit:TestRunnerBase id=testRunner width=100% height=100% / Is this a problem because of flex beta2 because the example was posted while beta 1 was out or am I missing something else? Cheers, Sönke -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] FlexUnit test case not returning result from service call
1.5 or 2.0? In 1.5 it's harder to set up, in 2.0 did you look at the AsyncHelper stuff? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of posttoumesh Sent: Friday, March 10, 2006 4:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexUnit test case not returning result from service call I am using FlexUnit framework to write a test case to make a call to a remote service(java function) the test case runs fine,talks to server and returns but I am not getting result back in the client. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FlexUnit test case not returning result from service call
I am using FlexUnit framework to write a test case to make a call to a remote service(java function) the test case runs fine,talks to server and returns but I am not getting result back in the client. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flexunit for Flex 2
Is there a version of Flexunit for Flex 2 or will Flexunit 0.9 work with Flex 2? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FlexUnit Test Runner inside of a flex application
Hello Flexcoders, Has anyone been able to get the FlexUnit test runner working along-side a flex application? Basically I would like to run tests against a loaded application. I tried putting the test runner into a TitleWindow and then open the title window via a pop-up. When the pop-up opens, Flash crashes. I put it in the root and all runs fine. ?xml version=1.0 encoding=utf-8? mx:TitleWindow height=600 width=700 xmlns:flexunit=http://www.iterationtwo.com/flexunit xmlns:mx=http://www.macromedia.com/2003/mxml flexunit:TestRunner flexunit:test{ tests.AllTests.suite.() }/flexunit:test /flexunit:TestRunner /mx:TitleWindow I dont want the runner to act as a stand-alone application I want it to perform tests against my existing application. For example //automate some work being done in my UI, then check assertTrue( mx.core.Application.application.navigationBar.selectedIndex == 4 ); Thanks for any help, allen -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005
[flexcoders] FlexUnit
Please give me the information about FlexUnit..and also tell me it is for frontend testing or backend testing. ThanksRegards Harinath K -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] FlexUnit
Hi All,I have downloaded Flexunit0.9 and done sample application i.e TestMoney.as...and got results fine.But when I am doing with Caingorm framework ,i have bit confused..for which classes i need to test..is it for Viewhelpers or Commands..And my main question is,Flexunit is for frontend testing or backend testing?.I know JUnit is for backend testing.Please let me know about flexunit..and please give me suggestions in this regard.. ThanksRegardsHarinath K[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.