Read the value of a cookie in Jmeter
来源:互联网 发布:91论坛邀请码淘宝 编辑:程序博客网 时间:2024/04/29 04:53
Just found that there is one property of Jmeter that I can set so as to get the value of a cookie.
The following is from Jmeter site (http://jmeter.apache.org/usermanual):
"Received Cookies can be stored as JMeter thread variables(versions of JMeter after 2.3.2 no longer do this by default).To save cookies as variables, define the property "CookieManager.save.cookies=true".Also, cookies names are prefixed with "COOKIE_" before they are stored (this avoids accidental corruption of local variables)To revert to the original behaviour, define the property "CookieManager.name.prefix= " (one or more spaces).If enabled, the value of a cookie with the name TEST can be referred to as ${COOKIE_TEST}."
The problem that I got is where to set this property: CookieManager.save.cookies=true.
In a rush, I googled and found that there is a property file under the Jmeter install directory: jmeter.properties, where I can set that boolean value as above. In order to save time, I just update this file. Actually I can override these properties via the command Line:
The following is also from Jmeter site (http://jmeter.apache.org/usermanual):
Java system properties, JMeter properties, and logging properties can be overriden directly on the command line (instead of modifying jmeter.properties).To do so, use the following options:
-D[prop_name]=[value] - defines a java system property value.
-J[prop name]=[value] - defines a local JMeter property.
-G[prop name]=[value] - defines a JMeter property to be sent to all remote servers.
-G[propertyfile] - defines a file containing JMeter properties to be sent to all remote servers.
-L[category]=[priority] - overrides a logging setting, setting a particular category to the given priority level.
The -L flag can also be used without the category name to set the root logging level.
Examples:
jmeter -Duser.dir=/home/mstover/jmeter_stuff \ -Jremote_hosts=127.0.0.1 -Ljmeter.engine=DEBUGjmeter -LDEBUGN.B.
The command line properties are processed early in startup, but after the logging system has been set up.Attempts to use the -J flag to update log_level or log_file properties will have no effect.
- Read the value of a cookie in Jmeter
- THE VALUE OF A SMILE
- Cannot yield a value in the body of a try block with a catch clause
- The Introduction of Common Functions in Jmeter
- CareerCup Find the ceiling value present in the BST of a given ke
- Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your a
- Read the Last line in a file
- Error with hilo in NHibernate - “could not read a hi value - you need to populate the table”
- Modify the value of Dictionary in circle
- [Exception]Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- annot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- A case study in Free vs. Paid and the value of advertising
- In a bunch of number to find out the biggest minimum value
- How do I sort an array of hashes by a value in the hash?
- Spring MVC How take the parameter value of a GET HTTP Request in my controller method?
- sorting data based on the value in second column of a file
- 1948-2006:哈佛大学地理系的灭亡与地理学的重生
- SQL 获取汉字笔画数
- 基于Proteus的ARM7 LPC21XX学习笔记一、在Realview MDK 4.12下新建一个项目文件
- 基于Proteus的ARM7 LPC21XX学习笔记二、在proteus 7.7 sp2下新建一个电路仿真文件
- 基于Proteus的ARM7 LPC21XX学习笔记三、GPIO输出实例
- Read the value of a cookie in Jmeter
- AForge 使用 Grayscale 功能 (C#)
- 檢查字串是否僅包含數值
- SortedSet<T> 類別範例
- 拍婚纱照
- 程式使用多個 Timer 控制項注意事項
- 贺双节,签名版限量特惠
- AForge.NET IterativeThreshold (C#)
- 如何取得 Emgu CV Image 資料位置 (C#)