Action的“Action call properties”与“Test-Setting”的Run页签中属性的区别
上一篇 /
下一篇 2007-05-22 14:31:26
/ 个人分类:QTP
一个是Action的属性,一个是Test的属性。Action运行的反复次数取决于它的DataSheet的数据的行数,Test运行的反复次数取决于Global Sheet的数据行数.
通过Action的右键菜单“Action call properties”打开Action Call Properties对话框,Run页签中有三个选项:
Run one iteration
运行所调用的Action一次,运行时根据当前global的iteration数,来决定获取action data sheet中的哪行数据。如果Action的data sheet的数据条数少于global sheet,则以后的每次运行都总是取action data sheet的最后一条数据。例如,当action的sheet有2行数据,global sheet有4行数据,如果调用action时选择了“Run one iteration”,但是在设置test时选择了run iterations on all rows of the global data sheet,那么在运行test的每一轮中,这个action只运行一次,每次参数时都是根据test的“轮数”来决定获取哪一行的数据。在运行第1轮测试时,获取action sheet的第1行数据,在运行第2轮测试时,获取第2行数据,第3轮或第4轮时,参数总是获取第2行(action sheet的最后一行)的数据。
Run on all rows
运行action的所有行的数据,即ation的运行次数取决于action的数据行数。
Run from row to row
指定action运行的数据范围,从而决定action运行的次数及取数范围。
通过菜单Test>Setting打开Test Setting对话框,Run页签中有三个选项:
Run one iteration only
仅运行test一次。运行时获取global sheet的第1行数据。
Run on all rows
根据global sheet的数据行数来决定test的运行轮数,每轮测试依次获取global sheet中的数据。
Run from row to row
指定test的运行轮数。每轮测试依次获取指定范围的行的数据。
相关阅读:
- DTSheet 对象 (erics, 2007-5-22)
- DataTable对象 (erics, 2007-5-22)
- Data Table:Design-time Data Table 与 Run-time Data Table (erics, 2007-5-22)
- 如何测试WebTable (erics, 2007-5-22)
- Action的属性与调用 (erics, 2007-5-22)
- 理解数据库检查点 (erics, 2007-5-22)
- DbTable对象 (erics, 2007-5-22)
- 正则表达式及其test方法 (erics, 2007-5-22)
- 关于环境变量ActionIteration以及ActionName的使用 (erics, 2007-5-22)
- 在QTP中定义变量 (erics, 2007-5-22)
收藏
举报
TAG:
QTP