Contributions
Projects not being loaded correctly
Hi I have SoapUI Pro installed, and recently I had my laptop changed since the old one had hardware issues. So what I did was, I saved all my projects and scripts in a USB Drive and then I got my new laptop. I re-installed soapUI pro and then copied all the saved projects to the new hard drive. When I try to load those projects in SoapUi Pro or save a project... this is what I see in the logs. (D drive being the USB and C being my drive on the laptop) 12:32:24,237 INFO [WsdlProject] Loaded project from [file:/C:/Users/ab24146/Documents/Regression-soapui-project.xml] 12:32:24,734 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Users\ab24146\Documents\SoapUI-Pro-5.1.1\bin\scripts] 12:32:28,154 ERROR [WorkspaceImpl] Failed to save workspace: D:\Backup\SoapUI\Regression-soapui-project\default-soapui-workspace.xml (The system cannot find the path specified) java.io.FileNotFoundException: D:\Backup\SoapUI\Regression-soapui-project\default-soapui-workspace.xml (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at org.apache.xmlbeans.impl.store.Cursor._save(Cursor.java:566) at org.apache.xmlbeans.impl.store.Cursor.save(Cursor.java:2526) at org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:206) at com.eviware.soapui.impl.WorkspaceImpl.saveWorkspaceConfig(WorkspaceImpl.java:277) at com.eviware.soapui.impl.WorkspaceImpl.save(WorkspaceImpl.java:263) at com.eviware.soapui.impl.WorkspaceImpl.save(WorkspaceImpl.java:231) at com.eviware.soapui.impl.WorkspaceImpl.afterProjectImport(WorkspaceImpl.java:426) at com.eviware.soapui.impl.WorkspaceImpl.importProject(WorkspaceImpl.java:343) at com.eviware.soapui.impl.actions.ProImportWsdlProjectAction.perform(SourceFile:43) at com.eviware.soapui.impl.actions.ProImportWsdlProjectAction.perform(SourceFile:15) at com.eviware.soapui.SoapUI$ImportWsdlProjectActionDelegate.actionPerformed(SoapUI.java:1394) 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 Source) 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.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(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) But whenever I insert that USB in and then load or save any projects. I don't see any issues in the logs. Can somebody please help me with this issue. Thanks!Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes2CommentsRe: Displaying last 3 digits of a order number
I'm using the below script.. def s = context.expand( '${CreateOrderNumber#result}' ) log.info s.substring(3, s.size()); I'm getting the below error java.lang.StringIndexOutOfBoundsException: String index out of range: -3 error at line: 21.5KViews0likes1CommentDisplaying last 3 digits of a order number
Hi, I'm trying to test a test case where I have to pass the last three digits of an order number that I have created from another groovy script. Below is my original script that creates the order number int a = 9 nr = "N" for(i = 0; i < 7; i++) { random = new Random() randomInteger= random.nextInt(a) nr = nr + randomInteger } //return nr testRunner.testCase.setPropertyValue("OrderNumber",nr) It creates an order Number for example N0382254. Now in another script I want get the last three digits of that order number and save it into a property. How can I call the original script and then get the last 3 digits? Any help will be highly appreciated. Thanks!Solved1.5KViews0likes3CommentsRe: Increasing memory doesn't seem to increase it
SmartBear_SuppoI came across to the similar issue. I also have a Win 7 64-bit 8GB computer. What size should I put in for -XX:MaxPermSize. Should it be half of my total memory which will be -XX:MaxPermSize4094m?? Please help?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes0CommentsBest value for -XX:MaxPerSize for a 8GB Ram Laptop
Hi, I have several test suites inSoapUI Pro that includes groovy scripts, selenium webdriver stuff, loopsource etc. I started seeing the below error ERROR [errorlog] java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space I have Windows 7 laptop with 8 GB of Ram. Currently I have the below setting in SoapUI.bat file set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx4096m -XX:MaxPermSize=128m -Dsoapui.properties=soapui.properties So I have two questions: 1- Should I make the -XX:MaxPermSize to 4096m as well considering I have 8 GB of Ram..?? 2- Also insoapUI-Pro-5.2.0.vmoptions fie, I have -Xms1000m. Do I need to change that and match it with what I have in my soapUI.bat file which is -Xms4096m??7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes1CommentHow to use DataSource and DataSource Loop in multiple test cases
I'm testing in SoapUI Pro and want to use DataSource and DataSource Loop in my test steps. Below are my tests 1- Create a New Order/Account 2- Give Customer a Discount 3- Refund The Customer 4- Disconnect the Account Now, what I would like to do is create a datasource and datasource loop that when I run test 1 to 4, I should use one set of data, and then after customer gets disconnected, my test should go back to 1 and use different sets of data defined in my datasource. I would like to repeat that about 4 -5 times. Is that possible? If yes, how can I do that. Do I need to converge all my test cases together in one single test case and then use datasource and datasource loop??7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentSaving a element from JDBC response as a property
Hi . In one of my tests in SoapUI, I have to run a JDBC query and then select an element from the response and save it as a property. All through groovy. I'm doing the following. 1- Response from JDBC query: <RESULTS> <RESULTSET fetchsize="10"> <ROW rownumber="1"> <PAYMENT_AMT>164.98</PAYMENT_AMT> <PAYMENT_ID>445958</PAYMENT_ID> </ROW> </RESULTSET> </RESULTS> 2- Therefore, I want to fetch that PAYMENT_ID and save it as a property through groovy. Below is the script that I'm using: assert context.response, 'Response is empty or null' def paymentId = new XmlSlurper().parseText(context.response).'**'.find{it.name() == 'PAYMENT_ID'}.text() context.testCase.testSuite.setPropertyValue("TEST1_PAYMENT_ID", paymentId) But after using the above script i'm seeing the following error message: Response is empty or null. Expression: context.response Can please somebody check and see why i'm receiving this error. Solved3.3KViews0likes3Comments