Forum Discussion

morwebshed's avatar
morwebshed
New Contributor
14 years ago

SoapUI MATRIX parameter support

I’m trying to create functional test against my restful service. Some of the rest methods have matrix parameters in between the URL. Below is an example (from an example out of O’Reily book).

Format: http://example.cars.com/{car-type}/{model};color={color}/{year}

E.g. http://example.cars.com/mercedes/e55;color=black/2006

I have defined my parameters according to rest guidelines of SoapUI. For say the above example “car-type”, “model” and “year” is defined as TEMPLATE parameters and “color” is defined as MATRIX parameter. From SoapUI when I try to make this rest call using a rest step it puts the MATRIX parameter at the end of the URL before the query parameters instead of the location defined above. So it looks like below when SoapUI makes the call.

SoapUI: http://example.cars.com/mercedes/e55/2006;color=black

SoapUI documents only talk about putting MATRIX parameters at the end of the URL but before query parameters. I found nothing about using a MATRIX parameter inside the URL like above. I have tried to implement it in the SoapUI by manually creating a rest resource instead of using a WADL and it did not like the URL with the MATRIX parameter inside the URL.

Did anyone ever stumble into this issue before? Please HELP !!

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    You are right, soapUI only supports MATRIX parameters at the end of the URL, which we should probably fix. For now it would probably be easiest for you to remove this parameter and then redefine it as a Template parameter instead and creating the corresponding placeholder in the URL..

    would that work ok?

    regards!

    /Ole
    eviware.com