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. 如果選擇的是 面向目標 的場景方法,集合點是不可用的


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM