在实际情况中,其实每个人都有自己的用户名及密码,尤其是用户名是唯一的,并且与相应的密码是对应关系。是配对的,只有用户名及密码配对成功,才会登录成功。
那在loadrunner11中,如何参数化用户名密码才是合乎常理呢???
下面以注册webtours用户名及密码为例:
首先录制一个注册脚本:
然后开始参数化用户名密码及确认密码栏:
点击【new】,取名为username。
然后再【new】一个,取名为【password】,注意:此时文件选择【username.dat】
然后点击【create table】,再table增添列名【password】,然后输入用户名密码即可。
为了能够让用户名和密码能够配对(一 一对应)形式的取出,需要进行以下设置:
用户名密码取值方式:【顺序迭代(Sequential & iteration )】
为了让密码是根据用户名取值的变化而变化,需要对密码参数配置如下:
注意:两个密码参数处,都要这样配置。