Package org.apache.jmeter.protocol.http.sampler

Examples of org.apache.jmeter.protocol.http.sampler.HTTPNullSampler


      assertEquals(0, man.getCookieCount());
    }

    public void testSendCookie() throws Exception {
      man.add(new Cookie("id", "value", "jakarta.apache.org", "/", false, 9999999999L));
      HTTPSamplerBase sampler = new HTTPNullSampler();
      sampler.setDomain("jakarta.apache.org");
      sampler.setPath("/index.html");
      sampler.setMethod(HTTPSamplerBase.GET);
      assertNotNull(man.getCookieHeaderForURL(sampler.getUrl()));
    }
View Full Code Here


      assertNotNull(man.getCookieHeaderForURL(sampler.getUrl()));
    }

    public void testSendCookie2() throws Exception {
      man.add(new Cookie("id", "value", ".apache.org", "/", false, 9999999999L));
      HTTPSamplerBase sampler = new HTTPNullSampler();
      sampler.setDomain("jakarta.apache.org");
      sampler.setPath("/index.html");
      sampler.setMethod(HTTPSamplerBase.GET);
      assertNotNull(man.getCookieHeaderForURL(sampler.getUrl()));
    }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.http.sampler.HTTPNullSampler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.