Package org.apache.jmeter.samplers

Examples of org.apache.jmeter.samplers.NewEntry


    Collection entries = sample.allEntries();
    assertEquals((long)entries.size(),(long)2);
    boolean first = true;
    for(Iterator it = entries.iterator();it.hasNext();)
    {
      NewEntry entry = (NewEntry)it.next();
      assertEquals("www.xerox.com",entry.getProperty(UrlConfig.class,
          UrlConfig.DOMAIN));
      if(first)
      {
        assertEquals("index.html",entry.getProperty(UrlConfig.class,
            UrlConfig.PATH));
      }
      else
      {
        assertEquals(UrlConfig.POST,entry.getProperty(UrlConfig.class,
            UrlConfig.METHOD));
      }
      first = false;
    }
  }
View Full Code Here


    }
  }

  public void testNext()
  {
    NewEntry next = null;
    for(int x = 0;x < 10;x++)
    {
      try
      {
        next= sample.nextEntry();
      }
      catch(NoEntryException e)
      {
        fail("No Entry Exception");
      }
      assertEquals("www.xerox.com",next.getProperty(UrlConfig.class,
          UrlConfig.DOMAIN));
    }
  }
View Full Code Here

  public Collection allEntries()
  {
    List allEntries = new LinkedList();
    for (Iterator iter = urls.iterator(); iter.hasNext(); )
    {
      NewEntry entry = new NewEntry();
      entry.addConfigElement((ConfigElement) iter.next());
      entry.addConfigElement(defaultUrl);
      for (Iterator iterB = additionalConfigElements.iterator(); iterB.hasNext(); )
      {
        entry.addConfigElement((ConfigElement) iterB.next());
      }
      allEntries.add(entry);
    }
    return allEntries;
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.samplers.NewEntry

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.