Forum Discussion

Awesome's avatar
Awesome
Frequent Contributor
15 years ago

Deleting REST Resource DELETES ALL related REST TestSteps

hi,

this seems like it might be a major bug:

i have a REST service with a resource 'A'.
i created several test cases with REST teststeps which used resource 'A'.
i created a new resource 'B' under the original REST service.
i deleted resource 'A'.

BUG: all REST teststeps (which depended on resource 'A') in all my test cases have been deleted????

my intent was to go through and manually create new REST teststeps pointing to the new resource 'B'. but now that the original REST teststeps are deleted, i have no reference/recollection of how the REST teststeps were used in the testcases or the assertions that they were using...

seems to me like the "orphaned" REST teststeps which used the no longer existing resource 'A', should not have been deleted, but rather marked as 'disabled' indicating that their resource was missing.

thanks!

4 Replies

  • Hello,

    I can definitely see the problem with the current soapUI behavior. Disabling the TestSteps with an alertbox saying something like "This TestStep relies on a deleted REST resource. It cannot be enabled and only exists as a reference-." upon user enabling could be a possible solution. This has been added to our backlog.

    Thanks

    Henrik
    eviware support
  • Awesome's avatar
    Awesome
    Frequent Contributor
    that sounds like a good solution.

    i was able to recreate my rest requests by pulling a previous project file from our svn prior to when i deleted the old resource (thank goodness i check-in my project to version control frequently).

    nonetheless, this bug could prove to be a big pain, since there's no warning that you'd be losing work/teststeps if you delete a resource!

    thanks!
  • Nisha_Shah's avatar
    Nisha_Shah
    Occasional Contributor
    Hi Henrik,

    I note that you've added this to your backlog, but do you know when this is scheduled to be fixed? We ran into this problem too, so we'll be looking forward to this fix too.

    Thanks,
    Nisha
  • Hi all,

    the latest nightly build adds a warning regarding the deletion of related TestSteps - supporting "orphaned" TestSteps as suggested above is not something we have in our immediate plans so you are recommended to reassign affected TestSteps before deleting their Resource/Method

    regards!

    /Ole
    SmartBear Software