Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ......

Zend AMF+Flex+PHPµÄÒ»µãµãСÎÊÌâ

   ×òÌìÍíÉÏÒ»Ö±ÔÚ×ÁÄ¥Flex,Ïëͨ¹ýDataGrid°ÑMySQLÀïÃæµÄÊý¾Ý¸ø¶Á³öÀ´£¬ÆÚ¼ä³öÏÖÁ˼¸¸öСÎÊÌ⣬¼Ç¼ÏÂ~~
   1.µÚÒ»´Î½øÐÐÁ¬½ÓÊý¾Ý·þÎñ(Data-Connect to Data/Service-PHP-Browse)ʱ,»á³öÏÖ°²×°Zend FrameWork,Ñ¡Ôñok,²»ÒªÊºóÔÙÈ¥ÍøÕ¾ÏÂÔØZendAMF,Õâ¸öÀïÃæ»áÉÙһЩ¶«Î÷.
  2.Data-Bind to DataÊ ......

flexÖÐÈçºÎʹÓÃ×ÊÔ´

ʹÓÃ×ÊÔ´×î¼òµ¥µÄ·½·¨¾ÍÊÇͨ¹ýÑ¡ÖÐÄãµÄflex¹¤³Ì£¬È»ºó´ÓÓÒ¼üµÄ²Ëµ¥ÖÐÑ¡Ôñproperties£¬Ñ¡ÔñFlex build pathÖеÄSource Path£¬È»ºó°ÑÄã.propertiesÎļþËùÔÚµÄĿ¼Ìí¼Ó½øÈ¥¡£ÏÖÔھͿÉÒÔÔÚMXMLÖÐʹÓÃ×ÊÔ´ÁË£¬´úÂë±È½Ï¼òµ¥£¬Ê×ÏȼÙÉèÄãµÄ×ÊÔ´ÃûÃû×ÖÊÇmessages_zh_CN.properties£¬ÄÇô¶¨ÒåºÃ
    <fx:Metadata ......

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

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