Examples of TestPropertyHolder


Examples of com.eviware.soapui.model.TestPropertyHolder

                    "Declare available response/request namespaces in source/target expressions");
        }

        public void actionPerformed(ActionEvent e) {
            try {
                TestPropertyHolder previousStep = getCurrentTransfer().getSourceStep();

                if (previousStep instanceof WsdlTestRequestStep) {
                    WsdlTestRequest testRequest = ((WsdlTestRequestStep) previousStep).getTestRequest();
                    sourceArea.setText(XmlUtils.declareXPathNamespaces(testRequest.getOperation().getInterface())
                            + sourceArea.getText());
                } else {
                    UISupport.showErrorMessage("Property Source is not a Request");
                }

                TestPropertyHolder nextStep = getCurrentTransfer().getTargetStep();

                if (nextStep instanceof WsdlTestRequestStep) {
                    WsdlTestRequest testRequest = ((WsdlTestRequestStep) nextStep).getTestRequest();
                    targetArea.setText(XmlUtils.declareXPathNamespaces(testRequest.getOperation().getInterface())
                            + targetArea.getText());
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

        if (currentSourceProperty != null) {
            return currentSourceProperty;
        }

        TestPropertyHolder actualSourceStep = getSourceStep();
        return actualSourceStep == null ? null : actualSourceStep.getProperty(sourceType);
    }
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

        if (currentSourceProperty != null) {
            return currentSourceProperty.getName();
        }

        TestPropertyHolder actualSourceStep = getSourceStep();
        if (actualSourceStep == null) {
            return sourceType;
        }

        TestProperty property = actualSourceStep.getProperty(sourceType);
        return property == null ? sourceType : property.getName();
    }
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

        // update
        sourceType = name;
        config.setSourceType(name);

        // update actual property
        TestPropertyHolder sourceStep2 = getSourceStep();
        currentSourceProperty = sourceStep2 != null && sourceType != null ? sourceStep2.getProperty(sourceType) : null;

        // notify!
        propertyChangeSupport.firePropertyChange(SOURCE_TYPE_PROPERTY, old, name);
    }
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

        if (currentTargetProperty != null) {
            return currentTargetProperty;
        }

        TestPropertyHolder actualTargetStep = getTargetStep();
        return actualTargetStep == null ? null : actualTargetStep.getProperty(targetType);
    }
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

        if (currentTargetProperty != null) {
            return currentTargetProperty.getName();
        }

        TestPropertyHolder actualTargetStep = getTargetStep();
        TestProperty property = actualTargetStep == null ? null : actualTargetStep.getProperty(targetType);
        return actualTargetStep == null || property == null ? targetType : property.getName();
    }
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

        // update
        targetType = name;
        config.setTargetType(name);

        // update actual property
        TestPropertyHolder targetStep2 = getTargetStep();

        currentTargetProperty = targetStep2 != null && targetType != null ? targetStep2.getProperty(targetType) : null;

        // notify!
        propertyChangeSupport.firePropertyChange(TARGET_TYPE_PROPERTY, old, name);
    }
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

            okBtn.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {

                    String name;
                    TestPropertyHolder sourceStep = (TestPropertyHolder) sourceStepCombo.getSelectedItem();
                    if (sourceStep == PropertyExpansionUtils.getGlobalProperties()) {
                        name = PropertyExpansion.GLOBAL_REFERENCE;
                    } else if (sourceStep == parent.getTestCase().getTestSuite().getProject()) {
                        name = PropertyExpansion.PROJECT_REFERENCE;
                    } else if (sourceStep == parent.getTestCase().getTestSuite()) {
                        name = PropertyExpansion.TESTSUITE_REFERENCE;
                    } else if (sourceStep == parent.getTestCase()) {
                        name = PropertyExpansion.TESTCASE_REFERENCE;
                    } else {
                        name = sourceStep.getModelItem().getName();
                    }

                    badTransfer.setTargetStepName(name);

                    badTransfer.setTargetPropertyName((String) propertiesCombo.getSelectedItem());
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

            okBtn.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {

                    String name;
                    TestPropertyHolder sourceStep = (TestPropertyHolder) sourceStepCombo.getSelectedItem();
                    if (sourceStep == PropertyExpansionUtils.getGlobalProperties()) {
                        name = PropertyExpansion.GLOBAL_REFERENCE;
                    } else if (sourceStep == parent.getTestCase().getTestSuite().getProject()) {
                        name = PropertyExpansion.PROJECT_REFERENCE;
                    } else if (sourceStep == parent.getTestCase().getTestSuite()) {
                        name = PropertyExpansion.TESTSUITE_REFERENCE;
                    } else if (sourceStep == parent.getTestCase()) {
                        name = PropertyExpansion.TESTCASE_REFERENCE;
                    } else {
                        name = sourceStep.getModelItem().getName();
                    }

                    badTransfer.setSourceStepName(name);

                    badTransfer.setSourcePropertyName((String) propertiesCombo.getSelectedItem());
View Full Code Here

Examples of com.eviware.soapui.model.TestPropertyHolder

            testCase = securityTest.getTestCase();
            testSuite = testCase.getTestSuite();
            project = testSuite.getProject();
        }

        TestPropertyHolder globalProperties = PropertyExpansionUtils.getGlobalProperties();
        if (globalProperties.getProperties().size() > 0) {
            targetMenu.add(createPropertyMenu("Global", globalProperties));
        }

        if (project != null) {
            targetMenu.add(createPropertyMenu("Project: [" + project.getName() + "]", project));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.