Forum Discussion

sunokb4u's avatar
16 years ago

How to Set Endpoint URL globally in for REST Services

In Preferences-Global Properties we have declare the endpoint URL as below:

Endpoint=http://

In Testcase Groovy Script Editor,

def endpoint =context.expand('${#Global#Endpoint}');
testRunner.testCase.getTestStepByName("Request Name").getHttpRequest().setEndpoint("${endpoint}")

When we run the above script it is setting the endpoint URL in the Testcase Request Endpoint field, but when we run the testcase, base URL which is the endpint is not getting invoked

Our Response is here

 
      <meta content="HTML Tidy for Java (vers. 27 Sep 2004), see <!-- w --><a class=" postlink="" />www.w3.org" name="generator"/>
      403 Forbidden
 
 
     

Forbidden


     

You don't have permission to access /tv/lineups on this server.


 



Kindly help me in providing the solution or let me know if i could have missed anyother steps.