|
将account对应的值参数化,参数类型为Random Numeber ,随机获取8位数。怎样将获取的这8位数取出来存在一个参数变量中呢?(代码如下)
web_submit_data("user-create-0.html_2",
"Action=http://192.168.1.232/zentao/user-create-0.html",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.232/zentao/user-create-0.html",
"Snapshot=t22.inf",
"Mode=HTTP",
ITEMDATA,
"Name=dept", "Value=0", ENDITEM,
"Name=account", "Value={user}", ENDITEM,
"Name=realname", "Value=12345678", ENDITEM,
"Name=password1", "Value=111111", ENDITEM,
"Name=password2", "Value=111111", ENDITEM,
"Name=role", "Value={role}", ENDITEM,
"Name=group", "Value=3", ENDITEM,
"Name=email", "Value=12345678@qq.com", ENDITEM,
"Name=commiter", "Value=", ENDITEM,
"Name=join", "Value=2015-07-27", ENDITEM,
"Name=gender", "Value=f", ENDITEM,
LAST);
ps:主要想达到的效果是:account、realname、email中的数字,这三个值是相同的。 |
|