Action() { web_set_max_html_param_len("1024"); web_url("b.jsp", "URL=http://10.10.129.99:8080/blank/b.jsp", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode=HTTP", LAST);
web_concurrent_start(NULL);
web_url("a.jsp", "URL=http://10.10.129.99:8080/blank/a.jsp", "Resource=1", "RecContentType=image/jpeg", "Referer=http://10.10.129.99:8080/blank/b.jsp", LAST); /* web_url("c.jsp", "URL=http://10.10.129.99:8080/blank/c.jsp", "Resource=0", "RecContentType=text/html", "Referer=http://10.10.129.99:8080/blank/b.jsp", "Snapshot=t2.inf", "Mode=HTTP", LAST); */ web_concurrent_end(NULL);
//获取C.JSP页面上的验证码
web_reg_save_param("aaa", "LB/IC=Q", "RB/IC=Q", "Ord=1", "Search=body", LAST);
web_url("c.jsp_2", "URL=http://10.10.129.99:8080/blank/c.jsp", "Resource=0", "RecContentType=text/html", "Referer=http://10.10.129.99:8080/blank/b.jsp", "Snapshot=t3.inf", "Mode=HTTP", LAST);
//打印出来 也可以通过loadrunner log日志设置查看 param lr_log_message("-------:%s", lr_eval_string("{aaa}")); return 0; } |