LOADRUNNER关联的高级应用
2013-04-07 13:53
302 查看
Action()
{
int array_len ,i=1;
char array_name[20];
web_reg_save_param("outFlightVal",
"LB=\"http:\/\/a.lietou.com\/",
"RB=.shtml\">",
"ORD=ALL",
LAST);
web_url("a.lietou.com",
"URL=http://a.lietou.com",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t25.inf",
"Mode=HTML",
EXTRARES,
LAST);
array_len=atoi(lr_eval_string("{outFlightVal_count}"));
lr_output_message("%d",array_len);
for (i=1;i<=array_len;i++) {
sprintf(array_name,"{outFlightVal_%d}",i);
lr_output_message("%s",lr_eval_string(array_name));
lr_save_string(lr_eval_string(array_name),"shen");
web_reg_save_param("title",
"LB=<title>",
"RB=</title>",
"ORD=1",
LAST);
web_reg_save_param("content",
"LB=content=",
"RB=\/>\r\n",
"ORD=1",
LAST);
web_url("a.lietou.com",
"URL=http://a.lietou.com/{shen}.shtml",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t25.inf",
"Mode=HTML",
EXTRARES,
LAST);
}
return 0;
}
{
int array_len ,i=1;
char array_name[20];
web_reg_save_param("outFlightVal",
"LB=\"http:\/\/a.lietou.com\/",
"RB=.shtml\">",
"ORD=ALL",
LAST);
web_url("a.lietou.com",
"URL=http://a.lietou.com",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t25.inf",
"Mode=HTML",
EXTRARES,
LAST);
array_len=atoi(lr_eval_string("{outFlightVal_count}"));
lr_output_message("%d",array_len);
for (i=1;i<=array_len;i++) {
sprintf(array_name,"{outFlightVal_%d}",i);
lr_output_message("%s",lr_eval_string(array_name));
lr_save_string(lr_eval_string(array_name),"shen");
web_reg_save_param("title",
"LB=<title>",
"RB=</title>",
"ORD=1",
LAST);
web_reg_save_param("content",
"LB=content=",
"RB=\/>\r\n",
"ORD=1",
LAST);
web_url("a.lietou.com",
"URL=http://a.lietou.com/{shen}.shtml",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t25.inf",
"Mode=HTML",
EXTRARES,
LAST);
}
return 0;
}
相关文章推荐
- LoadRunner关联的高级应用
- LOADRUNNER关联的高级应用
- LOADRUNNER关联的高级应用
- 性能测试应用LOADRUNNER高级研讨(讲课完成)
- LoadRunner简单应用之:关联HTTP请求
- LOADRUNNER高级特性应用案例
- 《Entity Framework 6 Recipes》中文翻译系列 (31) ------ 第六章 继承与建模高级应用之自引用关联
- loadrunner 关联函数的高级应用
- 《Entity Framework 6 Recipes》中文翻译系列 (30) ------ 第六章 继承与建模高级应用之多对多关联
- 《Entity Framework 6 Recipes》中文翻译系列 (37) ------ 第六章 继承与建模高级应用之独立关联与外键关联
- 什么是在 LoadRunner 脚本中做关联
- Excel 2010高级应用-折线图(二)
- lucene.net 高级应用之排序、设置权重、优化、分布式搜索
- Neo4j高级应用技术专题系列 - APOC存储过程库-【3】优化数据库写入性能
- JavaScript高级应用入门
- spark自定义Accumulator高级应用(JAVA)
- 从Java到C++——常量(const)的高级应用
- LoadRunner可以把关联取值当作检查点来使用
- C语言高级应用