Examples of GetLogs


Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
            }
            Thread.sleep(2000);
            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            if (logMessages[logMessages.length - 1].getLogMessage().contains("****AFTER DROP***")) {
                Assert.fail("Drop mediator doesn't work");
                log.error("Drop mediator doesn't work");
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
            }
            log.info(result);
            Thread.sleep(2000);
            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            if (logMessages[logMessages.length - 1].getLogMessage().contains("****AFTER DROP***")) {
                Assert.fail("Drop mediator doesn't work");
                log.error("Drop mediator doesn't work");
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

            log.info(result);
            Thread.sleep(2000);
            System.out.println(result);

            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            if (!logMessages[logMessages.length - 1].getLogMessage().contains("SEQUENCE TRIGGERED")) {
                Assert.fail("Sequence mediator doesn't work");
                log.error("Sequence mediator doesn't work");
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

            }
            if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
            }
            GetLogsResponse getLogsResponse = new GetLogsResponse();
            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            int removeMessageLength = 0;
            if (logMessages.length > 4) {
                removeMessageLength = logMessages.length - 3;
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

                System.out.println(result);
            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
            }
            log.info(result);
            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();

            if ((!logMessages[logMessages.length - 1].getLogMessage().contains(searchString)) && (!result.toString().contains("IBM Company"))) {
                Assert.fail("Validate mediator doesn't work");
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
            }
            log.info(result);

            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            System.out.println(logMessages[logMessages.length - 1].getLogMessage());
            if (logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
                Assert.assertTrue("Throttle Mediation Success", true);
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

        }


        try {
            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            if (!logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
                log.error("Switch Mediator doesn't work");
                Assert.fail("Switch Mediator doesn't work");
View Full Code Here

Examples of org.wso2.carbon.logging.view.types.axis2.GetLogs

                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
            }
            System.out.println(result);
            GetLogs getLogs = new GetLogs();
            getLogs.setKeyword("mediator");
            GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
            LogMessage[] logMessages = getLogsResponse.get_return();
            if ((logMessages[logMessages.length - 1].getLogMessage().contains("Direction: request, ENRICH_PROP = <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Body><ns:getQuote xmlns:ns=\"http://services.samples\"><ns:request><ns:symbol>IBM</ns:symbol></ns:request></ns:getQuote></soapenv:Body></soapenv:Envelope>")) && (!result.toString().contains("IBM"))) {
                Assert.fail("Enrich mediator doesn't work");
                log.error("Enrich mediator doesn't work");
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.