1、增加BeanShell PreProcessor
2、添加如下内容
import org.apache.jmeter.protocol.http.control.CookieManager; // Get the current thread's cookie manager CookieManager cm = sampler.getCookieManager(); // Clear all cookies for this domain cm.clear();
1、增加BeanShell PreProcessor
2、添加如下内容
import org.apache.jmeter.protocol.http.control.CookieManager; // Get the current thread's cookie manager CookieManager cm = sampler.getCookieManager(); // Clear all cookies for this domain cm.clear();