Package org.apache.jmeter.control

Examples of org.apache.jmeter.control.SamplerController


   *@exception  MalformedURLException  !ToDo (Exception description)
   ***********************************************************/
  public TextDriver(String outfile, String url, String propsFile) throws MalformedURLException
  {
    JMeterUtils.getProperties(propsFile);
    SamplerController sc = createTestSample(url);
    ol = new OutputListener(outfile);
    engine = new StandardJMeterEngine();
    ThreadGroup tGroup = new ThreadGroup();
    tGroup.addListener(ol);
    tGroup.addSamplerController(sc);
View Full Code Here


    URL u = new URL(url);
    config.setName(u.toString());
    config.putProperty(UrlConfig.METHOD, UrlConfig.GET);
    config.putProperty(UrlConfig.DOMAIN, u.getHost());
    config.putProperty(UrlConfig.PATH, u.getFile());
    SamplerController test = new HttpTestSample();
    test.addConfigElement(config);
    return test;
  }
View Full Code Here

        catClass.debug("runTest1 : configElementList - " + configElementList);
        catClass.debug("runTest1 : subControllerList - " + subControllerList);
      }
      while(subControllersIterator.hasNext())
      {
        SamplerController samplerController = (SamplerController)
    subControllersIterator.next();
        if(catClass.isDebugEnabled())
        {
          catClass.debug("runTest1 : samplerController type - "
    + samplerController.getClass());
        }
        if(samplerController instanceof JndiTestSample)
        {
          runThis = true;
        }
View Full Code Here

   *@exception  MalformedURLException  !ToDo (Exception description)
   ***********************************************************/
  public TextDriver(String outfile, String url, String propsFile) throws MalformedURLException
  {
    JMeterUtils.getProperties(propsFile);
    SamplerController sc = createTestSample(url);
    ol = new OutputListener(outfile);
    engine = new StandardJMeterEngine();
    ThreadGroup tGroup = new ThreadGroup();
    tGroup.addListener(ol);
    tGroup.addSamplerController(sc);
View Full Code Here

    URL u = new URL(url);
    config.setName(u.toString());
    config.putProperty(UrlConfig.METHOD, UrlConfig.GET);
    config.putProperty(UrlConfig.DOMAIN, u.getHost());
    config.putProperty(UrlConfig.PATH, u.getFile());
    SamplerController test = new HttpTestSample();
    test.addConfigElement(config);
    return test;
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.control.SamplerController

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.