Examples of WsdlLoadTest


Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
                               TestCaseRunner testRunner, TestCaseRunContext runContext) {
        TestStep step = result.getTestStep();
        if (targetStepMatches(step)) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

            int index = step.getTestCase().getIndexOfTestStep(step);

            long maximum = result.getTimeTaken();
            if (statisticsModel.getStatistic(index, Statistic.COUNT) > minRequests && maximum >= maxValue) {
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    }

    public String assertResults(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
                                TestCaseRunContext runContext) {
        if (ALL_TEST_STEPS.equals(getTargetStep())) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

            long sum = 0;
            List<TestStepResult> results = testRunner.getResults();
            for (int c = 0; c < results.size(); c++) {
                TestStepResult result = results.get(c);
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
                               TestCaseRunner testRunner, TestCaseRunContext runContext) {
        TestStep step = result.getTestStep();
        if (targetStepMatches(step)) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestLog loadTestLog = loadTest.getLoadTestLog();

            int errorCount = loadTestLog.getErrorCount(step.getName());
            if (maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors) {
                loadTestRunner.fail("Maximum number of errors [" + maxAbsoluteErrors + "] exceeded for step ["
                        + step.getName() + "]");
            }

            int index = step.getTestCase().getIndexOfTestStep(step);

            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();
            long totalSteps = statisticsModel.getStatistic(index, Statistic.COUNT);
            float relativeErrors = (float) errorCount / (float) totalSteps;

            if (maxRelativeErrors > 0 && relativeErrors > maxRelativeErrors) {
                loadTestRunner.fail("Maximum relative number of errors [" + maxRelativeErrors + "] exceeded for step ["
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    }

    public String assertResults(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
                                TestCaseRunContext runContext) {
        if (ALL_TEST_STEPS.equals(getTargetStep())) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestLog loadTestLog = loadTest.getLoadTestLog();

            int errorCount = loadTestLog.getErrorCount(null);
            if (maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors) {
                loadTestRunner.fail("Maximum number of errors [" + maxAbsoluteErrors + "] exceeded");
            }

            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();
            long totalSteps = statisticsModel.getStatistic(LoadTestStatistics.TOTAL, Statistic.COUNT);
            float relativeErrors = (float) errorCount / (float) totalSteps;

            if (maxRelativeErrors > 0 && relativeErrors > maxRelativeErrors) {
                loadTestRunner.fail("Maximum relative number of errors [" + maxRelativeErrors + "] exceeded");
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
                               TestCaseRunner testRunner, TestCaseRunContext runContext) {
        TestStep step = result.getTestStep();
        if (targetStepMatches(step)) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

            int index = step.getTestCase().getIndexOfTestStep(step);

            long tps = statisticsModel.getStatistic(index, Statistic.TPS);
            if (statisticsModel.getStatistic(index, Statistic.COUNT) >= minRequests && tps < minValue) {
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    }

    public String assertResults(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
                                TestCaseRunContext runContext) {
        if (ALL_TEST_STEPS.equals(getTargetStep())) {
            WsdlLoadTest loadTest = (WsdlLoadTest) loadTestRunner.getLoadTest();
            LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

            long tps = statisticsModel.getStatistic(LoadTestStatistics.TOTAL, Statistic.TPS);

            if (statisticsModel.getStatistic(LoadTestStatistics.TOTAL, Statistic.COUNT) > minRequests && tps < minValue) {
                return returnErrorOrFail("TPS [" + tps + "] is less than limit [" + minValue + "]", maxErrors,
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

        }

        if (!forLoadTest) {
            List<LoadTestConfig> loadTestConfigs = config.getLoadTestList();
            for (LoadTestConfig tsc : loadTestConfigs) {
                WsdlLoadTest loadTest = buildLoadTest(tsc);
                loadTests.add(loadTest);
            }
        }

        List<SecurityTestConfig> securityTestConfigs = config.getSecurityTestList();
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

    public boolean isForLoadTest() {
        return forLoadTest;
    }

    public WsdlLoadTest buildLoadTest(LoadTestConfig tsc) {
        return new WsdlLoadTest(this, tsc);
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

        return true;
    }

    public WsdlLoadTest addNewLoadTest(String name) {
        WsdlLoadTest loadTest = buildLoadTest(getConfig().addNewLoadTest());
        loadTest.setStartDelay(0);
        loadTest.setName(name);
        loadTests.add(loadTest);

        loadTest.addAssertion(TestStepStatusAssertion.STEP_STATUS_TYPE, LoadTestAssertion.ANY_TEST_STEP, false);

        (getTestSuite()).fireLoadTestAdded(loadTest);

        return loadTest;
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest

        loadTest.beforeSave();

        LoadTestConfig loadTestConfig = getConfig().addNewLoadTest();
        loadTestConfig.set(loadTest.getConfig().copy());

        WsdlLoadTest newLoadTest = buildLoadTest(loadTestConfig);
        newLoadTest.setName(name);
        ModelSupport.createNewIds(newLoadTest);
        newLoadTest.afterLoad();
        loadTests.add(newLoadTest);

        (getTestSuite()).fireLoadTestAdded(newLoadTest);

        return newLoadTest;
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.