|
好:
想问下以下问题:
0\ 上传附件 上传附件的话 并发操作是指并发上传一样的附件吗?这样的测试有用吗?
我的意思是说 这个好象不能参数化
1\ 登陆操作 我想验证是否参数化后的50个并发用户能够登陆成功,有人告诉我直接在 执行场景的事务通过数就可以了
我想问下: 不用去看服务器IIS日志吗?如果看的话,应该怎么看呢?
2\ 查询操作 我譬如说进行并发查询操作
我想问下:怎么去确认这些查询确实都能够查出记录呢?
3\ 删除操作 我如果并发去删除同一条记录,肯定会出现问题,在这种情况下,该如何测试并发删除的功能呢?
4\ 新增操作 譬如说我要去测试 注册功能 , 有很多输入框 , 那这些输入框的内容全部都需要参数化吗?
5\ 我所有的操作都需要登陆,那我在测试其他操作时候,是否需要50个用户登陆后操作,还是一个用户登陆,其他操作并发
谢谢
后续上传附件的问题
1 上传附件 我在录制脚本的时候啊 web_custom_request中只有
body_variable_1 这个部分 , 脚本中无 文件上传路径 , 我只能在TREE视图的 BODY 中看到 路径 上传附件 想问下 我是参数化了路径 但是却出现一个很怪的问题
2 上传附件的架构是 先上传到服务器 然后再写进数据库
发现写进数据库的时候 本来上传附件的 条目的 名称是 附件一 在数据库中 TITLE 字段也为 附件
但是回放的时候 不是 更改该上传附件 而是新插入了一条 名称为 undefined
脚本如下:
lr_start_transaction("打开上传页面");
/* Registering parameter(s) from source task id 85
// {Siebel_Analytic_ViewState9} = "/wEPDwUKLTIwMDcwODY5Mg9kFgICAQ8WAh4HZW5jdHlwZQUTbXVsdGlwYXJ0L2Zvcm0tZGF0YWRk2FLBexLFdkWGVWWJgtB0W+xo9Mk="
// */
web_reg_save_param("Siebel_Analytic_ViewState9",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1.1",
LAST);
lr_think_time(32);
web_url("UploadFile.aspx",
"URL=http://192.168.0.199/XXXXXXX/ExamineItem/Share/FileManager/UploadFile.aspx?actionKey=upload&larClass=742&midClass=GD200806203086&content=undefined&time=31",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"Url=/WebWaterIII/Images/Button/aa_17.gif", "Referer=http://192.168.0.199/XXXXXX/ExamineItem/Share/FileManager/UploadFile.aspx?actionKey=upload&larClass=742&midClass=GD200806203086&content=undefined&time=31", ENDITEM,
LAST);
lr_start_transaction("上传");
lr_think_time(19);
web_custom_request("upload.aspx",
"URL=http://192.168.0.199/XXXXXX/ExamineItem/Share/FileManager/upload.aspx?actionKey=upload&actionType=file&larClass=742&midClass=GD200806203086&content=undefined",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.199/XXXXXX/ExamineItem/Share/FileManager/upload.aspx?actionKey=upload&actionType=file&larClass=742&midClass=GD200806203086&content=undefined",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------7d89c3350912",
body_variable_1,
LAST);
lr_end_transaction("上传",LR_AUTO);
lr_end_transaction("打开上传页面",LR_AUTO);
lr_start_transaction("保存");
lr_think_time(22);
web_submit_data("Accept.aspx",
"Action=http://192.168.0.199/XXXXXX/ExamineItem/Accept.aspx?link=add&ItemNum=44000000693984400106",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.199/XXXXXX/ExamineItem/Accept.aspx?link=add&ItemNum=44000000693984400106",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value=/wEPDwULLTIxMTYwNDY0ODMPZBYCAgEPZBYGAgEPZBYOZg8PFgIeBFRleHQFDkdEMjAwODA2MjAzMDg2ZGQCAQ8PZBYEHgZvbkJsdXIFHGNhbGVuZGFyQm9va2luZ0RhdGUuSGlkZGVuKCkeB29uRm9jdXMFHmNhbGVuZGFyQm9va2luZ0RhdGUuU2hvdyh0aGlzKWQCAg8PFgIfAAUG5Y+X55CGZGQCDw8PFgIfAAVJ5riv5r6z6Iiq57q/5Y2V6Ii5MeWNg+i9vemHjeWQqOS7peS4iuawtOi/kOS8geS4mueUs+ivt+"
.............................................................
"NrTm9ybWFsUG9zdAUcYWNjZXB0Q29udHJvbCRjaGVja1F1aWNrUG9zdAUbYWNjZXB0Q29udHJvbCRjaGVja1JlZ2lzdGVy5ec88Odv1FMyk3PhbeAqGxBFaIs=", ENDITEM,
"Name=acceptControl$textBoxApplyDate", "Value=2008-6-20", ENDITEM,
"Name=acceptControl$textBoxApplyerName", "Value=", ENDITEM,
"Name=acceptControl$textBoxBroker", "Value=", ENDITEM,
"Name=acceptControl$textBoxOccurrencePlace", "Value=", ENDITEM,
"Name=acceptControl$textBoxDepartmentPhone", "Value=", ENDITEM,
"Name=acceptControl$textBoxBrokerJob", "Value=", ENDITEM,
"Name=acceptControl$textBoxBrokerMobilePhone", "Value=", ENDITEM,
"Name=acceptControl$textBoxApplyerFax", "Value=", ENDITEM,
"Name=acceptControl$textBoxPostCode", "Value=", ENDITEM,
"Name=acceptControl$textBoxBrokerEmail", "Value=", ENDITEM,
"Name=acceptControl$textBoxApplyerAddress", "Value=", ENDITEM,
"Name=acceptControl$textBoxRemark", "Value=", ENDITEM,
"Name=acceptControl$textBoxEnterId", "Value=", ENDITEM,
"Name=acceptControl$textBoxEnclosureId", "Value=742,", ENDITEM,
"Name=acceptControl$textBoxHoldEnclosureId", "Value=", ENDITEM,
"Name=acceptControl$txtLinkType", "Value=operator", ENDITEM,
"Name=textBoxManagePerson", "Value=???", ENDITEM,
"Name=textBoxManageUnit", "Value=??", ENDITEM,
"Name=textBoxMaxDate", "Value=", ENDITEM,
"Name=textBoxManageTime", "Value=2008-6-20 0:56:55", ENDITEM,
"Name=textBoxManageOpinion", "Value=", ENDITEM,
"Name=btnSave", "Value=", ENDITEM,
"Name=tempTextBoxApplyNum", "Value=", ENDITEM,
"Name=textBoxNextWorker", "Value=", ENDITEM,
"Name=textBoxPersonCount", "Value=7", ENDITEM,
"Name=textBoxDialogParam", "Value=flow_code=4&unit=440000&AccpectMode=1", ENDITEM,
"Name=textBoxWorkFlowId", "Value=64a8a40a-94b2-41d6-88e7-ec182ad5ec2b", ENDITEM,
"Name=textBoxState", "Value=stateCheck", ENDITEM,
"Name=textBoxFlowMode", "Value=2", ENDITEM,
"Name=HiddenField1", "Value=stateInit", ENDITEM,
"Name=tmpTxtKeyInfo", "Value=", ENDITEM,
"Name=txtSignState", "Value=", ENDITEM,
"Name=__SCROLLPOSITIONX", "Value=0", ENDITEM,
"Name=__SCROLLPOSITIONY", "Value=656", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWMQK+4ujFDwLPr6HcCgKXibfIBALg/IiNCAKn7o3mBwLgiK6zDAKz9s7xDgKZ7bb/CALnzqKmBwKJpenbCALgqraKDwKJkf78CQLByufMDwLDz8jnBgK9wJ5qAo6z06MHAru4pO0CAr+ilJEHAsrftawGAqyy6McJAsDcnt8NAojxovEJArGCp5oKArOftr0LAu/yz8cMAqmtl5MBAqS8t9wHAv6pvbQBAvKf8fwOArKY3/oOAoHekfYNAq7bsoQBAp+wpD0CmoXRtgcCjJOB2A8CnLe4kgwC9NrQsgICjOeKxgYCpre29g8Cw/6UvgsC5emp9Q8C7sqOqwMCt8GcJwKXv/DmCwLvk++ECAKQo8KrDQKfn7inDwLfs66mBwKx4taQBMGxRxKYUOE2cLqrBiX9SN6PX1pD", ENDITEM,
LAST);
web_add_cookie("csd=9700353; DOMAIN=192.168.0.199");
web_url("AcceptBefore.aspx",
"URL=http://192.168.0.199/XXXXXX/ExamineItem/AcceptBefore.aspx?link=edit&ApplyNum=GD200806203086",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.199/XXXXXX/index.aspx",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=/webwaterii/images/fashbutton-onover_08.gif", "Referer=http://192.168.0.199/XXXXXX/top.aspx", ENDITEM,
LAST);
lr_end_transaction("保存",LR_AUTO);
[ 本帖最后由 咸菜 于 2008-6-20 14:11 编辑 ] |
|