我想用jmeter銷燬我的會話。我使用以下代碼從我的註銷採樣器作爲後處理beanshell處理器:JMeter無法銷燬會話
import org.apache.jmeter.protocol.http.control.CookieManager;
CookieManager cManager = sampler.getCookieManager();
for (int i=0;i<cManager.getCookieCount();i++){
sampler.getCookieManager().remove(i);
}
但是,Cookie不會被破壞。 我在做什麼錯?
最好的問候, 彼得
嗨,彼得,你檢查過這個嗎? http://stackoverflow.com/questions/12707635/how-to-clear-jsessionid-of-each-threaduser-in-jmeter-on-demand –