Forum Discussion

DLuning's avatar
DLuning
New Contributor
12 years ago

Remove all runtime info from the project xml file.

When running a soapUI project the project file gets updated with
IDs
Timestamps
Generated data etc.

When adding new tests to an existing project you normally have to run the full suite before you can say you are done and can commit it to source control.
It should be possible to somehow get a clean project file that can be committed, so that we can diff versions and avoid false conflicts.

For this to work in SoapUI we probably need some way of marking if Project/Test Suite/Test Case properties and Properties TestStep properties should be persisted on save or not.

1 Reply

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    Understand exactly what you are pointing that if there are some default values set for the properties at variouls levels (project, testsuite, test cases), they are getting changed at the end. When the project is about to commit, there are lot of diffs which are not actually unwanted.

    There can be ways todo what you are looking for:
    1. have a tear down to set the properties to have default values.
    2. One way to do is have a property files with default values for custom properties used in project, load them at end. But, this would be very easy if all the properties at one level and may be tedious if properties present at multiple levels (first option be little simple in this case).