zoukankan      html  css  js  c++  java
  • 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. 如果选择的是 面向目标 的场景方法,集合点是不可用的
  • 相关阅读:
    杭州电acm理工大舞台版
    String.Split()功能
    android layout物业介绍
    讨厌OpenSSL
    Android Bundle类别
    多项式回归
    如何直接串行电缆以及空调制解调器串行电缆之间的区别?
    为什么写科技博客是情侣如此重要?
    SSH框架总结(帧分析+环境结构+示例源代码下载)
    RapidXml用法
  • 原文地址:https://www.cnblogs.com/qmfsun/p/4583250.html
Copyright © 2011-2022 走看看