Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.TestProperty


        return true;
    }

    @Override
    public Object getValueAt(int row, int column) {
        TestProperty param = holder.getPropertyList().get(row);
        switch (column) {
            case 0:
                return param.getName();
            case 1:
                return param.getValue();

        }
        return super.getValueAt(row, column);
    }
View Full Code Here


    public XPathReference[] getXPathReferences() {
        List<XPathReference> result = new ArrayList<XPathReference>();

        if (StringUtils.hasContent(getPath())) {
            TestModelItem testStep = getAssertable().getTestStep();
            TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty("Response")
                    : testStep.getProperty("Request");
            result.add(new XPathReferenceImpl("XQuery for " + getName() + " XQueryContainsAssertion in "
                    + testStep.getName(), property, this, "path"));
        }
View Full Code Here

        return result;
    }

    public String getPropertyValue(String name) {
        TestProperty property = getProperty(name);
        return property == null ? null : property.getValue();
    }
View Full Code Here

    public Set<String> keySet() {
        return new LinkedHashSet<String>(Arrays.asList(getPropertyNames()));
    }

    public TestProperty put(String key, TestProperty value) {
        TestProperty result = addProperty(key);
        result.setValue(value.getValue());
        return result;
    }
View Full Code Here

    public XPathReference[] getXPathReferences() {
        List<XPathReference> result = new ArrayList<XPathReference>();

        if (StringUtils.hasContent(getPath())) {
            TestModelItem testStep = getAssertable().getTestStep();
            TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty("Response")
                    : testStep.getProperty("Request");
            result.add(new XPathReferenceImpl("XPath for " + getName() + " XPathContainsAssertion in "
                    + testStep.getName(), property, this, "path"));
        }
View Full Code Here

        targetPropertyCombo.setEnabled(false);
        targetPropertyCombo.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (e.getStateChange() == ItemEvent.SELECTED && !selecting) {
                    TestProperty targetProperty = (TestProperty) targetPropertyCombo.getSelectedItem();
                    PropertyTransfer valueTransfer = getCurrentTransfer();

                    if (valueTransfer != null) {
                        valueTransfer.setTargetPropertyName(targetProperty.getName());
                    }
                }
            }
        });
        String context = "Target";
View Full Code Here

        sourcePropertyCombo.setEnabled(false);
        sourcePropertyCombo.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (e.getStateChange() == ItemEvent.SELECTED && !selecting) {
                    TestProperty sourceProperty = (TestProperty) sourcePropertyCombo.getSelectedItem();
                    PropertyTransfer valueTransfer = getCurrentTransfer();

                    if (valueTransfer != null) {
                        valueTransfer.setSourcePropertyName(sourceProperty.getName());
                    }
                }
            }
        });
View Full Code Here

        return properties.remove(propertyName);
    }

    @Override
    public boolean renameProperty(String name, String newName) {
        TestProperty tp = properties.get(name);
        if (tp != null) {
            properties.put(newName, tp);
            properties.remove(name);
            return true;
        } else {
View Full Code Here

            int ix = name.indexOf(PropertyExpansion.PROPERTY_SEPARATOR);
            if (ix > 0) {
                String teststepname = name.substring(0, ix);
                TestStep refTestStep = context.getTestCase().getTestStepByName(teststepname);
                if (refTestStep != null) {
                    TestProperty property = refTestStep.getProperty(name.substring(ix + 1));
                    if (property != null && !property.isReadOnly()) {
                        property.setValue(value.toString());
                        return;
                    }
                }
            }
        }
View Full Code Here

        public PropertyModelItem getTestProperty() {
            int index = getSelectedRow();
            if (index == -1) {
                return null;
            }
            TestProperty property = propertiesModel.getPropertyAtRow(index);
            return new PropertyModelItem(property, true);
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestProperty

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.