越来越强大的SAFS/STAF/STAX自动化测试框架

来源:互联网 发布:个性淘宝女装店名 编辑:程序博客网 时间:2024/05/01 23:29

    上一次,向大家介绍了Openqa.org社区提供的、适合web应用的、开源的自动化测试框架 (开源测试工具/社区(Selenium /OpenQA.org)——今非昔比 )。最近,看到STAF+STAX发布了最新版本,包括许多服务组件,可以看出STAF+STAX的框架越来越完整,值得向大家推荐。 

        September 24, 2008: STAF 3.3.1, STAX 3.3.4, Cron 3.3.3, Email 3.3.2, Event 3.1.2, EventManager 3.3.3, and HTTP 3.0.1 are now available. 

而且STAF+STAX自动化测试框架的通用性更强大,适合各类应用系统,不仅适合B/S结构,而且还适合C/S结构的应用。STAF+STAX一种分布式远程调用体系,支持跨平台和多语言的自动化测试框架。作为完整系统框架,可以看作是3部分组成,即SAFSSTAFSTAX

(1)     SAFSSoftware Automation Framework Supporthttp://safsdev.sourceforge.net/Default.htm 是基于数据驱动和关键字驱动的思想设计的开源自动化测试框架, 支持跨平台、多语言的应用。

(2)     STAFSoftware Test Automation Frameworkhttp://staf.sourceforge.net/index.php )围绕组件重用的理念,通过服务调用(如远程处理、资源管理、监控等)来完成自动化架构的构造。STAF作为自动化测试框架,提供一种可插拨的机制,支持多平台与多语言的分布式结构。

(3)     STAXSTAf eXecution enginehttp://staf.sourceforge.net/getstax.php 是基于STAF的执行引擎,它采用XML格式描述。在XML文件中可定义测试工作流,可以实现并行执行、嵌套测试用例、控制运行时间等,STAX支持Java Python 模块

除此之外,还提供了许多增强服务,以满足自动化测试的需要,这些服务主要有:

³        时间驱动服务(Cron Service):按特定时间间隔运行STAF命令。

³        事件驱动服务(Event Service):由发生的事件来驱动进程通信,从而执行相关的STAF命令。

³        名字空间服务(Namespace Service):为了变量永久仓库的存储和搜寻而设定名字空间层次。

³        计数器服务(NamedCounter Service):针对特定的名字来动态地管理其计数器。

³        计时服务(Timer Service):一台机器周期性地收到另一台机器发来的消息。

³        邮件服务:将邮件消息发送给一批接收者。

³        扩展的文件系统请求处理工具(FSExt Service

 

    根据SAFSSTAFSTAX所具有的服务和功能,我们有信心它可以帮助我们建立一个良好的、企业级的自动化测试环境。下面,我就用一个图来展示它所带给我们的自动化测试环境。虽然没有在图中显示负载、性能测试工具,但实际上它可以支持各种测试工具,包括自己开发的测试工具。

 

 

 

具体应用,可以参考:

  • 利用STAF 实现程序更新包的自动部署测试
  • 基于RFT STAF 进行的无需人工干预的跨平台自动化回归测试
  • STAF/STAX + LAMP 实现多任务的自动化测试框架
  • 使用Rational Functional Tester 和开源的SAFS 解决方案进行关键字驱动测试

 

如需更多资料,可以访问下列资源:

 

         SAFSSTAFSTAX

         http://staf.sourceforge.net/index.php

         http://safsdev.sourceforge.net/Default.htm

  • STAF 3.3.1 (September 24, 2008) (Download)
  • STAX 3.3.4 (September 24, 2008) (Download)

Cron Service Version 3.3.3

The Cron service allows you to register STAF commands that will be executed at a specified time interval.
Note: Cron Service V3.3.3 requires STAF V3.1.0 or later.

FileFile SizeCronV333.tar1.7MCronV333.zip1.6MCron Service User's Guide (V333)Cron Service History

Email Service Version 3.3.2

The Email service will send an email message to a list of recipients.
Note: Email Service V3.3.2 requires STAF V3.0.0 or later.

FileFile SizeEmailV332.tar120KEmailV332.zip68KEmail Service V3 User's Guide (V332)Email Service V3 History

Event Service Version 3.1.2

The Event service provides an interface to allow process communication based on events occuring.
Note: Event Service V3.1.2 requires STAF V3.1.0 or later.

FileFile SizeEventV312.tar110KEventV312.zip46KEvent Service User's Guide (V312)Event Service History

EventManager Service Version 3.3.3

The EventManager service allows you to register with the Event Service in order to execute STAF Commands.
Note: EventManager Service V3.3.3 requires STAF V3.1.0 or later.

FileFile SizeEventManagerV333.tar1.7MEventManagerV333.zip1.6MEventManager Service User's Guide (V333)EventManager Service History

FSExt Service Version 3.0.1

The FSExt service provides some tools to perform extended file system requests.
Note: FSExt Service V3.0.1 requires STAF V3.0.0 or later.

FileFile SizeFSExtV301.tar56KFSExtV301.zip20KFSExt Service User's Guide (V301)FSExt Service History

HTTP Service Version 3.0.1

The HTTP service provides the ability to quickly and easily make HTTP requests.

Note: HTTP Service V3.0.1 requires STAF V3.1.0 or later.

FileFile SizeHTTPV301.tar1.7MHTTPV301.zip1.6MHTTP Service User's Guide (V301)HTTP Service History

 

NamedCounter Service Version 3.0.1

The NamedCounter service provides the ability to dynamically manage counters based on a name.
Note: NamedCounter Service V3.0.1 requires STAF V3.0.0 or later.

FileFile SizeNamedCounterV301.tar32KNamedCounterV301.zip12KNamedCounter Service User's Guide (V301)NamedCounter Service History

Namespace Service Version 1.0.0

The Namespace service provides a namespace hierarchy for storing and retrieving a persistent repository of variables.
Note: Namespace Service V1.0.0 requires STAF V3.0.0 or later.

FileFile SizeNamespaceV101.tar1.1MNamespaceV101.zip1.1MNamespace Service User's Guide (V101)Namespace Service History

SXE Service Version 3.0.2

The STAF eXecution Engine (SXE) service allows the user to sequentially execute any number of STAF commands.
Note: SXE Service V3.0.2 requires STAF V3.0.0 or later.

FileFile SizeSXEV302tar40KSXEV302.zip20KSXE Service User's Guide (V302)SXE Service History

Timer Service Version 3.0.2

The Timer service allows a process on one machine to periodically receive a notification message from the same or another machine.
Note: Timer Service V3.0.2 requires STAF V3.0.0 or later.

FileFile SizeTimerV302.tar76KTimerV302.zip32KTimer Service User's Guide (V302)Timer Service History


Reference:

Test Automation Frameworks


原创粉丝点击