Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToObjectMap


    public boolean dependsOn(ModelItem modelItem) {
        return modelItem == getModelItem() || modelItem == getModelItem().getProject();
    }

    protected void runTestSuite() {
        testSuiteRunner = getModelItem().run(new StringToObjectMap(), true);
    }
View Full Code Here


        return runFromHereContext;
    }

    public void setRunFromHereContext(StringToObjectMap runFromHereContext) {
        if (!isForLoadTest()) {
            this.runFromHereContext = new StringToObjectMap(runFromHereContext);
        }
    }
View Full Code Here

        public String expand(String content) {
            return PropertyExpander.expandProperties(this, content);
        }

        public StringToObjectMap getProperties() {
            StringToObjectMap result = new StringToObjectMap();
            Map<String, TestProperty> props = getGlobalProperties().getProperties();
            for (Map.Entry<String, TestProperty> entry : props.entrySet()) {
                result.put(entry.getKey(), entry.getValue());
            }

            return result;
        }
View Full Code Here

                if (System.getProperty("soapui.enablenamedthreads") != null) {
                    Thread.currentThread().setName(
                            testCase.getName() + " " + loadTest.getName() + " ThreadIndex = " + threadIndex);
                }

                runner = new WsdlTestCaseRunner(testCase, new StringToObjectMap());

                while (!canceled) {
                    try {
                        runner.getRunContext().reset();
                        runner.getRunContext().setProperty(TestCaseRunContext.THREAD_INDEX, threadIndex);
View Full Code Here

                } else {
                    addArgument(PropertyExpander.expandProperties(context, propertyValue.getValue()));
                }
            }

            StringToObjectMap stringToObjectMap = new StringToObjectMap();
            for (String key : getAmfHeadersString().getKeys()) {
                if (amfHeadersTemp.containsKey(key)) {
                    stringToObjectMap.put(key, amfHeadersTemp.get(key));
                } else {
                    stringToObjectMap.put(key,
                            PropertyExpander.expandProperties(context, getAmfHeadersString().get(key)));
                }
            }
            setAmfHeaders(stringToObjectMap);
View Full Code Here

            return;
        }

        runButton.setEnabled(false);
        cancelButton.setEnabled(true);
        StringToObjectMap properties = new StringToObjectMap();
        // properties.put( "loopButton", loopButton );
        properties.put(TestCaseRunContext.INTERACTIVE, Boolean.TRUE);
        lastRunner = null;

        runner = getModelItem().run(properties, true);
    }
View Full Code Here

                    // StringToObjectMap properties = new StringToObjectMap();
                    // for( String name : testRunContext.getPropertyNames() )
                    // properties.put( name, testRunContext.getProperty( name ));

                    result.startTimer();
                    StringToObjectMap properties = new StringToObjectMap();

                    if (isCopyLoadTestProperties() && properties.containsKey(TestRunContext.LOAD_TEST_CONTEXT)) {
                        properties
                                .put(TestRunContext.THREAD_INDEX, testRunContext.getProperty(TestRunContext.THREAD_INDEX));
                        properties.put(TestRunContext.TOTAL_RUN_COUNT,
                                testRunContext.getProperty(TestRunContext.TOTAL_RUN_COUNT));
                        properties.put(TestRunContext.LOAD_TEST_CONTEXT,
                                testRunContext.getProperty(TestRunContext.LOAD_TEST_CONTEXT));
                        properties.put(TestRunContext.LOAD_TEST_RUNNER,
                                testRunContext.getProperty(TestRunContext.LOAD_TEST_RUNNER));
                        properties.put(TestRunContext.RUN_COUNT, testRunContext.getProperty(TestRunContext.RUN_COUNT));
                    }

                    if (isCopyHttpSession() && testRunContext.hasProperty(TestRunContext.HTTP_STATE_PROPERTY)) {
                        properties.put(TestRunContext.HTTP_STATE_PROPERTY,
                                testRunContext.getProperty(TestRunContext.HTTP_STATE_PROPERTY));
                    }

                    properties.put(TestRunContext.INTERACTIVE, testRunContext.getProperty(TestRunContext.INTERACTIVE));

                    properties.put("#CallingRunTestCaseStep#", this);
                    properties.put("#CallingTestCaseRunner#", testRunner);
                    properties.put("#CallingTestRunContext#", testRunContext);

                    testCaseRunner = runningTestCase.run(properties, true);
                    testCaseRunner.waitUntilFinished();
                    result.stopTimer();
View Full Code Here

        InternalProjectRunListener projectRunListener = new InternalProjectRunListener();
        project.addProjectRunListener(projectRunListener);

        try {
            log.info(("Running Project [" + project.getName() + "], runType = " + project.getRunType()));
            WsdlProjectRunner runner = project.run(new StringToObjectMap(), false);
            log.info("Project [" + project.getName() + "] finished with status [" + runner.getStatus() + "] in "
                    + runner.getTimeTaken() + "ms");
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
View Full Code Here

     */

    protected void runSuite(WsdlTestSuite suite) {
        try {
            log.info(("Running TestSuite [" + suite.getName() + "], runType = " + suite.getRunType()));
            WsdlTestSuiteRunner runner = suite.run(new StringToObjectMap(), false);
            log.info("TestSuite [" + suite.getName() + "] finished with status [" + runner.getStatus() + "] in "
                    + (runner.getTimeTaken()) + "ms");
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
View Full Code Here

     */

    protected void runTestCase(WsdlTestCase testCase) {
        try {
            log.info("Running TestCase [" + testCase.getName() + "]");
            WsdlTestCaseRunner runner = testCase.run(new StringToObjectMap(), false);
            log.info("TestCase [" + testCase.getName() + "] finished with status [" + runner.getStatus() + "] in "
                    + (runner.getTimeTaken()) + "ms");
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringToObjectMap

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.