性能测试 脚本自动建立测试datapool 在robot中tools-session record options, 设置Generator页面general的use datapool选项,才能在产生datapool." name="description" />

Rational中DataPool的介绍与实际应用-续(2)

发表于:2007-04-29来源:作者:点击数: 标签:rational实际应用datapool介绍
二. java script:;" onClick="javascript:tagshow(event, '%D0%D4%C4%DC%B2%E2%CA%D4');" target="_self"> 性能测试 脚本自动建立测试datapool 在robot中tools-session record options, 设置Generator页面general的use datapool选项,才能在产生datapool.

二.javascript:;" onClick="javascript:tagshow(event, '%D0%D4%C4%DC%B2%E2%CA%D4');" target="_self">性能测试脚本自动建立测试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 aclearcase/" target="_blank" >ccess 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)起作用。


原文转自:http://www.ltesting.net

...

热门标签