从2012.4.18日起开始接触OceanBase测试。没有接触过测试,学习下Gaia,Staf, Maven 的概念。
Gaia的简介
简而言之,Gaia的存在主要是为自动化测试提供以下四种基础服务:
- TestCase测试用例驱动服务,如并行或串行执行一组TestCase方法;
- TestCase测试用例Log服务,如输出结构化的日志到文件或控制台;
- 远程文件服务,如远程复制/删除/读取远程机器上的文件或目录;
- 远程进程服务,如启动/停止远程机器上的进程,获取进程输出;
更多详细介绍,请参见文档:gaia_user_guide.htm
What is STAF?
STAF stands for "Software Testing Automation Framework. As its name indicates, STAF is an automation framework. It is intended to make it easier to create and manage automated testcases and test environments.
STAF externalizes its capabilities through services. A service provides a focused set of functionality, such as, Logging, Process Invocation, etc. STAFProc is the process that runs on a machine, called a STAF Client, which accepts requests and routes them to the appropriate service. These requests may come from the local machine or from another STAF Client. Thus, STAF works in a peer environment, where machines may make requests of services on other machines.
STAF was designed with the following points in mind:
- Minimum machine requirements - This is both a hardware and a software statement.
- Easily useable from a variety of languages, such as Java, C/C++, Rexx, Perl, and Tcl, or from a shell (command) prompt.
- Easily extendable - This means that it should be easy to create other services to plug into STAF.
Maven's Objectives
Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal with:
- Making the build process easy
- Providing a uniform build system
- Providing quality project information
- Providing guidelines for best practices development
- Allowing transparent migration to new features
总结一下
Gaia提供基础的测试编码服务,例如log、测试用例串行、并行服务等;
Staf提供集群控制服务,进程控制服务等;
Maven提供更高层次的流程控制管理服务。
如有不当,还请指正海涵。