Package com.eviware.soapui.support

Examples of com.eviware.soapui.support.SoapUIException


        // check first if valid workspace file
        if (file.exists()) {
            try {
                SoapuiWorkspaceDocumentConfig.Factory.parse(file);
            } catch (Exception e) {
                throw new SoapUIException(messages.get("FailedToLoadWorkspaceException") + e.toString());
            }
        }

        fireWorkspaceSwitching();
View Full Code Here


                log.info(failedTests.size() + " load tests failed:");
                for (LoadTestRunner loadTestRunner : failedTests) {
                    log.info(loadTestRunner.getLoadTest().getName() + ": " + loadTestRunner.getReason());
                }

                throw new SoapUIException("LoadTests failed");
            }
        }

        return true;
    }
View Full Code Here

            }
        } else {
            project = workspace.importProject(projectFilePath);
        }
        if (project == null) {
            throw new SoapUIException("Cannot open project on path: " + projectFilePath);
        }
        return project;
    }
View Full Code Here

    public static final String PASS_TEMPLATE = "PASS_VALUE";

    public static Connection initConnection(PropertyExpansionContext context, String driver, String connectionString,
                                            String password) throws SQLException, SoapUIException {
        if (JdbcUtils.missingConnSettings(driver, connectionString)) {
            throw new SoapUIException("Some connections settings are missing");
        }
        String drvr = PropertyExpander.expandProperties(context, driver).trim();
        String connStr = PropertyExpander.expandProperties(context, connectionString).trim();
        String pass = StringUtils.hasContent(password) ? PropertyExpander.expandProperties(context, password).trim()
                : "";
        String masskedPass = connStr.replace(PASS_TEMPLATE, "#####");
        if (connStr.contains(PASS_TEMPLATE)) {
            pass = Matcher.quoteReplacement(pass);
            connStr = connStr.replaceFirst(PASS_TEMPLATE, pass);
        }
        try {
            GroovyUtils.registerJdbcDriver(drvr);
            DriverManager.getDriver(connStr);
        } catch (SQLException e) {
            // SoapUI.logError( e );
            try {
                Class.forName(drvr).newInstance();
            } catch (Exception e1) {
                SoapUI.logError(e);
                throw new SoapUIException("Failed to init connection for driver [" + drvr + "], connectionString ["
                        + masskedPass + "]");
            }
        }
        return DriverManager.getConnection(connStr);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.SoapUIException

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.