ContributionsMost RecentMost LikesSolutionsRe: I get "Failed to save project(file name):java.io.IOException: No such file or directory" Here's an interesting screen shot (attached). When I went to run SoapUI 5.5.0 a few weeks later, it wasn't coming up. Then I noticed dual entries in Windows 10. I uninstalled one of them and things are working fine. Again, this happened when I installed SoapUI Open Source 5.5.0 using a non-Admin user account on Windows 10. It did not prompt me for my admin password, which most programs do. The Burp - Last Test Step Runs Twice when running at the Test Case Level (SOAP) I'm might be doing something wrong, but when I run my Test Cases (it's data-driven), after the last step (Step [ReadData] ran with status [OK], it runs the last Test Step again. When I run just the Groovy code portion, it's reading the correct # of times (see attachment). Here I've added a couple of log info stmts to show this. I don't have any Setup or Teardown scripts - just the Groovy code and the Request/Response. And yes, the spreadsheet has 6 rows of data and all the input values are different. I have a variable in the SOAP Request and use Assertions - but I just disabled the assertions and it still "burped." Here is my Groovy code: import jxl.* import jxl.write.* import com.eviware.soapui.support.XmlHolder def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) Workbook workbook = Workbook.getWorkbook(new File("c:\\SoapUIData\\Fahrenheit-Temps.xls")) //The writeable sheet will erase any data, so we can't use the data sheet and update it with the results WritableWorkbook copy = Workbook.createWorkbook(new File("c:\\SoapUIData\\Fahrenheit-Chart.xls"), workbook); WritableSheet sheet1 = copy.createSheet("Fahrenheit to Celsius", 0) Sheet sheet = workbook.getSheet(0) def rowCount = sheet.getRows() for (r=1; r<rowCount; r++){ //r=1 skip header row log.info "Line 13" //Write columns headings Label H1 = new Label(0, 0, "Fahrenheit Value Submitted"); //1st column heading sheet1.addCell(H1); Label H2 = new Label(1, 0, "Expected Result"); //1st column heading sheet1.addCell(H2); Label H3 = new Label(2, 0, "Actual Result"); //1st column heading sheet1.addCell(H3); //Read a Fahrentheit temp valCellContents=sheet.getCell(0,r) cellContents=valCellContents.getContents() FAHRENHEIT = cellContents.toString() testRunner.testCase.setPropertyValue("Fahrenheit",FAHRENHEIT) Label fh = new Label(0, r, FAHRENHEIT); //1st column sheet1.addCell(fh); // Below I'm going to use the properties to perform assertions valCellContents=sheet.getCell(1,r) cellContents=valCellContents.getContents() EXPECTEDRESULT = cellContents.toString() testRunner.testCase.setPropertyValue("EXPECTEDRESULT",EXPECTEDRESULT) Label expectedResult = new Label(1, r, EXPECTEDRESULT); sheet1.addCell(expectedResult); testRunner.runTestStepByName("FahrenheitToCelsius-Request") //Get Celsius temp fromCelsiusValue Response def res = context.expand('${FahrenheitToCelsius-Request#response}') def response = new XmlHolder(res) def CelsiusValue = response.getNodeValue('//m:FahrenheitToCelsiusResult') //Write the actual result in 3rd column Label label = new Label(2, r, CelsiusValue); //3rd column sheet1.addCell(label); } //Gets next row log.info "Line 51" copy.write(); copy.close(); workbook.close() Here is the Soap Request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://webservices.daehosting.com/temperature"> <soapenv:Header/> <soapenv:Body> <tem:FahrenheitToCelsius> <tem:nFahrenheit>${#TestCase#Fahrenheit}</tem:nFahrenheit> </tem:FahrenheitToCelsius> </soapenv:Body> </soapenv:Envelope> Thanks in advance. Re: Suddenly soapUI get hangged and my project gets currupted What was going on when it hung? Were you running Groovy script? I've noticed that if I run test cases and leave the Request/Response window open, it usually hangs. I then have to kill SoapUI thru Task Manager and restart it. I've lost any changes, so I've learned to Save All before running and hopefully I remember to close the Request/Response window. This occurs on Open Source versions 4.5.0 and 5.5.0. My script is for data driven testing and it loops, but it will hang either immediately or after 1 loop. You can see a video of this, which just happened to me earlier this week, on YouTube http://youtu.be/zxlp_vViOHw?hd=1 Re: I get "Failed to save project(file name):java.io.IOException: No such file or directory" I just got this error today after upgrading to SoapUI Open Source 5.5.0 in a strange scenario. I'm using Windows 10 and login with a non-admin user account. I upgraded from 5.4.0 to 5.5.0 and expected to be prompted with a login to the Admin user account - but that never happened. SoapUI 5.5.0 ran, I imported a project and ran into the "can't save project" issue. I killed SoapUI thru Task Manager, logged into my Admin account, saw that it didn't appear in the list of Programs and installed it. This time, no problem saving the project. Re: How to i clear the property values of a TestCase or TestSuite using groovy script? Copied it into the Test Case TearDown Script section and it works great. Thanks! How to Learn Proper SoapUI Coding I'm using 5.4.0 Open Source and I think one of the problems learning SoapUI is it is too flexible. There are many ways to do the same thing. So I'm wondering if there are any books, tutorials, videos out there that might say things like "Use the Setup Script for this and the teardown script for that, when to use properties vs variables (they seem the same to me). I'd also like to learn how multiple assertions work - I've heard that if one fails, it skips the other assertions. I've read and watched a ton of 'tutorials' but none of them cover what I'm looking for. How would the creators of SoapUI write their code. It looks like they are trying to enforce things like encapsulation with their scoped variable and code separation with the setup and teardown script sections. Thanks in advance. Modularizing your tests On this page https://www.soapui.org/docs/functional-testing/modularizing-your-tests.html, it shows a "Run test case options" screen. I cannot figure out how to navigate to this screen and I've run hundreds of test cases in 5.4.0. My test cases have a Groovy test step and a SOAP Request/Response. Is this an old version of SoapUI? Has it been replaced by Test Runner? I don't see the same options like "create isolated copy for each run (thread safe)" and Return Properties. Thanks in advance.