Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3641

Can we extract the full URL with query parameters in RestAssured

$
0
0

I'm working on a RestAssured project and for some debugging purposes waant to print the full url to which the request is sent.

In the project that I'm working on we set the ApiHost, BasePath, uri and query parameters separately in test methods, and as of now we concatenate these together and print the full path.

But I want to know if there's a way to print the full path/url (including query parameters) to which the request is sent, without adding the parts as we do.

I have done some research and found 'QueryableRequestSpecification' can be used to extract request details. I have used 'queryable.getURI()' and tried some other available methods. But queryable.getURI() extract the uri without the query params.

Is there any other way ?


Viewing all articles
Browse latest Browse all 3641

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>