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);
}
Aggregations