职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 2411|回复: 0

Rational中DataPool的介绍与实际应用

[复制链接]
joe 发表于 2007-1-16 21:47 | 显示全部楼层 |阅读模式
二.性能测试脚本自动建立测试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 a Web server
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 or oracle arrays.
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)起作用。
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-4-25 22:03 , Processed in 0.125914 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表