SHARE
TWEET

Untitled

a guest Jun 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. props.put("yourcookiename1","${COOKIE_yourcookiename1}");
  2. props.put("yourcookiename2","${COOKIE_yourcookiename2}");
  3. props.put("yourcookiename3","${COOKIE_yourcookiename3}");
  4.      
  5. import org.apache.jmeter.protocol.http.control.CookieManager;
  6. import org.apache.jmeter.protocol.http.control.Cookie;
  7. CookieManager manager = sampler.getCookieManager();
  8. Cookie cookie = new Cookie("yourcookiename1",props.get("yourcookiename1"),"abc.com","/",false,0);
  9. manager.add(cookie);
  10. Cookie cookie1 = new Cookie("yourcookiename2",props.get("yourcookiename2"),"abc.com","/",false,0);
  11. manager.add(cookie1);
  12. Cookie cookie2 = new Cookie("yourcookiename3",props.get("yourcookiename3"),"abc.com","/",false,0);
  13. manager.add(cookie2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top