PeterT
17 years agoOccasional Contributor
Get the current endpoint programmatically
Hi there
Does anyone know how to get the current endpoint URL programmatically? I have some scripts in a test case that are grabbing data from a database, if I modify the current endpoint for the requests in that test case obviously I also need to point to a different DB. I can easily point to another DB if I know the current endpoint but am unsure how to grab the endpoint from the code.
Any help would be appreciated.
Cheers
Peter
Does anyone know how to get the current endpoint URL programmatically? I have some scripts in a test case that are grabbing data from a database, if I modify the current endpoint for the requests in that test case obviously I also need to point to a different DB. I can easily point to another DB if I know the current endpoint but am unsure how to grab the endpoint from the code.
Any help would be appreciated.
Cheers
Peter