Contributions
Re: adding custom log
still the same. Can't see the tab unless I reload the project. public class projectListener extends ProjectListenerAdapter { Log4JMonitor logMonitor; @Override public void afterLoad(Project project) { SwingUtilities.invokeLater( new Runnable() { public void run() { logMonitor = SoapUI.getLogMonitor(); if ((logMonitor != null) && !logMonitor.hasLogArea("qc.log")) { logMonitor.addLogArea("Agiletestware log", "qc.log", false); } Logger.getLogger("qc.log").info("Done something interesting"); } }); }13 years agoPlace ReadyAPI QuestionsReadyAPI Questions760Views0likes0CommentsRe: adding custom log
get the following error in netbeans cannot find symbol symbol: method runLater(<anonymous java.lang.Runnable>) location: class javax.swing.SwingUtilities My code is Log4JMonitor logMonitor @Override public void afterLoad(Project project) { SwingUtilities.runLater( new Runnable() { public void run() { logMonitor = SoapUI.getLogMonitor(); if ((logMonitor != null) && !logMonitor.hasLogArea("qc.log")) { logMonitor.addLogArea("Agiletestware log", "qc.log", false); } Logger.getLogger( "qc.log" ).info( "Done something interesting" ); } ...13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0Comments- 13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0Comments
Re: adding custom log
Hi /Ole This behavior (some tab not coming up) also happens for the 'script log' tab which is a soapUI internal code. Here is how to reproduce 1. In some workspace open a project 2. close soapUI which keep the project open so that when you restart soapUI, the project is already open 3. start soapUI. You will notice that the 'script log' tab is missing 4. if you reload the project, the script tab will reappar Here is my code import com.eviware.soapui.support.log.Log4JMonitor; import java.util.Properties; import org.apache.log4j.Logger; public class projectListener extends ProjectListenerAdapter { Log4JMonitor logMonitor = SoapUI.getLogMonitor(); @Override public void afterLoad(Project project) { if ((logMonitor != null) && !logMonitor.hasLogArea("qc.log")) { logMonitor.addLogArea("Agiletestware log", "qc.log", false); } }13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0CommentsRe: adding custom log
This also happens in soapUI Pro 4.0.0-SNAPSHOT, copyright (C) 2007-2011 eviware software ab http://www.soapui.org | http://www.eviware.com Build soapui-pro-daily-2011-05-19-[1], Build Date 2011/05/19 02:2913 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0CommentsRe: adding custom log
Hi Dain, need to bring this up again. I think it is a soapUI bug I am using soapUI Pro 3.6.2-SNAPSHOT, copyright (C) 2007-2011 eviware software ab http://www.soapui.org | http://www.eviware.com Build soapui-pro-3.6.2-daily-2011-01-22-[2], Build Date 2011/01/22 02:45 I notice that when I first start soapUI, both 'my custom tab' and the soapUI's 'script log' tab do not appear. However, if I reload the project, both the tabs appear correctly. Looks like a soapUI bug ? Thanks13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0Comments- 14 years agoPlace ReadyAPI QuestionsReadyAPI Questions647Views0likes0Comments
obtaining details for HTTP and JDBC test steps
Hello, I currently obtain details about soap/rest tests like this .... if (st instanceof com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep) { def r = st.testRequest; for( rt in testRunner.results ) { if (rt.testStep.name.equals(st.name)) { endpoint = rt.getEndpoint(); xmlRS = rt.responseContent; ........ How can I obtain the following using groovy 1. 'raw' request for HTTP test step 2. 'xml' output/response for http test step 3. connection string and query for JDBC test step 4. xml response for the jdbc query Thanks in advance14 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes2Commentsobtaining request/response for rest/soap steps via groovy
Hello, I currently print out the request/response after a test case execution for post processing like this for(st in testRunner.testCase.testStepList) { if (st instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep) { log.info("endpoint: " + st.testRequest.getEndpoint()) log.info("soap request: " + st.testRequest.requestContent) log.info("soap resposne: " + st.testRequest.responseContent) String assertMessage = "" for(def i=st.assertionCount-1; i>=0; i--) { def a = st.getAssertionAt(i) assertMessage = assertMessage + a.label + ": " + a.status + "\n" } log.info("assertion: " + assertMessage) } } for my sample wsdl, this prints out Fri Jan 21 06:00:03 PST 2011:INFO:endpoint: https://api.postalmethods.com/PostalWS.asmx Fri Jan 21 06:00:03 PST 2011:INFO:soap request: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:pos="PostalMethods"> <soap:Header/> <soap:Body> <pos:CancelDelivery> <!--Optional:--> <pos:Username>gero et</pos:Username> <!--Optional:--> <pos:Password>sonoras imperio</pos:Password> <pos:ID>1</pos:ID> </pos:CancelDelivery> </soap:Body> </soap:Envelope> Fri Jan 21 06:00:03 PST 2011:INFO:soap resposne: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <CancelDeliveryResponse xmlns="PostalMethods"> <CancelDeliveryResult>-3003</CancelDeliveryResult> </CancelDeliveryResponse> </soap:Body> </soap:Envelope> Fri Jan 21 06:00:03 PST 2011:INFO:assertion: Match content of [CancelDeliveryResult]: FAILED Contains: VALID SOAP Response: VALID Now this works fine if the test case has no data source. However, if there is a datasource loop, then the code above will only print the last thing from the datasource. How can I access the teststep history after execution. I need to print something like this or similar. Fri Jan 21 06:00:03 PST 2011:INFO:[row1]endpoint: https://api.postalmethods.com/PostalWS.asmx Fri Jan 21 06:00:03 PST 2011:INFO:[row1]soap request: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:pos="PostalMethods"> <soap:Header/> <soap:Body> <pos:CancelDelivery> <!--Optional:--> <pos:Username>gero et</pos:Username> <!--Optional:--> <pos:Password>sonoras imperio</pos:Password> <pos:ID>1</pos:ID> </pos:CancelDelivery> </soap:Body> </soap:Envelope> Fri Jan 21 06:00:03 PST 2011:INFO:soap resposne: [row1]<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <CancelDeliveryResponse xmlns="PostalMethods"> <CancelDeliveryResult>-3003</CancelDeliveryResult> </CancelDeliveryResponse> </soap:Body> </soap:Envelope> Fri Jan 21 06:00:03 PST 2011:INFO:[row1]assertion: Match content of [CancelDeliveryResult]: FAILED Contains: VALID SOAP Response: VALID Fri Jan 21 06:00:03 PST 2011:INFO:[row2]endpoint: https://api.postalmethods.com/PostalWS.asmx Fri Jan 21 06:00:03 PST 2011:INFO:[row2]soap request: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:pos="PostalMethods"> <soap:Header/> <soap:Body> <pos:CancelDelivery> <!--Optional:--> <pos:Username>gero et</pos:Username> <!--Optional:--> <pos:Password>sonoras imperio</pos:Password> <pos:ID>1</pos:ID> </pos:CancelDelivery> </soap:Body> </soap:Envelope> Fri Jan 21 06:00:03 PST 2011:INFO:soap resposne: [row2]<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <CancelDeliveryResponse xmlns="PostalMethods"> <CancelDeliveryResult>-3003</CancelDeliveryResult> </CancelDeliveryResponse> </soap:Body> </soap:Envelope> Fri Jan 21 06:00:03 PST 2011:INFO:[row2]assertion: Match content of [CancelDeliveryResult]: FAILED Contains: VALID SOAP Response: VALID .... Thanks14 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes1Commentcustom project actions not showing up in composite project
Hello, I have a custom action which I defined under bin/action/qc-action.xml as <tns:action id="ExportQualityCenter" actionClass="QualityCenter.demo.ExportQualityCenter"/> <tns:actionGroup id="EnabledWsdlProjectActions"> <tns:actionMapping actionId="ExportQualityCenter" position="BEFORE" positionRef="ShowOnlineSoapUIHelp"/> </tns:actionGroup> groovy code for ExportQualityCenter class ExportQualityCenter extends AbstractSoapUIAction { public ExportQualityCenter() { super( "Export to Quality Center", "Export soapUI project to Qualtiy Center TestPlan" ) } ... This works fine for a normal soapUI project and I can see a 'export to Quality Center' option when right-clicking the project name. However, the action does not show up on a composite project. Not sure what is wrong. Thanks Agiletestware14 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1Comment