You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've written a few wrapper methods to use multiple RequestSpecifications in a single API call using static imports in below manner, and I'm facing "Connection refused" issue in case of "Non-working code" below:
Isolation: Using log().all(), I found that the baseUri is getting set incorrectly. I had set it to "someBaseUri", while the baseUri actually set is http://localhost:8080/.
Additional reason why fixing this issue is important:
I think very few people depend on RequestSpecification for setting baseURIs and that's why this issue is not prioritized. But if more people use this, they can add several optimizations in their frameworks. Like in my test framework, I can potentially run tests for different end points in parallel.
I've written a few wrapper methods to use multiple
RequestSpecification
s in a single API call using static imports in below manner, and I'm facing "Connection refused" issue in case of "Non-working code" below:Working code:
Non-working code (Possibly a bug):
Here are the wrapper method definitions:
Full error log trace at http://textuploader.com/d0992.
Isolation: Using
log().all()
, I found that thebaseUri
is getting set incorrectly. I had set it to"someBaseUri"
, while thebaseUri
actually set ishttp://localhost:8080/
.The text was updated successfully, but these errors were encountered: