Contributions
Re: SoapUI Upgrade Issue (from 2.0.2 Pro to 3.01 Pro)
Hi Thanks for the update for the 'X' test case problem. I am attaching the files related to the other issue - the one where the test case stalls on the command line runner (testrunner). The file named 'stalls-....' shows the hang symptom. The file named 'works-...' executes to the end. The only difference between the two is that 'stalls-....' has maxResults = 100, whereas the other has maxResults = 0. Btw, I removed all of the actual test steps to reduce the size of the files being uploaded .. so this example pretty much only has a couple of properties steps. Thanks Mahesh15 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes0CommentsRe: SoapUI Upgrade Issue (from 2.0.2 Pro to 3.01 Pro)
Hi Ole, that was a quick response The projects I have are pretty big. I will break it up and send you a smaller sample project later in the day. Regarding the TestCase 'X' - I see the following stacktrace in the console when trying to close TestCase window with X. This is on Windows XP Pro. Using tabbed mode. 08:47:04,046 DEBUG [AbstractDefinitionContext] Loaded Definition: ok Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.panels.testcase.ProWsdlTestCaseDesktopPa nel.onClose(SourceFile:214) at com.eviware.soapui.ui.TabbedSoapUIDesktop.a(SourceFile:169) at com.eviware.soapui.ui.TabbedSoapUIDesktop.a(SourceFile:51) at com.eviware.soapui.ui.TabbedSoapUIDesktop$InternalDockingWindowListen er.windowClosing(SourceFile:311) at net.infonode.docking.DockingWindow.fireWindowClosing(Unknown Source) at net.infonode.docking.DockingWindow.fireWindowClosing(Unknown Source) at net.infonode.docking.DockingWindow.fireWindowClosing(Unknown Source) at net.infonode.docking.DockingWindow.closeWithAbort(Unknown Source) at net.infonode.docking.action.CloseWithAbortWindowAction.perform(Unknow n Source) at net.infonode.docking.action.DockingWindowAction$1.perform(Unknown Sou rce) at net.infonode.gui.action.SimpleAction$1.actionPerformed(Unknown Source ) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Btw - I changed the Global Preference for the Desktop type from Tabbed to Default, and tried to 'X' out of the test case. Still get an exception, but the stacktrace looks a little different. 08:51:17,671 DEBUG [AbstractDefinitionContext] Loaded Definition: ok Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.panels.testcase.ProWsdlTestCaseDesktopPa nel.onClose(SourceFile:214) at com.eviware.soapui.ui.desktop.standalone.StandaloneDesktop$InternalDe sktopFrameListener.internalFrameClosing(StandaloneDesktop.java:265) at javax.swing.JInternalFrame.fireInternalFrameEvent(Unknown Source) at javax.swing.JInternalFrame.doDefaultCloseAction(Unknown Source) at javax.swing.plaf.basic.BasicInternalFrameTitlePane$CloseAction.action Performed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) - Mahesh15 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes0CommentsSoapUI Upgrade Issue (from 2.0.2 Pro to 3.01 Pro)
Last week I upgraded my SoapUI install from 2.0.2 Pro to 3.0.1 Pro. For the most part, it was as simple as importing the projects and running them in. The problem started when I tried to run them from the command line (I have a whole suite of tests that run under Hudson that use the SoapUI testrunner). It would launch the test case, but "hang" at the very first test step. On the other hand, if I created a brand new project in 3.0.1 and cloned the test steps from the 2.0.2 project, it would work fine. Finally, I figured out that it was happening due to the test case options. I had to open the test case options, and then save it with the defaults to get it to run from the command line without the "hang". Also, I noticed that if I change the maxResults to keep to a value like 100, it seems to hang again - I am able to change other test case options, but just the maxResults appears to be problematic. All this is only when running from the command line. The UI works fine. Another minor irritant with 3.0.1 - on the UI, I am just not able to close the Test Case window by 'x'-ing the Test case window. All other windows close (Test Suite / Test steps / etc), its just the Test Case window. - Mahesh15 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes6CommentsRequest for File / Directory Data sources & Data Sink
Hi Can you make the File / Directory data sources and the Data Sink configurable? I would like to set them based on property file settings. Currently (I am using Pro 2.0.2) I have to browse to a location, and select a file / directory, and I have to change it whenever I deploy the soapui project to my continuous integration server. Having these settings configurable will be very helpful. thanks Mahesh16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentJUnit Report suggestion
Hi I had posted on the forum (see thread http://www.eviware.com/component/option ... opic,901.0) about problems I had with the JUnit reporting with data driven functional tests. I wonder if you might consider some of these features in a future release ... - Enable individual test steps to be reported on the JUnit report - Let the user choose which test steps they want to see on the report. - Let the user choose whether to show the request / response in the failed JUnits. If the request / responses are too large, they sometimes end up making the JUnit output unreadable. - Force the user to provide a meaningful English description of each assertion. If the test step fails due to assertion failures, log the English description in the Junit report. - Let the user choose any property values (global test suite / test case / test step properties) they want to see on the report. All such properties can then be added to the "SYSOUT" section of the JUnit report. I didn't do the "let the user choose" parts, but I ended up creating a custom listener so I could get a more useful JUnit output for my QA Team / Business users. Unfortunately, my custom listener is not at all generic , but I thought these reporting features probably will be helpful to other users as well. Thanks Mahesh16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentRe: JUnit Reporting of individual runs in a data driven test
Hi Ole I worked around this reporting problem by setting up a custom listener (cloned from JUnitReportCollector), and it solves my problem. In my custom JUnitReportCollector, I am adding to the reports map in the afterStep method, and I do this only for the 'Request' test step(s). In the afterRun method, I save the report files (Junit report xmls). Since my SoapUI is running under Hudson, I let Hudson consolidate and do the JUnit reporting & trending. One other advantage of the custom report is that now I have the ability to print out more information in the 'Sysout' section of the JUnit report (e.g., properties). Regarding properties, is there an API to retrieve all properties used in the test case / test steps ... I would like to write a generic 'print properties' so that my custom reporting is not tied to this particular test case alone. I did run into another problem. I am now seeing some out of memory errors. My request / response XMLs are fairly large. I find that these OOM problem starts happening only when the number of failures increases. I have bumped up the Heap to 1024M, but that just delays the OOM error. I saw your blog on the Max Results option in the Test CAse options. Is that option available in 2.0.2? Is there any other way in 2.0.2 to release all test results for prior iterations of the data source loop? Thanks Mahesh1KViews0likes0CommentsRe: JUnit Reporting of individual runs in a data driven test
Hi Ole, I am using the Soap UI Pro 2.0.2 I do see the aggregated report of all the failures in the JUnit result. As you pointed out, it is hard to read if there are many failures. For better readability (especially for the business analysts who need to investigate the failures), I have now started dumping some of the key data elements from the request as well as the actual vs expected values from each assertion for the failed iterations into a spreadsheet. If there's a way to report individual failure details of each failed iteration of the loop inside the test case, that would be perfect. It would also provide for better test reporting, I think ... instead of reporting that 1 Test Case was executed and whether it was successful or not, it would provide visibility to each iteration of the test case, and also provide better metrics like the number of failures, time for each iteration, etc. Thanks Mahesh1KViews0likes0CommentsJUnit Reporting of individual runs in a data driven test
I have a Data Driven Test case, where I loop through all input XML files residing in a directory (created by another application). These XMLs are fed into the web service request I am testing. When I run the JUnit report, I find that the reporting is done at the test case level. So, I don't get to see the success or failure on the individual 'web service requests'. In this scenario, for a data driven test, how can I get the JUnit reporting on each individual execution of the same test case. Thanks Mahesh3.1KViews0likes5Comments