loadrunner中controller 中scenario-> rendezvous灰色不可用的解决方法:

1.首先确保lr_rendezvous("login");函数添加成功


 Action()
{

	web_set_max_html_param_len("2048");


	lr_rendezvous("login");

   
	lr_start_transaction("login");



	web_submit_data("AjaxLogin", 
		"Action=http://192.168.0.188:81/Account/AjaxLogin?r=0.6937264444814134", 
		"Method=POST", 
		"RecContentType=textml", 
		"Referer=http://192.168.0.188:81/Account/Login", 
		"Snapshot=t3.inf", 
		"Mode=HTML", 
		ITEMDATA, 
		"Name=UserName", "Value={user}", ENDITEM, 
		"Name=UserPwd", "Value=111111", ENDITEM, 
		LAST);

	web_url("Index", 
		"URL=http://192.168.0.188:81/UserCenter/Index?r=0.6172461120396082", 
		"Resource=0", 
		"RecContentType=textml", 
		"Referer=http://192.168.0.188:81/Account/Login", 
		"Snapshot=t4.inf", 
		"Mode=HTML", 
		EXTRARES, 
		"Url=../Areas/Shop/Themes/M1/Content/Images/image/sprite_usermember.png", "Referer=http://192.168.0.188:81/UserCenter/Index?r=0.6172461120396082", ENDITEM, 
		"Url=../Areas/Shop/Themes/M1/Content/images/image/icon_level.png", "Referer=http://192.168.0.188:81/UserCenter/Index?r=0.6172461120396082", ENDITEM, 
		"Url=../Areas/Shop/Themes/M1/Content/images/userCenter_print.png", "Referer=http://192.168.0.188:81/UserCenter/Index?r=0.6172461120396082", ENDITEM, 
		"Url=../Areas/Shop/Themes/M1/Content/images/msg.png", "Referer=http://192.168.0.188:81/UserCenter/Index?r=0.6172461120396082", ENDITEM, 
		LAST);

	lr_end_transaction("login",LR_AUTO);

	/* Registering parameter(s) from source task id 61
	// {Siebel_Analytic_search_id2} = "1"
	// */

	web_reg_save_param("Siebel_Analytic_search_id2", 
		"LB/IC=sid=\"", 
		"RB/IC=\"", 
		"Ord=1", 
		"Search=Body", 
		LAST);

	web_link("退出", 
		"Text=退出", 
		"Snapshot=t5.inf", 
		LAST);

	web_custom_request("_GetDateTime", 
		"URL=http://{Siebel_Analytic_search_id2}92.{Siebel_Analytic_search_id2}68.0.{Siebel_Analytic_search_id2}88:8{Siebel_Analytic_search_id2}/Partial/_GetDateTime?r=0.{Siebel_Analytic_search_id2}2004432052{Siebel_Analytic_search_id2}45364", 
		"Method=POST", 
		"Resource=0", 
		"RecContentType=textml", 
		"Referer=http://{Siebel_Analytic_search_id2}92.{Siebel_Analytic_search_id2}68.0.{Siebel_Analytic_search_id2}88:8{Siebel_Analytic_search_id2}/Home", 
		"Snapshot=t6.inf", 
		"Mode=HTML", 
		"EncType=", 
		LAST);

	return 0;
}

 

如果还是没有,怎么办呢?

新建场景的时候“Manual Scenario”下的check box不能选中,取消选中就好了。
既Vuser不能以百分比的形式。

所以:集合点灰化有两种情况:

  1. 脚本没有添加集合点函数

  2. 场景中设置以Vuser组模式,不要选择以百分比模式执行

  3. 如果选择的是 面向目标 的场景方法,集合点是不可用的
posted @ 2015-06-17 14:34  Agoly  阅读(3666)  评论(0编辑  收藏  举报