Forum Discussion

MichaelF's avatar
MichaelF
Occasional Contributor
11 years ago

Definition Update - Question marks

Hi,

 

I'm currently having a problem with the definition update in SoapUI.

I have a testsuite with hundreds of test cases which by definition also include empty values for certain parameter.

 

My problem is, that when I do a definition Update, on test request recreation with recreation of optional parameters thos values get filled up with "?". Is there a way to avoid that behaviour? It would be really annoying, if I would have to rework all test cases.

 

SoapUI Pro Version: 5.1.2

 

best regards,

Michael

3 Replies

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1

    Are you talking about Update Definition( of WSDL) for a service interface?

    Do you update it using right click on the service interface or you do it programatically?

    There are different options available without affecting your test cases while updating definition, see the screen shot; marked the possible optionals which might help you.

    Update Definitions Options

    And also you would be able to have some random sample values instead of '?' by changing the File -> Preferences -> WSDL Settings -> Sample Values (mark checked)

    • MichaelF's avatar
      MichaelF
      Occasional Contributor

      Hi Rao,

       

      thanks for your answer.

      Yes, I'm talking about Update Definition( of WSDL) .

      I update it using right click on the interface.

       

      Unfortunately the options you mentioned do not solve my problem.

      I need to update the test requests because of a new fields.

       

      The option to keep existing values works just fine.

      But I also need the option to recreate optional content, because otherwise I lose values of optional fields.

      With these 2 options the end result is nearly perfect. But there are 2 points Ihave a problem with:

      1. All fields that haven't been filled before, get filled with "?"
      2. All optional arrays that were not created before get created and filled up with one value of "?".

      Is there no way to only recreate existing values?

       

      Here is an example of what I mean:

       

      Before
      "activeUnicodeKeys" empty.

      "terminateCommandKeys" not created.

       

      before.PNG

       

      After

      "activeUnicadeKeys" with "?".

      "terminateCommandKeys" creaed and with a "?".

       

      after.PNG

       

      best regards,

      Michael

      • nmrao's avatar
        nmrao
        Icon for Champion Level 1 rankChampion Level 1
        I believe that * indicates mandatory element, otherwise optional. So, if you dont want optional element, just remove itself in the original request or you will be shown different options while creating a request. And soapui shows ? by default for all the elements, have you seen the note regarding the preferences in previous reply to avoid ? mark with example value?
        And not aware of Array type.