- 授权协议: GPL
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://www.cewan.la
- 软件文档: http://www.cewan.la
- 官方下载: http://www.cewan.la
软件介绍
phoenixframe是一个自动化测试平台,集代码托管,分机(node节点)管理,定时任务,
分布式或并发等方式执行通过phoenix_develop模块调试好的用例。
平台使用SSH4开发,覆盖了webgui,接口,移动mobile等终端的自动化测试与监控。
webGUI模块兼容chrome,Firefox,IE以及phantomjs驱动。对jmeter进行了深度定制,支持web性能测试。
平台通过phoenix_develop模块在客户端开发及调试代码,然后通过将代码托管到phoenix_web控制端,
控制端通过指派多个phoenix_node端方式执行测试用例。通过使用phoenix_develop开发用例代码的示例,
用例如果在本地调试时没有问题,那么就可以放到控制端进行执行了。
平台网站:http://www.cewan.la
环境搭建及使用说明书:http://my.oschina.net/u/2391658/blog/706055
中文搜:测完啦<br>
系统名称:自动化测试平台
系统介绍:
【支持的部署方式】:J2EE,Jenkins,maven,J2SE,分布式部署,Jetty部署
【技术说明】:
Apachequartz,Webmagic,httpunit,selendroid,selenide,Spring+SpringMVC+Hibernate4+Shiro,Executor,Forkjoin,Maven项目管理,Bootstrap,JQuery,JDK动态编译+反射+执行,DWR,highchat
【权限管理】:方法级别的权限控制
【覆盖系统类型】:WEB GUI自动化测试,接口自动化测试,Android/IOS app自动化测试,WEB GUI自动化监控,接口自动化监控,数据库测试,简单安全性测试
【消息通知】:Email异步发送,短信异步发送,在线日志检视,统计报表生成
【模块介绍】
phoenix_develop:用例代码开发模块
phoenix_node:分布式执行node节点
phoenix_web:平台控制端
phoenix_webdriver:webGUI自动化测试模块
phoenix_mobiledriver:移动设备测试模块
phoenix_interface:接口测试系统
phoenix_db:数据库操作模块,对hibernate4的封装
phoenix_ftpclient:ftp服务器操作
phoenix_svnclient:对svn进行操作
phoenix_telentclient:对socket服务器进行操作
phoenix_imgreader:验证码及图片的识别模块
phoenix_browser:phoenix定制浏览器,用于属性录制
phoenix_recorder:用于对执行过程录制回放
phoenix_tcpserver:可独立部署在Windows和Linux,用于特殊场景下的操作。如生成或执行shell
phoenix_jbehave:行为驱动支持
phoenix_jmeter:基于jmeter定制的专门用于web系统性能测试的模块
用例实例:
package org.phoenix.cases;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map.Entry;
import org.phoenix.enums.LocatorType;
import org.phoenix.model.CaseLogBean;
import org.phoenix.model.InterfaceBatchDataBean;
import org.phoenix.model.LocatorBean;
import org.phoenix.model.UnitLogBean;
import org.phoenix.proxy.ActionProxy;
/**
* 浏览器驱动测试类:
* 通用方法API:phoenix.commonAPI()....
* webUI/mobileUI用例API:phoenix.webAPI()....
* 接口测试用例API:phoenix.interfaceAPI()....
* androidappAPI:phoenix.androidAPI()....
* IOSappAPI:phoenix.iosAPI()....
* svnClientAPI:phoenix.svnClient()....
* ftpClientAPI:phoenix.ftpClient()....
* socketClientAPI:phoenix.telnetClient()....
* ...
* @author mengfeiyang
*/
public class TestBrowserDriver extends ActionProxy{
private static String caseName = "浏览器驱动测试用例";
public TestBrowserDriver() {}
@Override
public LinkedList<UnitLogBean> run(CaseLogBean caseLogBean) {
init(caseLogBean);//必须有这一步
//phoenix.webAPI().setFirefoxExePath("D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");//使用Firefox浏览器时,必须添加
//phoenix.webAPI().setChromeDriverExePath("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chromedriver64.exe");//使用chrome浏览器时,必须添加,且chromedriver64.exe必须和chrome.exe在同一目录下
HashMap<InterfaceBatchDataBean, HashMap<String, String>> datas = phoenix.commonAPI().loadWebCaseDatas(caseName);//加载数据库测试数据方法
HashMap<String,LocatorBean> locators = phoenix.commonAPI().addLocator(caseName);//加载定位信息的方法
for(Entry<InterfaceBatchDataBean, HashMap<String, String>> es : datas.entrySet()){
InterfaceBatchDataBean batchData = es.getKey();
batchData.getExpectData();//这批数据的执行结果期望值
HashMap<String, String> dataBlocks = es.getValue();
String phoenixframe = dataBlocks.get("输入数据1");//在数据库中此数据的key
phoenix.webAPI().openNewWindowByFirefox("http://www.baidu.com");
//phoenix.webAPI().openNewWindowByChrome("http://www.baidu.com");
//phoenix.webAPI().openNewWindowByIE("http://www.baidu.com");
//phoenix.webAPI().openNewWindowByHtmlUnit("http://www.baidu.com", true, BrowserVersion.INTERNET_EXPLORER);
//phoenix.webAPI().openNewWindowByPhantomJs("http://www.baidu.com");
phoenix.webAPI().webElement("//*[@id=\"kw\"]",LocatorType.XPATH).setText(phoenixframe);//引用数据
phoenix.webAPI().webElement(locators.get("btnLocator").getLocatorData()).click();//使用数据中的定位信息,等同于phoenix.webAPI().webElement("btnLocator").click();
String r = phoenix.webAPI().webElement("//*[@id=\"su\"]", LocatorType.XPATH).getAttribute("value");//数据库中的数据可以与页面不变的数据混合使用
phoenix.checkPoint().checkIsEqual(r, "百度一下");//调用检查点,检查结果会在日志中统计
phoenix.commonAPI().addLog("我是自定义的");//可以手动插入一句日志,该日志会在最后的日志记录中体现
phoenix.webAPI().sleep(1000);
phoenix.webAPI().closeWindow();
}
return getUnitLog();
}
public static void main(String[] args) {
LinkedList<UnitLogBean> ll = new TestBrowserDriver().run(new CaseLogBean());
for(UnitLogBean l : ll){
System.out.println(l.getContent());
}
}
}
Ordering Disorder
Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99
The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!
