您的位置:首页 > 其它

Tellurium你必须知道的十件事情

2011-10-06 11:52 267 查看
Tellurium 出现多久了?

2007年6月创建的用于测试Web应用的框架,并在2008年6月移步到Google Code成为一个开源项目

Tellurium 和Selenium 区别

Tellurium是为了解决Selenium的一系列问题而产生的,一直到Tellurium 0.6.0, 我们还是依赖Selenium Core作为底层的测试驱动Engine.

不过Tellurium 0.7.0将成为Tellurium发展史上的一个重要里程碑,我们将开发自己的测试驱动Engine使得Tellurium能更好,更有效地支持UI Module,同时可以进行UI Module的缓存(Caching)以增加其可用性和提高测试速度。并可对UI Module进行部分匹配以增加其鲁棒性。在新的Tellurium Engine的支持下,Tellurium widget将变得更容易,更实用,和更有效。其他的发展规划包括TrUMP的改进,行为测试(Behavior Driven
Test)的支持,功能测试(functional test)的增强支持, 和IDE的支持。

http://code.google.com/p/aost/wiki/Tellurium_A_New_Approach_for_Web_Test

在使用Tellurium 之前需要知道Groovy



可以使用Java,Groovy,和DSL脚本语言开发。所以不是必须。当然知道更好

不过运行Tellurium 项目需要安装Groovy环境,具体步骤如下:

http://code.google.com/p/aost/wiki/TelluriumReferenceProjectEclipseSetup

http://code.google.com/p/aost/wiki/TelluriumReferenceProjectNetBeansSetup

http://code.google.com/p/aost/wiki/TelluriumReferenceProjectIntelliJSetup

Tellurium 支持那些单元测试和功能测试框架

Tellurium 同时支持JUnit 和TestNG 框架,示例如下:

http://code.google.com/p/aost/wiki/BasicExample

http://code.google.com/p/aost/wiki/Introduction

支持数据驱动开发,示例如下:

http://code.google.com/p/aost/wiki/DataDrivenTesting

Tellurium 提供自动生成UI模块的工具吗?

有个firfox插件 (TrUMP)提供自动生成UI模块功能,下载如下:

http://code.google.com/p/aost/downloads/list

or from Firefox Addons site at

https://addons.mozilla.org/en-US/firefox/addon/11035

http://code.google.com/p/aost/wiki/TrUMP

TrUMP工作原理:

http://code.google.com/p/aost/wiki/HowTrUMPWorks

支持那些构建系统

Tellurium 同时支持 Ant 和Maven构建系统

http://code.google.com/p/aost/wiki/MavenHowTo

创建Tellurium 项目最佳方法

Tellurium提供2个参考项目,如下:

http://code.google.com/p/aost/wiki/ReferenceProjectGuide

但是最好的办法是使用 Tellurium Maven archetypes.

对于Tellurium JUnit 项目, 使用

mvn archetype:create -DgroupId=your_group_id -DartifactId=your_artifact_id -DarchetypeArtifactId=tellurium-junit-archetype -DarchetypeGroupId=tellurium -DarchetypeVersion=0.7.0-SNAPSHOT -DarchetypeRepository=http://maven.kungfuters.org/content/repositories/snapshots

对于Tellurium TestNG项目, 使用

mvn archetype:create -DgroupId=your_group_id -DartifactId=your_artifact_id -DarchetypeArtifactId=tellurium-testng-archetype -DarchetypeGroupId=tellurium -DarchetypeVersion=0.7.0-SNAPSHOT -DarchetypeRepository=http://maven.kungfuters.org/content/repositories/snapshots

更多细节:

http://code.google.com/p/aost/wiki/TelluriumMavenArchetypes

哪里可以找到Tellurium API文档

http://code.google.com/p/aost/wiki/UserGuide

有现成的Tellurium 教材吗?

http://code.google.com/p/aost/wiki/Tutorial

http://code.google.com/p/aost/wiki/TenMinutesToTellurium

Tellurium 展望

Tellurium 0.6.0 added jQuery Selector support and a cache mechanism to increase the reuse of UI elements. From the next release, i.e., 0.7.0, we will work on our own Engine project to better support UI modules and achieve more robust performance and better
speed. In the meanwhile, We will improve our TrUMP plugin to automatically generate DSL testing scripts for non-developers.

原文:http://code.google.com/p/aost/wiki/TenThingsYouShouldKnowAboutTellurium
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: