Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flexµ¥Ôª²âÊÔ¹¤¾ß(FlexMonkey)


Testing Flex applications with FlexMonkey 1.0
Without automation, testing the UI components of your Flex
application can be tedious and time consuming. Adobe includes an
automation framework in Flex to enable developers to create automated
tests that operate at the GUI level. FlexMonkey
1.0 is an open source AIR application that leverages the Flex
automation framework to record and play back GUI interactions with your
Flex application. With FlexMonkey, your tests can drive your
application views directly, making it easy to exercise the view
components and the logic behind them. Integration with the automation
framework is under-the-hood
; you don't need to make any changes to your application source or compilation method to use FlexMonkey.
In this article, I'll show you how to get started using FlexMonkey
as part of your development flow. FlexMonkey can launch your Flex
application in different ways depending on your needs. It can launch
your application directly from your Flex Builder project, it can
connect to your application running in a browser, or it can be linked
into your application. In this article, you'll learn how to launch it
directly from your Flex Builder project.
¿ªÔ´µÄFlex²âÊÔ¹¤¾ßFlexMonkey ,»ùÓÚAIR,AdobeÍøÕ¾ÉÏÓÐһƪ¿ìËÙÈëÃÅ½Ì³Ì http://www.adobe.com/devnet/flex/articles/flexmonkey.html
,Ïêϸ¿ÉÒÔ·ÃÎÊFlexMonkeyµÄÍøÕ¾ http://www.flexmonkey.gorillalogic.com/gl/stuff.flexmonkey.html
,Ò²¿ÉÒÔµ½googleÍøվȥÏÂÔØ http://code.google.com/p/flexmonkey/


Ïà¹ØÎĵµ£º

flex module ʵÀý

module ½Ó¿ÚÎļþ PictureWindowInterface.as
package
{
public interface PictureWindowInterface
{
function setSelectIndex(index:int):void
}

moudule Îļþ PictureWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml ......

Àí½â flex component

component¾ÍÊÇÒ»¸öAS class »òÕßÊÇMXML componentÎļþÔÚmanifestÎļþÖÐÓ³ÉäµÄ±êÇ©.·Ö¿ÉÊӺͲ»¿ÉÊÓ
¿ÉÊÓ»¯component°üÀ¨Containers ºÍ UI controls
Containers(Appliction, Panel...)
UI controls(Button, Label)
¿ÉÒÔͨ¹ý3ÖÖ·½Ê½ÉèÖÃcomponentµÄÊôÐÔ
1.tag attributers
Java´úÂë
<mx:Application xmln ......

JAVAºÍFlexÃô½Ýµ÷ÓÃ(Ò»)

   ÔÚjavaÏîÄ¿¼¯³Éflex¿ª·¢ÔÚweb2.0ÊÇÊÇÒ»¸öÊ®·ÖÓмÛÖµµÄ¿ª·¢·½°¸£¬ÌرðÔÚÆóÒµ¼¶µÄÓ¦ÓÃÖУ¬flexºÍjava¼äµÄͨѶԽÏÔÖØÒª¡£µ«ÊÇÏÖÔÚµÄjavaºÍflexµÄ¿ò¼ÜËäÈ»¶à£¬µ«Êǹ²Í¨ÐÔ²»´ó¡£¾ÍÊÇͨ¹ý´«Í³µÄwebserviceµ÷Óã¬Ò²ÒòΪЧÂÊÎÊÌâºÍ½âÎöxmlµÄ·±ÖصŤ×÷£¬ºÜ¶àÏîÄ¿¿ª·¢ËٶȺÍά»¤ÏÞÖƽϴó¡£ÔÚ½üÀ´ÏîÄ¿£¬ÎÒÔÚ¹«Ë¾³¢Ê ......

Flex ¿ª·¢ÈëÃÅ


Flex ¿ª·¢ÈëÃÅ
 
 
¼¶±ð£º ³õ¼¶
Áõ Çì (qlcdl@cn.ibm.com), Èí¼þ¹¤³Ìʦ, IBM Èí¼þ¿ª·¢ÖÐÐÄ
2009 Äê 1 ÔÂ 07 ÈÕ
±¾ÎĽéÉÜ Flex ¿ª·¢µÄ»ù´¡ÖªÊ¶£º°üÀ¨ÈçºÎ´î½¨¿ª·¢»·¾³£¬ÈçºÎµ÷ÊÔ£¬ÒÔ¼°ÈçºÎ½¨Á¢ºÍ²¿Êð¼òµ¥µÄ Flex ÏîÄ¿¡£Í¨¹ý±¾ÎĵÄѧϰ£¬¿ÉÒÔΪÄú½«À´ÉîÈëµØѧϰ Flex ´òÏÂÁ¼ºÃµÄ»ù´¡¡£
¿ªÊ¼Ö®Ç°
Flex ×÷Î ......

flexÖÐÈçºÎ¶ÔÊý¾ÝµÄÏÔʾ¸ñʽ½øÐÐÉèÖÃ

ÆäʵÕâ¾ÍÊǸöÊý¾ÝÏÔʾµÄÎÊÌ⣬¾­³£ÎÒÃǵÄԭʼÊý¾Ý²¢²»ÊÇ×îÖÕÏÔʾ¸øÓû§µÄ£¬¶øÊÇÒÔÁíÒ»ÖÖ·½Ê½ÏÔʾ£¬±ÈÈçÐÔ±ð¼ÙÉèÔÚºǫ́Êý¾ÝÒÔboolean±äÁ¿À´±£´æ£¬¼´trueΪÄУ¬falseΪŮ£¬ÄÇô½çÃæ¾ÍÐèÒª´¦Àí°Ñtrue±ä³ÉstringµÄ“ÄД¡£¶ÔÓÚ¸ñʽת»»Ò»°ãflexÄãÃÇʹÓÃFormatterÀ࣬µ±È»FormatterÀàÊDZȽϳéÏóµÄÀ࣬Ȼºó¸ü¾ßÌåµÄÈçCu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ