我不在办公室就在星巴克,我不在星巴克就在去星巴克的路上
Rational中DataPool的介绍与实际应用-续(2)【转载】
上一篇 /
下一篇 2008-01-26 23:56:14
/ 个人分类:robot
二.性能测试脚本自动建立测试datapool
在robot中tools->session record options, 设置Generator页面general的use datapool选项,才能在产生datapool.
一般录制性能测试脚本,遵循如下步骤:
第一. 设置录制Session选项
第二. 启动录制对话
第三. 启动客户端程序
第四. 产生脚本
第五. 关闭客户端程序
第六. 停止录制
设置选项:
1.录制方法(method): api, network,proxy,custom四种选项设置
通过分析要测试的软件架构来选择录制的方法,下边的表格提供参考:
Situation | Api | NetWork | Proxy |
The client application access secure data from aWebserver | Required | | |
The Client Application access data from a web server | Recommended | Fist Alternate | Second alternate |
The client application accesses objects on a DCOM Server | Required | | |
The client application access an oracle8 database ororaclearrays. | Required | | |
The client application access an Oracle database.(For network and proxy recording, supply the name of the oracle database,) | Recommended | First alternate | Second alternate |
The client application is not installed on the local computer | | Recommended | Alternate |
The client application is not running on Windows NT4, Windows XP, or Windows 2000 | | Recommended | Alternate |
You want to record traffic from multiple client applications that reside on different commputers | | Recommended | Alternate |
You want to record traffic between multiple,specific clent and server computers. | | | Recommended |
Neither the client nor the serer computer is on same network segment as the local computer | | | Required |
An Ethernet controls network traffic, and neither the client nor the server application is installed on the computer | | | required |
The client application accesses a TUXEDO Server | Recommended | Alternate | |
“On-the-wire” recording support is lacking | Recommended | | Alternate |
Api recording is not functioning properly | | Recommended | Alternate |
FDDI,ATM,or other hight-speed networks are used | | | Recommended |
备注:上图参考
rational robot user’s guide,
NetWork录制方式必须安装Rational网络驱动才能生效
安装方法:
1. 开始-〉设置-〉网络和拨号连接
2. 点本地连接
3. 点安装,选择协议,点添加
4. 点选者从磁盘安装
5. 打开安装目录C:\Program Files\Rational\Rational Test\driverw2k(安装rational的目录),选者inf文件,确定
6. 选择ethernet 或者 token ring都可以
2.Generator Filtering
Filtering
(1).设置autoFiltering使robot生成脚本时自动选择可用协议,下边协议选者列表可用
特别说明DCOM是一种独占的协议,不能和其他协议共存
如果后台是SQLSERVER,选择SQLSERVER,如果后台是ORACLE,选择ORACLE协议。根据软件实现方式,选择不同的协议。
(2). 设置Manual Protocol Filtering使robot生成脚本时手工选择协议
3.Generator Per Protocol
只能对在generator Filtering选择的部分协议(http,iiop,Oracle,Tuxedo,和dcom)起作用。
相关阅读:
- 使用Robot连接SQL的例子 (jely, 2008-1-26)
- Rational Robot项目移植[转载] (jely, 2008-1-26)
- Rational Robot 常用语句【转载】 (jely, 2008-1-26)
- Rational 识别 Delphi TDBGrid的解决方法【转载】 (jely, 2008-1-26)
- Rational robot 识别对象的方法【转载】 (jely, 2008-1-26)
- robot函数实例讲解(一)【转载】 (jely, 2008-1-26)
- robot函数实例讲解(二)【转载】 (jely, 2008-1-26)
- Robot手工编写GUI脚本如何获取对象识别方法和属性【转载】 (jely, 2008-1-26)
- Rational中DataPool的介绍与实际应用【转载】 (jely, 2008-1-26)
- Rational中DataPool的介绍与实际应用-续(1)【转载】 (jely, 2008-1-26)
收藏
举报
TAG:
robot