越來越強大的SAFS/STAF/STAX自動化測試框架

Just4life發表於2013-08-27
上一次,向大家介紹了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所具有的服務和功能,我們有信心它可以幫助我們建立一個良好的、企業級的自動化測試環境。下面,我就用一個圖來展示它所帶給我們的自動化測試環境。雖然沒有在圖中顯示負載、效能測試工具,但實際上它可以支援各種測試工具,包括自己開發的測試工具。

 

 

 

具體應用,可以參考:

 

如需更多資料,可以訪問下列資源:

 

         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.

File File Size
CronV333.tar 1.7M
CronV333.zip 1.6M
Cron 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.

File File Size
EmailV332.tar 120K
EmailV332.zip 68K
Email 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.

File File Size
EventV312.tar 110K
EventV312.zip 46K
Event 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.

File File Size
EventManagerV333.tar 1.7M
EventManagerV333.zip 1.6M
EventManager 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.

File File Size
FSExtV301.tar 56K
FSExtV301.zip 20K
FSExt 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.

File File Size
HTTPV301.tar 1.7M
HTTPV301.zip 1.6M
HTTP 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.

File File Size
NamedCounterV301.tar 32K
NamedCounterV301.zip 12K
NamedCounter 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.

File File Size
NamespaceV101.tar 1.1M
NamespaceV101.zip 1.1M
Namespace 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.

File File Size
SXEV302tar 40K
SXEV302.zip 20K
SXE 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.

File File Size
TimerV302.tar 76K
TimerV302.zip 32K
Timer Service User's Guide (V302)
Timer Service History


Reference:

Test Automation Frameworks

相關文章