51Testing软件测试论坛

标题: Occurrence, Iteration and once in LoadRunner [打印本页]

作者: Koffer    时间: 2005-12-21 16:21
标题: Occurrence, Iteration and once in LoadRunner
When using the Date/Time, Random, Unique, DataFiles, and User-Defined Function parameter types, VuGen lets you specify the update method for the parameters. You can test this function using www.google.com search. Input different search text and set it to a datafile parameter, set the update value condition. Please enjoy this.

Each Occurrence
The Each occurrence method instructs the Vuser to use a new value for each occurrence of the parameter. This is useful when the statements using a parameter are unrelated. For example, for random data, it may be useful to use a new value for each occurrence of the parameter.

Each Iteration
The Each iteration method instructs the Vuser to use a new value for each script iteration. If a parameter appears in a script several times, the Vuser uses the same value for all occurrences of the parameter, for the entire iteration. This is useful when the statements using a parameter are related.

Once
The Once method instructs the Vuser to update the parameter value only once during the scenario run. The Vuser uses the same parameter value for all occurrences and all iterations of the parameter. This type may be useful when working with dates and times.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2