|
block相当于是个组的概念。比如你有很多个功能,分别写到action中,比如登陆,提问,回答,查询,退出这5个action,你在做测试时,很可能想测登陆,提问,退出这个一系列的过程,这时就用到了block,你把这三个action分别移到block中就行。
online上解释到:Action blocks are groups of actions within the Vuser script. You can create separate action blocks for groups of actions, adding the same action to several blocks. In the following example, Block0 performs a deposit, Block1
performs a transfer, and Block2 submits a balance request. The Login and
Logout actions are common to the three blocks.You configure each block independently—its sequence, weighting, and iterations. |
|