Forum Discussion

SiKing's avatar
SiKing
Community Expert
12 years ago

item IDs

I did not know whether to post this in feature requests or Bugs. Since the following is currently present in the software, and extremely annoying, I decided to go with a bug.

I use Composite Project for all my projects, mainly so that I can track changes in our source control. On occasion, SoapUI decides to add an "id" attribute to every single item (test step, test case, test suite) in the entire project. I would understand if this were done when the item is first created, but this sometimes happens after the item has been created, has been modified several times, and each modification has been uploaded to source control. Sometimes SoapUI decides to re-id everything in the entire project.
Please make it stop!
  • Hi,

    I'm going to raise this concern to the development team (I'm not sure if this is a bug or not). This ID attribute is something you can see for every item in the SoapUI Pro project file?



    Regards,
    Marcus
    SmartBear Support
  • SiKing's avatar
    SiKing
    Community Expert
    SmartBear Support wrote:
    This ID attribute is something you can see for every item in the SoapUI Pro project file?

    Eventually, yes. And that is the root of the problem! If these IDs are something SoapUI needs, which I assume is the case, then please create it _only_ when I first create the item and do not ever change them.
    Note to your QA: there is a special case, when I copy (by either F9, or drag and drop) an item that already exists!
  • Hi!

    I'm trying to reproduce this, but the IDs are not altered for me.
    Could you give an example of a change that would alter the IDs?

    --
    Regards

    Erik
    SmartBear Sweden
  • SiKing's avatar
    SiKing
    Community Expert
    I have not been able to reproduce this reliably.
    I have like 10 projects, all composite. I am working on different one on different days, and nothing changes sometimes for months. Then one day something happens - and I have not been able to determine this something - and all the IDs change (or are added if missing).
    I'll see if I can establish some pattern to this ...
  • SiKing's avatar
    SiKing
    Community Expert
    OK I got one. Sometime last week dev added a new method to an endpoint. I did the F5 - Update Definition to bring in all new changes. Only today, after working with this project for a week, SoapUI assigned an ID to the new method. If it makes a difference, I close SoapUI at end of each day, so this project must have been closed-opened at least a dozen times.
    I can upload the project to your support if it will help any.
  • IDs should always be constant. Thanks for reporting this, I will file it as a bug.

    Kind regards,
    Manne
    SmartBear Support
  • SiKing's avatar
    SiKing
    Community Expert
    I just did this:

    1. Everything is a composite project. Not sure if this makes a difference, but it makes it easier to track the following.

    2. I have a test step with several assertions, and everything (the step and each individual assertion) now has an ID.

    3. Start SoapUI, open the test step.

    4. Remove one of the assertions (it used to be XPath) and add a new assertion (now Groovy Script).

    5. Name the new one the same as the old one. I do not think this makes a difference?

    6. Save the project, exist SoapUI.

    7. Note that the new assertion does not have an ID. I would expect at this point for it to have one!

    8. Start SoapUI, open the test step and the assertion. Change nothing!

    9. Save the project, exist SoapUI.

    10. Note the assertion now has an ID.
  • Hi again!

    Thanks for the detailed description.
    I'll add it to the registered issue (SOAP-1381) and let you know as soon as we have more information on this.

    --
    Regards

    Erik
    SmartBear Sweden
  • Hi,

    Unfortunately, I cannot provide an ETA, as it is up to the Product's Owner to decide on the release of the fix.
    I'm sorry for the inconvenience.

    Regards,

    Giscard
    SmartBear Support