cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a project doesn't save my changes

Frequent Contributor

Saving a project doesn't save my changes

Hi, Ole:

Here is the issue:

1. clone a test case
2. modify some steps by renaming them
3. SAVE ALL PROJECTS
4. exit soapUI
5. re-open the project xml

Then when I reopened the project, the changes were all gone.  It happened to me a few times.  For some reasons the changes didn't get saved.  I had no other instances of the project xml opened.  Every time when I made a change, I clicked on "save all projects". 

I saw this bug in version 1.7.5 Pro and 1.7.5 snapshot.

Please advise.

Thanks,
Li
14 REPLIES 14
Super Contributor

Re: Saving a project doesn't save my changes

Thanks Li,

I'll try to reproduce.. any errors in the console window?

regards,

/Ole
eviware.com
Super Contributor

Re: Saving a project doesn't save my changes

Hi again,

another thought.. please check the soapUI log window for any warnings that your project did not get saved for some reason.. if you get a warning, try saving the project with the projects "Save" action instead of with SaveAllProjects..

sorry for the inconvenience..

regards,

/Ole
eviware.com
Frequent Contributor

Re: Saving a project doesn't save my changes

Hi:

I did try using the project "Save" action instead of SaveAllProjects.  I found that the issue frequently occurred when I cloned a step and simply renamed it and made modifications.  The change didn't get save - I tested a few times.  So it's reproducible.  Here is the scenario:

1. Clone a step called DataSource_UserId from another testcase and rename it to DataSource_PartnerName
2. make some changes to the properties.
3. right click on the project and click "Save Project"
4. Exit SoapUI
5. Reopen the same project and the changes were not there.

I guess the key is "clone a step from another test case" and then make the changes.

See if you can reproduce the issue.

Thanks,
Li
Super Contributor

Re: Saving a project doesn't save my changes

Hi!

thanks.. still don't get it.. hmm..

- any special type(s) of test-steps this occurs with or all types?
- are you cloning between testcases in the same testsuite or another? (or another project?)

Thanks for your help!

/Ole
eviware.com
Frequent Contributor

Re: Saving a project doesn't save my changes

Hi:

The step was cloned from another test case under the same test suite.  I am attaching my project file for you to see.

In AccountManagementServiceSoap12 TestSuite, test case "TC_REM_UC02_Invalid_EmptyPartnerName" was cloned from test
case "TC_REM_UC02_Invalid_EmptyUserId" within the same test suite. 
I changed the list to ["myTiVo", " "] and changed result.UserId = result.PartnerName and saved project.

Then I exit SoapUI and re-opened it.  All the changes I made were gone.
Super Contributor

Re: Saving a project doesn't save my changes

ok.. thanks.. testing.. exactly what action did you use to clone the testcase.. ? From the testcase right-button menu or drag-and-drop?

regards,

/Ole
eviware.com
Super Contributor

Re: Saving a project doesn't save my changes

Hi again,

sorry, I still cant reproduce this.. if you have the time maybe we could set up a webex meeting where you can show me?

let me know!

regards,

/Ole
eviware.com
Super Contributor

Re: Saving a project doesn't save my changes

Hi Li,

still struggling to reproduce this.. could you please attach your soapui-settings.xml (in the bin folder) and the output of your Help/System-Properties dialog?

Thanks in advance!

regards,

/Ole
eviware.com
Frequent Contributor

Re: Saving a project doesn't save my changes

Hi:

The help system properties dialog is the following:

awt.toolkit=sun.awt.windows.WToolkit

file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\

java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=soapui-pro-SNAPSHOT.jar;..\lib\activation-1.1.jar;..\lib\javamail-1.4.jar;..\lib\wsdl4j-1.6.2.jar;..\lib\junit-3.8.1.jar;..\lib\log4j-1.2.14.jar;..\lib\looks-2.1.2.jar;..\lib\forms-1.0.7.jar;..\lib\commons-logging-1.1.jar;..\lib\not-yet-commons-ssl-0.3.8.jar;..\lib\commons-cli-1.0.jar;..\lib\commons-beanutils-1.7.0.jar;..\lib\commons-httpclient-3.0.1-soapui.jar;..\lib\swingx-SNAPSHOT.jar;..\lib\l2fprod-common-fontchooser-0.2-dev.jar;..\lib\commons-codec-1.3.jar;..\lib\groovy-all-1.0.jar;..\lib\jetty-6.1.5.jar;..\lib\jetty-util-6.1.5.jar;..\lib\servlet-api-2.5-6.1.5.jar;..\lib\idw-1.5.0.jar;..\lib\ant-1.6.1.jar;..\lib\xbean-2.3.0.jar;..\lib\xbean_xpath-2.3.0.jar;..\lib\xmlpublic-2.3.0.jar;..\lib\jsr173_1.0_api-xmlbeans-2.3.0.jar;..\lib\soapui-SNAPSHOT.jar;..\lib\soapui-xmlbeans-SNAPSHOT.jar;..\lib\license4j-1.3.jar;..\lib\ext-xmlbeans-1.0.jar;..\lib\soap-xmlbeans-1.2.jar;..\lib\j2ee-xmlbeans-1.4.jar;..\lib\saxon-8.8.jar;..\lib\saxon-dom-8.8.jar;..\lib\xmlunit-1.1.jar;..\lib\xmlsec-1.2.1.jar;..\lib\xalan-2.6.0.jar;..\lib\wss4j-1.5.0.jar;..\lib\bcprov-jdk15-133.jar
java.class.version=49.0
java.endorsed.dirs=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\endorsed
java.ext.dirs=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\ext
java.home=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre
java.io.tmpdir=C:\DOCUME~1\lzhang\LOCALS~1\Temp\
java.library.path=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Perforce;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Samsung\Samsung PC Studio 3\
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_11-b03
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_11
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_11-b03

line.separator=


os.arch=x86
os.name=Windows XP
os.version=5.1

path.separator=;

sun.arch.data.model=32
sun.boot.class.path=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\rt.jar;C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\i18n.jar;C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\sunrsasign.jar;C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\jsse.jar;C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\jce.jar;C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\lib\charsets.jar;C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\classes
sun.boot.library.path=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\jre\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot Client Compiler
sun.os.patch.level=Service Pack 2

user.country=US
user.dir=C:\Program Files\eviware\soapUI-Pro-SNAPSHOT\bin
user.home=C:\Documents and Settings\lzhang
user.language=en
user.name=lzhang
user.timezone=America/Los_Angeles
user.variant=


Attached is the soapui-settings.xml. 

The clone action is from right click the test step and choose "clone teststep."  Then I rearranged the cloned test step to a proper place by dragging it.

You may also try this scenario (my previous attachment AccountManagementService-soapui-project.xml fits this scenario) :

1. create a project file
2. import one or two existing project files
3 create a test suite with multiple test cases
4. clone a test case and rename it to something else
5. change some properties in the new test case by renaming the test steps, rename some of the variables inside the steps.
6. insert some additional steps such as groovy step, datasource step etc.
7. clone one or two more steps from the old test case to the new test case.
8. save project every time when you make a change
9. exit soapUI and reopen it.

I am not sure if you will be able to reproduce the issue or not since everyone scripts differently or the settings are different.  Late yesterday afternoon, I had a 13-step testcase.  I carefully saved every change by saving the project and at last exit SoapUI, then the changes I made were gone and it only had 7 steps left!  I was quite frustrated.  So for now, before you can pin point the problem, I will open a windows explorer and make sure that every change I make gets time-stamped in explorer (also make sure the file size is changed too).  I also exit soapUI after I make a change (try not to write too many steps and close it at once) just to make sure it saves my change.  I know it's a hassle, but I don't want to lose any more of my changes.

Thanks,
Li
New Here?
Join us and watch the welcome video:
Watch the New Interview
7Mistakes
Join the exciting event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win