morwebshed
15 years agoNew Contributor
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 !!
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 !!