Forum Discussion

Andrew_P's avatar
Andrew_P
Occasional Contributor
13 years ago

Properties deleting

Hello.
I'm using SoapUI 4.0.1 for Windows and I have an issue.

When I create REST request it doesn't have any properties. Which is correct.

Then I create some properties for this request. And all of my following requests (for example, in GET method) get the same properties. But I expect new requests to be created empty.

I tried to delete properties I don't need, but SoapUI don't delete property itself, it deletes the value of property only. Which is not acceptable for me.

When I try to change property name instead of value, it changes in all requests and all testcases at once. Which is also does not right as I have a lot requests with different properties.

Then I tried to load property list from a file, which does not contain unnecessary properties. Checkboxes "Create Missing properies" and "Delete properties not in file" was checked to "On", but unnecessary properties were not deleted too.

Is this a bug or a feature? How can I have requests to one resource with different properties in one project?

2 Replies

  • I also met this problem.
    I don't know it is feature or bug.
    But I can remove the property by Groovy script as following sample:
    -------------
    def tc = testRunner.testCase.testSuite.project.testSuites["your_TS"].testCases["your_TC"]
    tc.removeProperty("your_property")
    -------------