Forum Discussion

JSillanpaa's avatar
14 years ago

How to get part of rest request from datasource

Hi,

I'm working on a REST service where the url of a resource is following:

http://server/application/services/inte ... ibute2=bar
http://server/application/services/inte ... ibute2=foo
http://server/application/services/inte ... bute2=blah

I trying to create a PUT method the updates attributes 1 and 2 of the given <myresource[X]>.

If I create REST resource pointing to http://server/application/services/inte ... ure-level1 and then add put method below it, I'm not able to construct the url as stated above.

Furthermore, I would like to be able to user Excel table from where I would like to pick myresource, attribute1, attribute2 values during iterative test steps.

Is this possible? I could not find any examples how to do it.

Cheers,
Jyri

1 Reply

  • Hi Jyri

    You should be able to construct the URL as you need by adding the corresponding QUERY parameters to the PUT Method definition or in the containing Resource window (not in the request window).

    Regarding the usage of Excel - this is what we call Data-Driven testing - there is a video tutorial on the website at http://soapui.org/Data-Driven-Testing/f ... tests.html - although not exactly like you need it, it should give you an idea on how to achieve this..

    Hope this helps!

    /Ole
    SmartBear Software