Search in sources :

Example 1 with ResultLogger

use of com.epam.reportportal.soapui.results.ResultLogger in project agent-java-soapui by reportportal.

the class RpServiceBuilder method build.

public static SoapUIService build(TestPropertyHolder contextProperties) {
    Properties properties = convertProperties(contextProperties);
    PropertiesLoader propertiesLoader = PropertiesLoader.load();
    propertiesLoader.overrideWith(properties);
    propertiesLoader.validate();
    List<ResultLogger<?>> resultLoggers = Arrays.asList(new HttpMessageExchangeLogger(), new GroovyScriptLogger());
    String listenerType = properties.getProperty(REPORTER_TYPE_PROPERTY);
    REPORTER_DISABLE = false;
    if (properties.getProperty(REPORTER_DISABLE_PROPERTY) != null) {
        REPORTER_DISABLE = Boolean.valueOf(properties.getProperty(REPORTER_DISABLE_PROPERTY).toLowerCase());
    }
    return ListenerType.fromString(listenerType).newOne(new ListenerParameters(propertiesLoader), resultLoggers);
}
Also used : GroovyScriptLogger(com.epam.reportportal.soapui.results.GroovyScriptLogger) HttpMessageExchangeLogger(com.epam.reportportal.soapui.results.HttpMessageExchangeLogger) ResultLogger(com.epam.reportportal.soapui.results.ResultLogger) Properties(java.util.Properties) ListenerParameters(com.epam.reportportal.listeners.ListenerParameters) PropertiesLoader(com.epam.reportportal.utils.properties.PropertiesLoader)

Aggregations

ListenerParameters (com.epam.reportportal.listeners.ListenerParameters)1 GroovyScriptLogger (com.epam.reportportal.soapui.results.GroovyScriptLogger)1 HttpMessageExchangeLogger (com.epam.reportportal.soapui.results.HttpMessageExchangeLogger)1 ResultLogger (com.epam.reportportal.soapui.results.ResultLogger)1 PropertiesLoader (com.epam.reportportal.utils.properties.PropertiesLoader)1 Properties (java.util.Properties)1