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 4带给我们的,是全新的命名空间。了解这些命名空间必定是一件好事情。Flex 4有三个非常重要的命名空间,分别是:
xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:mx=”library://ns.adobe.com/flex/halo”
xmlns:s=”library://ns.adobe.com/flex/spark&rdq ......
Flex Chart 虽然有提供完整的试用功能
不过编译完成的图表会加上水印
“Flex Data Visualization Trial”的字样。
既然是 AS,那事情就简单了
只要在 Flex Project 內加上以下 Class:
一定要创建mx.charts.chartClasses,覆盖FLEX自带的ChartLicenseHandler
package mx.charts.chartClasses { ......
flex多文件上传工具(自用)
JAVA类
package com.shine.framework.flexUpload;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet; ......
使用资源最简单的方法就是通过选中你的flex工程,然后从右键的菜单中选择properties,选择Flex build path中的Source Path,然后把你.properties文件所在的目录添加进去。现在就可以在MXML中使用资源了,代码比较简单,首先假设你的资源名名字是messages_zh_CN.properties,那么定义好
<fx:Metadata ......