|
3#
楼主 |
发表于 2004-9-20 12:03:44
|
只看该作者
Originally posted by sunshinelius at 2004-9-20 11:31 AM:
weblogic端队列指的是weblogic线程池吗?
loadrunner中,测试场景是怎么设置的?每个用户做多少笔交易?脚本能贴上来看看吗?
qaload我也使过,和lr差别不大。
脚本是:
#include "web_api.h"
#include "lrw_custom_body.h"
vuser_init()
{
web_add_cookie("Language=en; DOMAIN=192.168.126.153");
web_add_cookie("Country=US; DOMAIN=192.168.126.153");
web_url("start.jsp",
"URL=http://192.168.126.153:7001/start.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css",
"URL=http://192.168.126.153:7001/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("banner_login.gif",
"URL=http://192.168.126.153:7001/images/banner_login.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("clear.gif",
"URL=http://192.168.126.153:7001/Images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("clear.gif_2",
"URL=http://192.168.126.153:7001/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("login_patient.gif",
"URL=http://192.168.126.153:7001/images/login_patient.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("login_admin.gif",
"URL=http://192.168.126.153:7001/images/login_admin.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("login_physician.gif",
"URL=http://192.168.126.153:7001/images/login_physician.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_concurrent_end(NULL);
web_url("鐧诲綍",
"URL=http://192.168.126.153:7001/physician/login.do",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/start.jsp",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_2",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_url("physician_top_banner3.gif",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_url("clear.gif_3",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_url("physician_banner_photo.jpg",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_concurrent_end(NULL);
web_submit_data("login.do",
"Action=http://192.168.126.153:7001/physician/login.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/physician/login.do",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=username", "Value=mary@md.com", ENDITEM,
"Name=password", "Value=weblogic", ENDITEM,
"Name=action", "Value=鐧诲綍", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_3",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_url("physician_top_banner3.gif_2",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_url("physician_banner_photo.jpg_2",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_url("clear.gif_4",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_concurrent_end(NULL);
return 0;
}
Action()
{
web_submit_data("searchresults.do",
"Action=http://192.168.126.153:7001/physician/searchresults.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/physician/search.do",
"Snapshot=t4.inf",
"Mode=HTTP",
ITEMDATA,
"Name=lastName", "Value=99", ENDITEM,
"Name=ssn", "Value=", ENDITEM,
"Name=action", "Value=鎼滅储", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_4",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_top_banner3.gif_3",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_banner_photo.jpg_3",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("clear.gif_5",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_concurrent_end(NULL);
return 0;
}
Action()
{
web_submit_data("searchresults.do",
"Action=http://192.168.126.153:7001/physician/searchresults.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/physician/search.do",
"Snapshot=t4.inf",
"Mode=HTTP",
ITEMDATA,
"Name=lastName", "Value=99", ENDITEM,
"Name=ssn", "Value=", ENDITEM,
"Name=action", "Value=鎼滅储", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_4",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_top_banner3.gif_3",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_banner_photo.jpg_3",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("clear.gif_5",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_concurrent_end(NULL);
return 0;
} |
|