51Testing软件测试论坛
标题:
动态关联?
[打印本页]
作者:
morpheues_12
时间:
2005-10-12 11:01
标题:
动态关联?
web_submit_data("
movement_list.jsp_2
",
"Action=http://192.168.2.2/test/uploadphoto/movement_list.jsp?saveflag=1&type=0",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.2/test/uploadphoto/movement_list.jsp?type=0",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=studentid", "Value=测试", ENDITEM,
"Name=type", "Value=0", ENDITEM,
"Name=classid", "Value=171", ENDITEM,
"Name=imagefilename", "Value=", ENDITEM,
"Name=attachment", "Value=", ENDITEM,
"Name=attachmentClient", "Value=", ENDITEM,
"Name=Body", "Value=123", ENDITEM,
"Name=autofix", "Value=1", ENDITEM,
EXTRARES,
"Url=../images/main_img%5B1%5D.swf", "Referer=", ENDITEM,
LAST);
每次添加一条记录的时候,movement_list.jsp_2就会增加1即为movement_list.jsp_3,这个关联应该怎么做?
作者:
xyuan007
时间:
2005-10-12 11:40
char filename[25];
strcpy(filename,"movement_list.jsp_");
lr_output_message("filename=%s", filename);
strcat(filename,lr_eval_string("{indexnum}"));
lr_output_message("final filename=%s", filename);
这样我想就可以符合你的要求了吧,最后一位数值做了参数化,比较容易控制
作者:
morpheues_12
时间:
2005-10-12 12:41
谢谢,可以了.
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2