Forum Discussion

SiKing's avatar
SiKing
Community Hero
13 years ago

DataSource property and REST parameter collide


  1. Create a project such that you have at least one REST call with at least one query parameter.

  2. Create a test that has a DataSource step and a REST step.

  3. In the DataSource create a property that has the same name as the parameter in the REST call.

  4. In the REST call use property expansion to use the DataSource property.

  5. The window with the REST call will crash!

  6. I have not tested this with other DataSources or other call steps.

3 Replies

  • Thanks for reporting this, and for the clear instructions. I'm trying to reproduce this, and it seems like something weird is happening sometimes, but I can't get it to crash.

    I'd like to ask you some questions to aid the investigation.

    1) What version of SoapUI are you running, and on which platform?
    2) What kind of DataSource were you using?
    3) What exactly happens for you when the "crash" occurs? Does SoapUI crash entirely, does the tab crash, does only the form view crash, or something else?

    Thanks a lot for helping out.

    Regards,
    Arian
    SmartBear Sweden
  • SiKing's avatar
    SiKing
    Community Hero
    I got the following via private email. Is it not customary to reply using the same medium as the original request in order to maintain continuity?
    I'm looking at the issue you reported in this forum post:
    viewtopic.php?f=4&t=21112

    However, I'm not able to reproduce the problem – for me this works fine. I'm using a request parameter called "djur" in the REST request, then a property named "djur" in my Data source (which is a simple Grid source), and I fetch the value from the Data source using property expansion - ${DataSource#djur}. I have two rows in the grid and loop through using a DataSource loop test step.

    Could you explain in more detail what you are trying to do?

    Kind regards,
    Manne

    I am having a difficult time reproducing this issue today.

    SmartBear Support wrote:

    1) What version of SoapUI are you running, and on which platform?
    2) What kind of DataSource were you using?
    3) What exactly happens for you when the "crash" occurs? Does SoapUI crash entirely, does the tab crash, does only the form view crash, or something else?

    I am running SoapUI-Pro 4.5.1 on Win7, both 64bit.
    The DataSource is Groovy.
    When the crash occurs, only the REST step window freezes up. Everything else seems to work fine.
  • Hi,

    If you are able to find a pattern what triggers this issue please let us know on this thread.

    regards,
    Shadid
    SmartBear Sweden.