asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
204 stars 84 forks source link

Suite with multiple REST urls #109

Closed TestUserRobot closed 2 years ago

TestUserRobot commented 3 years ago

Have a Test Suites which uses multiple REST API calls( different Urls). Seems like , 2nd Url is not considered even when library is imported internally within Keyword.

Suite: Resource Restap1.resource Resource Restap2.resource TestCase keyword1_restap1 keyword2_restap2

asimell commented 3 years ago

Can you try importing using WITH NAME in your resource files? The library imports might get mixed up if you instantiate them with different values. Using WITH NAME creates separate instances of your library and you can call them with R1.Get /endpoint, R2.Get /other_endpoint, etc.

Atihinen commented 2 years ago

We will close this issue as duplicate for #19 if this feature is needed please add your input to #19