[flexcoders] Re: FlexUnit

2010-06-17 Thread malabriola

Hi:

To use the UIListener you need 1 more Library, called the UIListener. You can 
get this from the downloads page at FlexUnit.org (it comes with all of the 
other FlexUnit downloads)

If you are using FlashBuilder 4, you don't need this UIListener as they create 
their own when you indicate you want to run a unit test.

HTH,
Mike

--- In flexcoders@yahoogroups.com, libbychantel libbychan...@... wrote:

 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 );





[flexcoders] Re: FlexUnit or fluint ?? which the best ???

2010-03-10 Thread gareth_arch
They've actually combined FlexUnit and FluInt to one project now in FlexUnit4

http://docs.flexunit.org/index.php?title=Main_Page

--- In flexcoders@yahoogroups.com, Nini7016 Nini7016 nahloulaha...@... wrote:

 
 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] Re: FlexUnit or fluint ?? which the best ???

2010-03-10 Thread jer_ela
The flexUnit and fluint projects have merged into FlexUnit4, so which was 
better no longer matters.  You can get FlexUnit4 at flexunit.org.

--- In flexcoders@yahoogroups.com, Nini7016 Nini7016 nahloulaha...@... wrote:

 
 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





RE: [flexcoders] Re: FlexUnit or fluint ?? which the best ???

2010-03-10 Thread Nini7016 Nini7016

Thank you very much to your informationit's very helpful 

To: flexcoders@yahoogroups.com
From: g...@nycap.rr.com
Date: Wed, 10 Mar 2010 17:05:11 +
Subject: [flexcoders] Re: FlexUnit or fluint ?? which the best ???


















 



  



  
  
  The flexUnit and fluint projects have merged into FlexUnit4, so which was 
better no longer matters.  You can get FlexUnit4 at flexunit.org.



--- In flexcoders@yahoogroups.com, Nini7016 Nini7016 nahloulaha...@... wrote:



 

 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









 









  
_
Consultez vos emails Orange, Gmail, Yahoo!, Free ... directement depuis HOTMAIL 
!
http://www.windowslive.fr/hotmail/agregation/

Re: [flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-09 Thread M. Fernanda Gioiosa
Thanks a lot for the information!
Kind Regards,
Fernanda

On Mon, Mar 8, 2010 at 4:25 PM, Nini7016 Nini7016 nahloulaha...@hotmail.com
 wrote:



 Thank you very much :) :) :)

 regards,


 --
 To: flexcoders@yahoogroups.com
 From: mportu...@yahoo.com
 Date: Mon, 8 Mar 2010 18:19:25 +

 Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration


  You might try looking at:

 http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html

 for a good getting started article with FlexUnit.

 Regards,
 Michael Portuesi

 --- In flexcoders@yahoogroups.com, Nahla Laribi nahloulaha...@... wrote:
 
 
  Hello :)
 
  Did you find good site which explains step by step how to use Flex Unit
 please ??
 
  Thanks
 
  To: flexcoders@yahoogroups.com
  From: mportu...@...
  Date: Sun, 7 Mar 2010 19:44:12 +
  Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  Hey there,
 
 
 
  I've successfully integrated FlexUnit tests into my continuous
 integration environment (in my case, CruiseControl.rb).
 
 
 
  I did things a little differently than most people:
 
 
 
  1) I don't use Ant to drive the tests. We have our own build scripts in
 Ruby, and don't make much use of Ant.
 
 
 
  2) The test runner in my case is an AIR application. This sidesteps
 several problems inherent with FlexUnit, one of them (as you noted) the need
 to open a web browser.
 
 
 
  I wrote this all up on my blog:
 
 
 
  http://digitaldumptruck.jotabout.com/?p=26
 
 
 
  Hope you find some of this useful.
 
 
 
  Regards,
 
  Michael Portuesi
 
 
 
  --- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioiosa@
 wrote:
 
  
 
   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
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  __
  Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone,
 Blackberry, …
  http://www.messengersurvotremobile.com/?d=Hotmail
 



 --
 Acheter en ligne en toute sécurité ? Internet Explorer 8 vous protège
 gratuitement ! http://clk.atdmt.com/FRM/go/206608211/direct/01/
  




-- 
Ma. Fernanda Gioiosa Sanchis


RE: [flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-08 Thread Nahla Laribi

Hello :)

Did you find  good site which explains step by step how to use Flex Unit please 
??

Thanks 

To: flexcoders@yahoogroups.com
From: mportu...@yahoo.com
Date: Sun, 7 Mar 2010 19:44:12 +
Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration


















 



  



  
  
  Hey there,



I've successfully integrated FlexUnit tests into my continuous integration 
environment (in my case, CruiseControl.rb).



I did things a little differently than most people:



1) I don't use Ant to drive the tests.  We have our own build scripts in Ruby, 
and don't make much use of Ant.



2) The test runner in my case is an AIR application.  This sidesteps several 
problems inherent with FlexUnit, one of them (as you noted) the need to open a 
web browser.



I wrote this all up on my blog:



http://digitaldumptruck.jotabout.com/?p=26



Hope you find some of this useful.



Regards,

Michael Portuesi



--- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioi...@... wrote:



 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









 









  
_
Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, 
Blackberry, …
http://www.messengersurvotremobile.com/?d=Hotmail

[flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-08 Thread Michael
You might try looking at:

http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html

for a good getting started article with FlexUnit.

Regards,
Michael Portuesi

--- In flexcoders@yahoogroups.com, Nahla Laribi nahloulaha...@... wrote:

 
 Hello :)
 
 Did you find  good site which explains step by step how to use Flex Unit 
 please ??
 
 Thanks 
 
 To: flexcoders@yahoogroups.com
 From: mportu...@...
 Date: Sun, 7 Mar 2010 19:44:12 +
 Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
   
 
 
 
   
   
   Hey there,
 
 
 
 I've successfully integrated FlexUnit tests into my continuous integration 
 environment (in my case, CruiseControl.rb).
 
 
 
 I did things a little differently than most people:
 
 
 
 1) I don't use Ant to drive the tests.  We have our own build scripts in 
 Ruby, and don't make much use of Ant.
 
 
 
 2) The test runner in my case is an AIR application.  This sidesteps several 
 problems inherent with FlexUnit, one of them (as you noted) the need to open 
 a web browser.
 
 
 
 I wrote this all up on my blog:
 
 
 
 http://digitaldumptruck.jotabout.com/?p=26
 
 
 
 Hope you find some of this useful.
 
 
 
 Regards,
 
 Michael Portuesi
 
 
 
 --- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioiosa@ wrote:
 
 
 
  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
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 _
 Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, 
 Blackberry, …
 http://www.messengersurvotremobile.com/?d=Hotmail





RE: [flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-08 Thread Nini7016 Nini7016

Thank you very much :) :) :)
regards, 

To: flexcoders@yahoogroups.com
From: mportu...@yahoo.com
Date: Mon, 8 Mar 2010 18:19:25 +
Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration


















 



  



  
  
  You might try looking at:



http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html



for a good getting started article with FlexUnit.



Regards,

Michael Portuesi



--- In flexcoders@yahoogroups.com, Nahla Laribi nahloulaha...@... wrote:



 

 Hello :)

 

 Did you find  good site which explains step by step how to use Flex Unit 
 please ??

 

 Thanks 

 

 To: flexcoders@yahoogroups.com

 From: mportu...@...

 Date: Sun, 7 Mar 2010 19:44:12 +

 Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  

 

 

 

   

 

 

 

   

   

   Hey there,

 

 

 

 I've successfully integrated FlexUnit tests into my continuous integration 
 environment (in my case, CruiseControl.rb).

 

 

 

 I did things a little differently than most people:

 

 

 

 1) I don't use Ant to drive the tests.  We have our own build scripts in 
 Ruby, and don't make much use of Ant.

 

 

 

 2) The test runner in my case is an AIR application.  This sidesteps several 
 problems inherent with FlexUnit, one of them (as you noted) the need to open 
 a web browser.

 

 

 

 I wrote this all up on my blog:

 

 

 

 http://digitaldumptruck.jotabout.com/?p=26

 

 

 

 Hope you find some of this useful.

 

 

 

 Regards,

 

 Michael Portuesi

 

 

 

 --- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioiosa@ wrote:

 

 

 

  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

 

 

 

 

 

 

 

 

 

  

 

 

 

 

 

 

 

 

 

 

 __

 Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, 
 Blackberry, …

 http://www.messengersurvotremobile.com/?d=Hotmail









 









  
_
Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, 
Blackberry, …
http://www.messengersurvotremobile.com/?d=Hotmail

[flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-07 Thread Michael
Hey there,

I've successfully integrated FlexUnit tests into my continuous integration 
environment (in my case, CruiseControl.rb).

I did things a little differently than most people:

1) I don't use Ant to drive the tests.  We have our own build scripts in Ruby, 
and don't make much use of Ant.

2) The test runner in my case is an AIR application.  This sidesteps several 
problems inherent with FlexUnit, one of them (as you noted) the need to open a 
web browser.

I wrote this all up on my blog:

http://digitaldumptruck.jotabout.com/?p=26

Hope you find some of this useful.

Regards,
Michael Portuesi

--- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioi...@... wrote:

 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





Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-22 Thread Johannes Nel
you can compose event dispatcher onto anything.

On Fri, Aug 22, 2008 at 6:08 AM, dbronk [EMAIL PROTECTED] wrote:

   I've done this:

 var myResponder : IResponder = new Responder(addAsync(handleSuccess,
 1000 ), handleFault);

 I actually have my own responder that extends Responder so the above I
 new MyResponder, but it works great for me. I then just pass in the
 newly created responder.

 Dale


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard
 Rodseth [EMAIL PROTECTED] wrote:
 
  As I mentioned, the service (delegate) method I am calling has an
 IResponder
  callback - it doesn't dispatch events.
 
  On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg
 [EMAIL PROTECTED]wrote:
 
   Say you are waiting for an object myDispatcher to dispatch an event
   myEvent.
   Then you call myDispatcher.addEventListener(myEvent, addAsync(
   handleSuccess, 1000 ));
   Inside handleSuccess you can assert as usually. If handleSuccess is
   not called within 1000 ms, the test fails.
  
   Cheers
   Ralf.
  
  
 

  




-- 
j:pn
\\no comment


[flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Tim Hoff
Hi Richard,

No, not using IResponder.  But, you may be able to use the UM 
extensions for a callBack; instead of listening for an event.

-TH

--- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] 
wrote:

 Does anyone have an example of using FlexUnit's addAsync() call with a
 service method that takes an IResponder, rather than firing events?
 
 Thanks.





Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Richard Rodseth
I did actually find some related blog entries, but they seemed to involve
modifying FlexUnit sources.

http://jharbs.com/blog/?p=96

Also, I'm not using Cairngorm, but my services (delegates in Cairngorm
terminology, I guess) use IResponder-based signatures.

- Richard

On Thu, Aug 21, 2008 at 11:18 AM, Tim Hoff [EMAIL PROTECTED] wrote:

   Hi Richard,

 No, not using IResponder. But, you may be able to use the UM
 extensions for a callBack; instead of listening for an event.

 -TH

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard
 Rodseth [EMAIL PROTECTED]
 wrote:

 
  Does anyone have an example of using FlexUnit's addAsync() call with a
  service method that takes an IResponder, rather than firing events?
 
  Thanks.
 

  



RE: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Alex Harui
There are other testing frameworks out there.  I don't know how well
they work.  One new one I heard about is dpuint/fluint

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Thursday, August 21, 2008 11:41 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flexunit and asynchronous calls

 

I did actually find some related blog entries, but they seemed to
involve modifying FlexUnit sources.

http://jharbs.com/blog/?p=96 http://jharbs.com/blog/?p=96 

Also, I'm not using Cairngorm, but my services (delegates in Cairngorm
terminology, I guess) use IResponder-based signatures.

- Richard

On Thu, Aug 21, 2008 at 11:18 AM, Tim Hoff [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi Richard,

No, not using IResponder. But, you may be able to use the UM 
extensions for a callBack; instead of listening for an event.

-TH

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Richard Rodseth [EMAIL PROTECTED] 
wrote:



 Does anyone have an example of using FlexUnit's addAsync() call with a
 service method that takes an IResponder, rather than firing events?
 
 Thanks.


 

 



Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Richard Rodseth
Thanks. I might check those out (experience reports welcome), but I just
tried flex-mojos and it has flexunit integration all set up.

On Thu, Aug 21, 2008 at 12:00 PM, Alex Harui [EMAIL PROTECTED] wrote:

There are other testing frameworks out there.  I don't know how well
 they work.  One new one I heard about is dpuint/fluint


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Richard Rodseth
 *Sent:* Thursday, August 21, 2008 11:41 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Flexunit and asynchronous calls



 I did actually find some related blog entries, but they seemed to involve
 modifying FlexUnit sources.

 http://jharbs.com/blog/?p=96

 Also, I'm not using Cairngorm, but my services (delegates in Cairngorm
 terminology, I guess) use IResponder-based signatures.

 - Richard

 On Thu, Aug 21, 2008 at 11:18 AM, Tim Hoff [EMAIL PROTECTED] wrote:

 Hi Richard,

 No, not using IResponder. But, you may be able to use the UM
 extensions for a callBack; instead of listening for an event.

 -TH

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard
 Rodseth [EMAIL PROTECTED]
 wrote:


 
  Does anyone have an example of using FlexUnit's addAsync() call with a
  service method that takes an IResponder, rather than firing events?
 
  Thanks.
 



  



Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Ralf Bokelberg
Say you are waiting for an object myDispatcher to dispatch an event myEvent.
Then you call myDispatcher.addEventListener(myEvent, addAsync(
handleSuccess, 1000 ));
Inside handleSuccess you can assert as usually. If handleSuccess is
not called within 1000 ms, the test fails.

Cheers
Ralf.


Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Richard Rodseth
As I mentioned, the service (delegate) method I am calling has an IResponder
callback - it doesn't dispatch events.

On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg [EMAIL PROTECTED]wrote:

   Say you are waiting for an object myDispatcher to dispatch an event
 myEvent.
 Then you call myDispatcher.addEventListener(myEvent, addAsync(
 handleSuccess, 1000 ));
 Inside handleSuccess you can assert as usually. If handleSuccess is
 not called within 1000 ms, the test fails.

 Cheers
 Ralf.
  



Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Johannes Nel
you can hack around it by pointing the the callback function to your unit
test class and dispatching an event from there.
On Thu, Aug 21, 2008 at 10:34 PM, Richard Rodseth [EMAIL PROTECTED]wrote:

   As I mentioned, the service (delegate) method I am calling has an
 IResponder callback - it doesn't dispatch events.

 On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg [EMAIL PROTECTED]wrote:

   Say you are waiting for an object myDispatcher to dispatch an event
 myEvent.
 Then you call myDispatcher.addEventListener(myEvent, addAsync(
 handleSuccess, 1000 ));
 Inside handleSuccess you can assert as usually. If handleSuccess is
 not called within 1000 ms, the test fails.

 Cheers
 Ralf.


  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Richard Rodseth
Good idea. Thanks.

On Thu, Aug 21, 2008 at 1:38 PM, Johannes Nel [EMAIL PROTECTED]wrote:

   you can hack around it by pointing the the callback function to your
 unit test class and dispatching an event from there.
 On Thu, Aug 21, 2008 at 10:34 PM, Richard Rodseth [EMAIL PROTECTED]wrote:

   As I mentioned, the service (delegate) method I am calling has an
 IResponder callback - it doesn't dispatch events.

 On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg [EMAIL PROTECTED]
  wrote:

   Say you are waiting for an object myDispatcher to dispatch an event
 myEvent.
 Then you call myDispatcher.addEventListener(myEvent, addAsync(
 handleSuccess, 1000 ));
 Inside handleSuccess you can assert as usually. If handleSuccess is
 not called within 1000 ms, the test fails.

 Cheers
 Ralf.





 --
 j:pn
 \\no comment
  



Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Johannes Nel
i do think you should wrap your responder in another object, the advantage
of this is that you can place your fault handler and data handler in the
same place, but it does depend on your architecture.

On Thu, Aug 21, 2008 at 10:40 PM, Richard Rodseth [EMAIL PROTECTED]wrote:

   Good idea. Thanks.

 On Thu, Aug 21, 2008 at 1:38 PM, Johannes Nel [EMAIL PROTECTED]wrote:

   you can hack around it by pointing the the callback function to your
 unit test class and dispatching an event from there.

 On Thu, Aug 21, 2008 at 10:34 PM, Richard Rodseth [EMAIL PROTECTED]wrote:

   As I mentioned, the service (delegate) method I am calling has an
 IResponder callback - it doesn't dispatch events.

 On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg 
 [EMAIL PROTECTED] wrote:

   Say you are waiting for an object myDispatcher to dispatch an event
 myEvent.
 Then you call myDispatcher.addEventListener(myEvent, addAsync(
 handleSuccess, 1000 ));
 Inside handleSuccess you can assert as usually. If handleSuccess is
 not called within 1000 ms, the test fails.

 Cheers
 Ralf.





 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread Richard Rodseth
I guess I need a little more info, since TestCase is not an EventDispatcher.
Could you elaborate a little, please?

On Thu, Aug 21, 2008 at 1:40 PM, Richard Rodseth [EMAIL PROTECTED] wrote:

 Good idea. Thanks.


 On Thu, Aug 21, 2008 at 1:38 PM, Johannes Nel [EMAIL PROTECTED]wrote:

   you can hack around it by pointing the the callback function to your
 unit test class and dispatching an event from there.
 On Thu, Aug 21, 2008 at 10:34 PM, Richard Rodseth [EMAIL PROTECTED]wrote:

   As I mentioned, the service (delegate) method I am calling has an
 IResponder callback - it doesn't dispatch events.

 On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg 
 [EMAIL PROTECTED] wrote:

   Say you are waiting for an object myDispatcher to dispatch an event
 myEvent.
 Then you call myDispatcher.addEventListener(myEvent, addAsync(
 handleSuccess, 1000 ));
 Inside handleSuccess you can assert as usually. If handleSuccess is
 not called within 1000 ms, the test fails.

 Cheers
 Ralf.





 --
 j:pn
 \\no comment
  





[flexcoders] Re: Flexunit and asynchronous calls

2008-08-21 Thread dbronk
I've done this:

var myResponder : IResponder = new Responder(addAsync(handleSuccess,
1000 ), handleFault);

I actually have my own responder that extends Responder so the above I
new MyResponder, but it works great for me.  I then just pass in the
newly created responder.

Dale


--- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote:

 As I mentioned, the service (delegate) method I am calling has an
IResponder
 callback - it doesn't dispatch events.
 
 On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg
[EMAIL PROTECTED]wrote:
 
Say you are waiting for an object myDispatcher to dispatch an event
  myEvent.
  Then you call myDispatcher.addEventListener(myEvent, addAsync(
  handleSuccess, 1000 ));
  Inside handleSuccess you can assert as usually. If handleSuccess is
  not called within 1000 ms, the test fails.
 
  Cheers
  Ralf.
   
 





[flexcoders] Re: FlexUnit Cairngorm

2007-10-04 Thread kaleb_pederson
--- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote:

 Is anyone currently using FlexUnit to test a Cairngorm app?  I 
have  
 some questions about how best to set this up.
 
 Thanks, Kevin


Yes, people are using FlexUnit to test Cairngorm apps.  There are at 
least two different ways to do it.  The first is detailed here:

http://jharbs.com/blog/
http://flexapps.blogspot.com/2006/11/cairngorm-iresponder-async-flexunit.html

My understanding is that either one or both of Cairngorm and 
Flexunit are being changed so that they work together better. As a 
temporary solution, I came up with something that's not nearly as 
efficient as it should be, but allowed me to test my Cairngorm apps 
without making any modifications to FlexUnit.

The Quick summary is:

1. Dispatch your event
2. Create a closure that will verify the command has correctly 
modified the model.
3. Tell flexunit you wan't that closure as the async handler

And here's some sample code:

public function testMyEventvoid
{
  var event:SampleEvent = new SampleEvent(); 
  CairngormEventDispatcher.getInstance().dispatchEvent(event);

  // create a closure that will be used to test the object
  // once the appropriate command has been executed
  var f:Function = function(e:*):void
  {
// make sure that it was called correctly
assertEquals(MyValue, model.value);
assertTrue(event.someProperty);
  }
  callbackHelper(f);
}

// tell FlexUnit we're listening for an async event to happen
private function callbackHelper(func:Function, runIn:uint=10, 
timeout:uint=50) : void
{
  var t:Timer = new Timer(runIn, 1);
  t.addEventListener(TimerEvent.TIMER_COMPLETE, addAsync(func, 
timeout));
  t.start();
}

What's bad about the above is you have to wait until you're pretty 
sure the command will have executed, and then perform the tests.  
So, if it takes 5 ms to perform the command, you might have to wait 
another 200 ms before you actually perform the test.

I hope that helps.

Kaleb Pederson
http://www.soph-ware.com/



[flexcoders] Re: [Flexunit] - How to test throwing errors?

2007-01-17 Thread herrodius
Hi Olivier,

that should indeed be the behavior, but the test also passes if I
remove the throw Error() line in my Account constructor. This is
probably because the fail() in the testcase is directly caught by the
catch block underneath. I used to do it this way in AS2, but it seems
like the try/catch behavior is different in AS3.

Does anyone have any solution for this, or another way of testing
throw statements?

regards,
Christophe

--- In flexcoders@yahoogroups.com, Stembert Olivier (BIL)
[EMAIL PROTECTED] wrote:

 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] Re: FlexUnit usage examples

2006-09-28 Thread ben.clinkinbeard
I've never used FlexUnit but Paul has done extensive testing and
writing about this subject:
http://www.eyefodder.com/blog/2006/07/flexunit_asunit_deathmatch_res.shtml

HTH,
Ben

--- In flexcoders@yahoogroups.com, Dima Ulich [EMAIL PROTECTED] wrote:

 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 
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] Re: FlexUnit usage examples

2006-09-28 Thread Ali Mills
 I've never used FlexUnit but Paul has done extensive testing and
 writing about this subject:
 http://www.eyefodder.com/blog/2006/07/flexunit_asunit_deathmatch_res.shtml

 HTH,
 Ben

Luke (http://www.lukebayes.com) just finished addressing Paul's issues
with AsUnit, and should be blogging about the update soon on
http://www.asserttrue.com.  Also, Luke and I are considering
presenting on AsUnit at MAXUP (http://barcamp.org/MAXUP).  If
interested, please check it out.


Ali
http://www.asunit.org


--
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] Re: FlexUnit question

2006-06-13 Thread maxym.hryniv
Hi, Andriy.
You didn't understood my question.
I'm asking is such stupid code like
ts.addTest( new TemperatureConverterTest( testToFarenheight ) );
ts.addTest( new TemperatureConverterTest( testToCelsius ) )
necessairy
Have I to add such code for every my test method?

--- In flexcoders@yahoogroups.com, Andriy Panas [EMAIL PROTECTED] wrote:

 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 ~-- 
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] Re: FlexUnit question

2006-06-13 Thread Steven Webster





Maxim,

The flexunit project that was created by iteration::two 
(formerly at http://www.iterationtwo.com/open_source_flexunit.html) 
can now be found on Adobe Labs at http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#FlexUnit.

Our implementation of FlexUnit behaves exactly as per JUnit 
- it automatically finds all tests beginning with the word test, and runs them - 
no need to explicitly name all your tests.

One of our Adobe Consultants, Peter Martin, blogged about 
taking our preferred workflow one step further, by combining our FlexUnit 
project with Ant. In the FlexUnitExample.zip that Peter has on this blog 
entry, you'll find a TestCalculator.as test-case, that has a number of test 
methods that are not explicitly added by the test runner.

Peter's blog entry is here:

http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.cfm

Hope that helps,

Best,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 947[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] Re: FlexUnit question

2006-06-13 Thread Michael Schmalle



Steven,

Is there any 'planned' tutorial like projects in the future that really
help those that semi-understand unit testing but are having a hard time
creating tests for components? IE UI components.

I have read in the book 'Refactoring' about these tests but, swinging
from an application like test to component test seems to warp my head.

Peace, MikeOn 6/13/06, Steven Webster [EMAIL PROTECTED] wrote:









  






Maxim,

The flexunit project that was created by iteration::two 
(formerly at http://www.iterationtwo.com/open_source_flexunit.html) 
can now be found on Adobe Labs at http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#FlexUnit
.

Our implementation of FlexUnit behaves exactly as per JUnit 
- it automatically finds all tests beginning with the word test, and runs them - 
no need to explicitly name all your tests.

One of our Adobe Consultants, Peter Martin, blogged about 
taking our preferred workflow one step further, by combining our FlexUnit 
project with Ant. In the FlexUnitExample.zip that Peter has on this blog 
entry, you'll find a TestCalculator.as test-case, that has a number of test 
methods that are not explicitly added by the test runner.

Peter's blog entry is here:


http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.cfm

Hope that helps,

Best,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 947[EMAIL PROTECTED] 
  

  













-- What goes up, does come down.

__._,_.___





--
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] Re: FlexUnit question

2006-06-13 Thread Steven Webster





Mike,

Alistair McLeod wrote a tutorial to using FlexUnit *way* 
back when, which you can find here:

http://www.flashmagazine.com/html/863.htm

The discussion of "testing UI components" is a different 
one; generally, we would advocate that if something is testable, you try and 
extract that functionality into ActionScript classes that can be individually 
tested. If your testing requirements are at the "mouse click" level, then 
you start to drift from the world of unit-testing to the world of automated 
testing.

Hope this helps,

Steven



  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 947[EMAIL PROTECTED] 
  


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Michael 
  SchmalleSent: 13 June 2006 13:01To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: FlexUnit 
  question
  
  
  Steven,Is there any 'planned' tutorial like projects in the future 
  that really help those that semi-understand unit testing but are having a hard 
  time creating tests for components? IE UI components.I have read in 
  the book 'Refactoring' about these tests but, swinging from an application 
  like test to component test seems to warp my head.Peace, Mike
  On 6/13/06, Steven 
  Webster [EMAIL PROTECTED] 
  wrote:
  





Maxim,

The 
flexunit project that was created by iteration::two (formerly at http://www.iterationtwo.com/open_source_flexunit.html) can 
now be found on Adobe Labs at http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#FlexUnit 
.

Our 
implementation of FlexUnit behaves exactly as per JUnit - it automatically 
finds all tests beginning with the word test, and runs them - no need to 
explicitly name all your tests.

One of 
our Adobe Consultants, Peter Martin, blogged about taking our preferred 
workflow one step further, by combining our FlexUnit project with Ant. 
In the FlexUnitExample.zip that Peter has on this blog entry, you'll find a 
TestCalculator.as test-case, that has a number of test methods that are not 
explicitly added by the test runner.

Peter's 
blog entry is here:

http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.cfm

Hope 
that helps,

Best,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 
Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 
(0) 131 338 6108
m: +44 (0)7917 428 947[EMAIL PROTECTED] 
  
-- What goes up, does come down. 
  
__._,_.___





--
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] Re: Flexunit for Flex 2

2006-02-21 Thread Niklas Richardson



Just jumping on this thread.

I'm guessing this has been delayed for a while?

Cheers

Niklas
On 2/7/06, Steven Webster [EMAIL PROTECTED] wrote:
Chris,The iteration::two flex unit codebase is used internally withinMacromedia to test some of the Flex appmodel, and has been convertedinto ActionScript 3.0 for internal use.This is going to be released
*imminently* on Adobe Labs.Though the initial port of the iteration::two codebase to AS3.0 wasperformed by a number of folks within Macromedia (I won't mentionindividuals, in case I miss others) but Danny Dura did the final push to
get this into Adobe Labs ready-state.I met with Danny earlier this morning, and he's said to expect somethingin the next week or so.Best wishes,Steven--Steven WebsterPractice Director (Rich Internet Applications)
Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108m: +44 (0) 7917 428 947[EMAIL PROTECTED] -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Chris Velevitch Sent: 07 February 2006 05:23
 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flexunit for Flex 2 On 2/8/06, Clint Modien 
[EMAIL PROTECTED] wrote: Here is a response from macromedia last august about unit testing...  From: Todd Rein @macromedia.com Mailed-By:
 returns.groups.yahoo.com  We can't announce any details yet, but I can let you know that we are working on functional UI testing support in Flex
 for an upcoming release.If you need something sonner, we have helped other customers with some short term solutions via consulting. That's great to hear, but my original question related to
 Flexunit from Iteration Two and whether verision 0.9 will work with Flex 2 or if there is verison of Flexunit for 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
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search 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/
-- Niklas RichardsonPrismix LtdUK based Flex and ColdFusion Specialists






--
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] Re: Flexunit for Flex 2

2006-02-21 Thread Johannes Nel



asunit has a as3 testing frameworkOn 2/21/06, Niklas Richardson [EMAIL PROTECTED] wrote:



Just jumping on this thread.

I'm guessing this has been delayed for a while?

Cheers

Niklas
On 2/7/06, Steven Webster [EMAIL PROTECTED]
 wrote:
Chris,The iteration::two flex unit codebase is used internally withinMacromedia to test some of the Flex appmodel, and has been convertedinto ActionScript 3.0 for internal use.This is going to be released
*imminently* on Adobe Labs.Though the initial port of the iteration::two codebase to AS3.0 wasperformed by a number of folks within Macromedia (I won't mentionindividuals, in case I miss others) but Danny Dura did the final push to
get this into Adobe Labs ready-state.I met with Danny earlier this morning, and he's said to expect somethingin the next week or so.Best wishes,Steven--Steven WebsterPractice Director (Rich Internet Applications)
Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108m: +44 (0) 7917 428 947
[EMAIL PROTECTED] -Original Message-
 From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Chris Velevitch Sent: 07 February 2006 05:23
 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flexunit for Flex 2
 On 2/8/06, Clint Modien 
[EMAIL PROTECTED] wrote: Here is a response from macromedia last august about unit testing...  From: Todd Rein @
macromedia.com Mailed-By:
 returns.groups.yahoo.com  We can't announce any details yet, but I can let you know
 that we are working on functional UI testing support in Flex
 for an upcoming release.If you need something sonner, we have helped other customers with some short term solutions via consulting. That's great to hear, but my original question related to
 Flexunit from Iteration Two and whether verision 0.9 will work with Flex 2 or if there is verison of Flexunit for 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
--Flexcoders Mailing ListFAQ: 
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/
-- Niklas RichardsonPrismix LtdUK based Flex and ColdFusion Specialists






--
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
.



  








-- j:pn 






--
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] Re: Flexunit for Flex 2

2006-02-07 Thread Chris Velevitch
Isn't anyone doing unit testing in Flex 2?

On 2/6/06, Chris Velevitch [EMAIL PROTECTED] wrote:
 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



--
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/
 





Re: [flexcoders] Re: Flexunit for Flex 2

2006-02-07 Thread Clint Modien



Here is a response from macromedia last august about unit testing... 
Todd Rein@macromedia.com
to flexcodersHide options
8/16/05
From: Todd Rein @macromedia.com
Mailed-By: returns.groups.yahoo.com
Reply-To: flexcoders@yahoogroups.comTo: 
flexcoders@yahoogroups.comDate: Aug 16, 2005 1:41 PM
Subject: RE: [flexcoders] Testing Flex ApplicationsReply | Reply to all | Forward
 | Print | Add sender to Contacts list | Delete this message | Report phishing | 
Show original | Message text garbled?
















Hi Allen,



We can't announce any details yet,
but I can let you know that we are working on functional UI testing support in
Flex for an upcoming release. If you need something sonner, we have
helped other customers with some short term solutions via consulting.



Thanks,

Todd

On 2/7/06, Chris Velevitch
 [EMAIL PROTECTED] wrote:
Isn't anyone doing unit testing in Flex 2?On 2/6/06, Chris Velevitch [EMAIL PROTECTED] wrote: 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
--Chris VelevitchManager - Sydney Flash Platform Developers Groupwww.flashdev.org.au--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/







--
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] Re: Flexunit for Flex 2

2006-02-07 Thread Chris Velevitch
On 2/8/06, Clint Modien [EMAIL PROTECTED] wrote:
Here is a response from macromedia last august about unit testing...
 From: Todd Rein @macromedia.com Mailed-By: returns.groups.yahoo.com
 We can't announce any details yet, but I can let you know that we are working 
 on functional UI testing support in Flex for an upcoming release.  If you 
 need something sonner, we have helped other customers with some short term 
 solutions via consulting.

That's great to hear, but my original question related to Flexunit
from Iteration Two and whether verision 0.9 will work with Flex 2 or
if there is verison of Flexunit for 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/
 




RE: [flexcoders] Re: Flexunit for Flex 2

2006-02-07 Thread Matt Chotin
It should be showing up on Labs sometime soon.  We're all at an
engineering summit this week so I won't imagine it up by Friday, but we
did do a port of FlexUnit to AS3 and the Developer Relations team took
ownership of it and has planned on getting it up soon.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Velevitch
Sent: Tuesday, February 07, 2006 5:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flexunit for Flex 2

On 2/8/06, Clint Modien [EMAIL PROTECTED] wrote:
Here is a response from macromedia last august about unit
testing...
 From: Todd Rein @macromedia.com Mailed-By: returns.groups.yahoo.com
 We can't announce any details yet, but I can let you know that we are
working on functional UI testing support in Flex for an upcoming
release.  If you need something sonner, we have helped other customers
with some short term solutions via consulting.

That's great to hear, but my original question related to Flexunit
from Iteration Two and whether verision 0.9 will work with Flex 2 or
if there is verison of Flexunit for 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



 




--
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] Re: Flexunit for Flex 2

2006-02-07 Thread Steven Webster
Chris,

The iteration::two flex unit codebase is used internally within
Macromedia to test some of the Flex appmodel, and has been converted
into ActionScript 3.0 for internal use.  This is going to be released
*imminently* on Adobe Labs.

Though the initial port of the iteration::two codebase to AS3.0 was
performed by a number of folks within Macromedia (I won't mention
individuals, in case I miss others) but Danny Dura did the final push to
get this into Adobe Labs ready-state.

I met with Danny earlier this morning, and he's said to expect something
in the next week or so.

Best wishes,

Steven

--
Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
m: +44 (0) 7917 428 947 
[EMAIL PROTECTED] 

 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch
 Sent: 07 February 2006 05:23
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Flexunit for Flex 2
 
 On 2/8/06, Clint Modien [EMAIL PROTECTED] wrote:
 Here is a response from macromedia last august about 
 unit testing...
  From: Todd Rein @macromedia.com Mailed-By: 
 returns.groups.yahoo.com 
  We can't announce any details yet, but I can let you know 
 that we are working on functional UI testing support in Flex 
 for an upcoming release.  If you need something sonner, we 
 have helped other customers with some short term solutions 
 via consulting.
 
 That's great to hear, but my original question related to 
 Flexunit from Iteration Two and whether verision 0.9 will 
 work with Flex 2 or if there is verison of Flexunit for 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
 
 
 
  
 
 
 


--
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/