录制测试脚本

上一篇 / 下一篇  2011-09-22 13:54:55 / 个人分类:性能测试LR

创建测试脚本的工作流程:

1plan(gather relevant test information)

2record(record a web vuser script)

3enhance(transactions,verification,parameters,correlation)

4test(play back script. to verify success)

 

录制脚本的过程:

1create a new vuser script

2select web(http/html)protocol to record

3set recording options

4click start recording

5enter the URL of the application under test and click ok

6perform. user steps with web application

7click stop recording once all of the user steps have been recorded

8save the script

 

脚本两种形式的展示方式:

Tree View

Script. View

 

 

两种录制模式

HTML(browser/contest sensitive)

URL(http/analog)

 

 

脚本的结构:

Vuser_init:脚本启动的时候运行一次。

Action:脚本的主体函数,可以运行任意次,由run-time setting进行设置。

Vuser_end:脚本退出的时候运行一次。

 

 

vugen回访脚本的目的:

1、The goal is to perform. a sanity check before the script. is assigned in the controller.

2、Test the script. with just one vuser to verify basic functionality.

3、Configure run-time settings to test specific aspects of the script.

4、It is strongly recommended that you re-run the script. after any modifications or enhancement go verify the integrity of the script.

 

 

常用的调试工具:

1Test results window

2Execution log(replay log)

3Snapshot results window:page view,server response,client request

4Run-time viewer


TAG:

 

评分:0

我来说两句

日历

« 2024-05-08  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 21442
  • 日志数: 35
  • 建立时间: 2011-04-19
  • 更新时间: 2011-09-24

RSS订阅

Open Toolbar