How to enable custom log for SOAP UI for each run
Hi , I enabled Http Logging by adding the following to soapui-log4j.xml : <appender name="FILE-HTTP" class="org.apache.log4j.RollingFileAppender"> <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/> <param name="File" value="${user.home}/.readyapi/logs/ready-http.log"/> <param name="Threshold" value="DEBUG"/> <param name="Append" value="true"/> <param name="MaxFileSize" value="5000KB"/> <param name="MaxBackupIndex" value="50"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c{1}] %m%n"/> </layout> </appender> <logger name="org.apache.http.wire"> <level value="DEBUG"/> <appender-ref ref="FILE-HTTP"/> </logger> This works when I run the test and logs all http information to the log at the location. Issue : 1) This custom log now disables the http log in the SOAP UI Console 2) The log does not get created at the SOAP UI project folder , only at the given path. What is the config change required to get the custom log at the project root level when run from the test runner?2.7KViews1like0CommentsHow to Access Htttp Log from SOAP UI using the soap ui API
Hi, I am using the following code for capturing the http log from SOAP UI : def logArea = com.eviware.soapui.SoapUI.logMonitor def logPanel logPanel = logArea.getLogArea("http log") which works fine when run from SOAP UI itself. How can we access the http log when running the groovy script when SOAP ui interface is not open. For ex: I am running this fromANT. Is there any way I can use the SAOP UI API to capture this http log ? Basically I want to capture request/responses between redirects. Any help appreciated.Thanks1.5KViews0likes2CommentsSoapUI Java API sending simple Http POST
Hi, I'm using Soap UI java API for some basic functionality, such as sending soap requests and running a wsdl mock service. Now however I want to simply create a default project; a test suite; a test case and a http request test step. But I can't find out how to go about this using the Java API. Since I have no wsdl I only want to maka a simple HTTP POST call. Setting this up in SoapUI gui, no problems but I don't get which java methods to use when doing this programmatically. Can anyone give me a pointer, or two? Thanks in advance! // Nisse BakkerudSolved4.5KViews0likes3Comments