Package com.eviware.soapui.impl.wsdl.testcase

Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext


        }

        public void actionPerformed(ActionEvent e) {
            SoapUI.getThreadPool().execute(new Runnable() {
                public void run() {
                    SubmitContext context = new WsdlTestRunContext(getModelItem());
                    statusBar.setIndeterminate(true);
                    amfRequestTestStep.initAmfRequest(context);

                    if (context.getProperty(AMFRequest.AMF_SCRIPT_ERROR) != null) {
                        UISupport.showInfoMessage(((Throwable) context.getProperty(AMFRequest.AMF_SCRIPT_ERROR))
                                .getMessage());
                    } else {
                        UISupport.showInfoMessage(scriptInfo(context));

                    }
                    statusBar.setIndeterminate(false);
                    amfRequestTestStep.getAMFRequest().clearArguments();
                }

                @SuppressWarnings("unchecked")
                private String scriptInfo(SubmitContext context) {
                    HashMap<String, Object> parameters = (HashMap<String, Object>) context
                            .getProperty(AMFRequest.AMF_SCRIPT_PARAMETERS);
                    HashMap<String, Object> amfHeaders = (HashMap<String, Object>) context
                            .getProperty(AMFRequest.AMF_SCRIPT_HEADERS);
                    StringBuilder sb = new StringBuilder();
                    sb.append("parameters " + (parameters != null ? parameters.toString() : ""));
                    sb.append("\n");
                    sb.append("amfHeaders " + (amfHeaders != null ? amfHeaders.toString() : ""));
View Full Code Here


        }
    }

    protected Submit doSubmit() throws SubmitException {

        SubmitContext submitContext = new WsdlTestRunContext(getModelItem());
        if (!amfRequestTestStep.initAmfRequest(submitContext)) {
            throw new SubmitException("AMF request is not initialised properly !");
        }

        Analytics.trackAction(SoapUIActions.RUN_TEST_STEP.getActionName(), "StepType", "AMF");
View Full Code Here

    }

    protected Submit doSubmit() throws SubmitException {
        Analytics.trackAction(SoapUIActions.RUN_TEST_STEP.getActionName(), "StepType", "JDBC");

        return jdbcRequestTestStep.getJdbcRequest().submit(new WsdlTestRunContext(getModelItem()), true);
    }
View Full Code Here

        }

        if (event.getPropertyName().equals(TestAssertion.CONFIGURATION_PROPERTY)
                || event.getPropertyName().equals(TestAssertion.DISABLED_PROPERTY)) {
            if (getTestRequest().getResponse() != null) {
                getTestRequest().assertResponse(new WsdlTestRunContext(this));
            }
        } else {
            if (event.getSource() == testRequest && event.getPropertyName().equals(WsdlTestRequest.NAME_PROPERTY)) {
                if (!super.getName().equals((String) event.getNewValue())) {
                    super.setName((String) event.getNewValue());
View Full Code Here

            if (assertion == null) {
                return null;
            }

            if (getResponse() != null) {
                assertion.assertResponse(new RestResponseMessageExchange(this), new WsdlTestRunContext(testStep));
                notifier.notifyChange();
            }

            return assertion;
        } catch (Exception e) {
View Full Code Here

                return null;
            }

            if (getAMFRequest().getResponse() != null) {
                assertion.assertResponse(new AMFMessageExchange(this, getAMFRequest().getResponse()),
                        new WsdlTestRunContext(this));
                notifier.notifyChange();
            }

            return assertion;
        } catch (Exception e) {
View Full Code Here

    public void propertyChange(PropertyChangeEvent arg0) {
        if (arg0.getPropertyName().equals(TestAssertion.CONFIGURATION_PROPERTY)
                || arg0.getPropertyName().equals(TestAssertion.DISABLED_PROPERTY)) {
            if (getAMFRequest().getResponse() != null) {
                assertResponse(new WsdlTestRunContext(this));
            }
        }
    }
View Full Code Here

                requestStepConfig.setInterface((String) event.getNewValue());
            }
        } else if (event.getPropertyName().equals(TestAssertion.CONFIGURATION_PROPERTY)
                || event.getPropertyName().equals(TestAssertion.DISABLED_PROPERTY)) {
            if (getTestRequest().getResponse() != null) {
                getTestRequest().assertResponse(new WsdlTestRunContext(this));
            }
        } else {
            if (event.getSource() == testRequest && event.getPropertyName().equals(WsdlTestRequest.NAME_PROPERTY)) {
                if (!super.getName().equals((String) event.getNewValue())) {
                    super.setName((String) event.getNewValue());
View Full Code Here

            if (assertion == null) {
                return null;
            }

            if (getResponse() != null) {
                assertion.assertResponse(new HttpResponseMessageExchange(this), new WsdlTestRunContext(testStep));
                notifier.notifyChange();
            }

            return assertion;
        } catch (Exception e) {
View Full Code Here

        System.setProperty(GlobalHttpHeadersRequestFilter.HEADER_SYSTEM_PROPERTY_PREFIX + "User-Agent", "Testing Replace.${currentStepIndex}.${currentStepRunIndex}");

        AbstractTestCaseRunner runner = Mockito.mock(AbstractTestCaseRunner.class);
        Mockito.when(runner.getResultCount()).thenReturn(4);

        WsdlTestRunContext context = mockContext();
        Mockito.when(context.getTestRunner()).thenReturn(runner);
        Mockito.when(context.getCurrentStepIndex()).thenReturn(3);

        AbstractHttpRequest<?> request = mockRequest(new StringToStringsMap());

        globalHttpHeadersRequestFilter.filterAbstractHttpRequest(context, request);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext

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.