Package org.apache.jmeter.testelement.property

Examples of org.apache.jmeter.testelement.property.CollectionProperty


    /**
     * Default Constructor.
     */
    public AuthManager()
    {
        setProperty(new CollectionProperty(AUTH_LIST, new ArrayList()));
    }
View Full Code Here


    }

    public void clear()
    {
        super.clear();
        setProperty(new CollectionProperty(AUTH_LIST, new ArrayList()));
    }
View Full Code Here

          assertTrue(isSupportedProtocol(new URL("https:")));
        }
        public void testFile() throws Exception
    {
          AuthManager am = new AuthManager();
          CollectionProperty ao = am.getAuthObjects();
          assertEquals(0,ao.size());
          am.addFile("testfiles/TestAuth.txt");
          assertEquals(5,ao.size());
          Authorization at;
          at = am.getAuthForURL(new URL("http://a.b.c/"));
          assertEquals("login",at.getUser());
          assertEquals("password",at.getPass());
          at = am.getAuthForURL(new URL("http://a.b.c/1"));
View Full Code Here

     */
  private Object SOAPHeader = null;
 
    public HeaderManager()
    {
        setProperty(new CollectionProperty(HEADERS, new ArrayList()));
    }
View Full Code Here

                        createTestElement(children[i])));
            }
            else if (children[i].getName().equals("collection"))
            {
                element.setProperty(
                    new CollectionProperty(
                        children[i].getAttribute("name",""),
                        createCollection(children[i], testClass)));
            }
            else if (children[i].getName().equals("map"))
            {
View Full Code Here

                        createTestElement(items[i])));
            }
            else if (items[i].getName().equals("collection"))
            {
                coll.add(
                    new CollectionProperty(
                        items[i].getAttribute("name", ""),
                        createCollection(items[i], testClass)));
            }
            else if (items[i].getName().equals("string"))
            {
View Full Code Here

            }
            else if (items[i].getName().equals("collection"))
            {
                map.put(
                    items[i].getAttribute("name"),
                    new CollectionProperty(
                        items[i].getAttribute("name", ""),
                        createCollection(items[i], testClass)));
            }
            else if (items[i].getName().equals("map"))
            {
View Full Code Here

    public void configure(TestElement el)
    {
        initTableModel();
        paramTable.setModel(tableModel);
        UserParameters params = (UserParameters) el;
        CollectionProperty names = params.getNames();
        CollectionProperty threadValues = params.getThreadLists();
        tableModel.setColumnData(0, (List) names.getObjectValue());
        PropertyIterator iter = threadValues.iterator();
        if (iter.hasNext())
        {
            tableModel.setColumnData(1, (List) iter.next().getObjectValue());
        }
        int count = 2;
View Full Code Here

       if (paramTable.isEditing())
       {
          paramTable.getCellEditor().stopCellEditing();
       }
        ((UserParameters) params).setNames(
            new CollectionProperty(
                UserParameters.NAMES,
                tableModel.getColumnData(JMeterUtils.getResString("name"))));
        CollectionProperty threadLists =
            new CollectionProperty(
                UserParameters.THREAD_VALUES,
                new ArrayList());
        log.debug("making threadlists from gui = " + threadLists);
        for (int x = 1; x < tableModel.getColumnCount(); x++)
        {
            threadLists.addItem(
                tableModel.getColumnData(THREAD_COLUMNS + "_" + x));
            log.debug(
                "Adding column to threadlist: "
                    + tableModel.getColumnData(THREAD_COLUMNS + "_" + x));
            log.debug("Threadlists now = " + threadLists);
View Full Code Here

        HeaderManager headerManager)
    {
      StringBuffer hdrs = new StringBuffer(100);
        if (headerManager != null)
        {
            CollectionProperty headers= headerManager.getHeaders();
            if (headers != null)
            {
                PropertyIterator i= headers.iterator();
                while (i.hasNext())
                {
                    org.apache.jmeter.protocol.http.control.Header header =
                      (org.apache.jmeter.protocol.http.control.Header)i.next().getObjectValue();
                    String n=header.getName();
View Full Code Here

TOP

Related Classes of org.apache.jmeter.testelement.property.CollectionProperty

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.