title: REST Assured GET not working after making it generic
body: <p>I am working on the GET request and I am trying to make it generic. I do not understand what is the mistake I have done here. Can any one help me out in tracing this out. The data from excel wil be generic in the GET request. The code can be found below.</p>
  
  <p>Working on: <b>Java, RestAssured, TestNG, Maven</b></p>
  
  <p>This is my <b>Properties</b> file:</p>
  
  <pre><code>RestAssured.baseURI = http://website.com:8080/DBName;
  </code></pre>
  
  <p>This is my <b>Readproperties</b> file:</p>
  
  <pre><code>public class DemoTestcase {
  
  String url;
  
  @BeforeSuite
  public void SetBrowser() {
      System.out.println("Before Suite....");
  }
  
  @BeforeMethod
  public void load_property_file() throws IOException {
      Properties prop = new Properties();
      InputStream input = getClass().getClassLoader()
              .getResourceAsStream("Configuration/config.properties");
      prop.load(input);
      System.out.println();
      url = prop.getProperty("RestAssured.baseURI");
      System.out.println(url);
  }
  </code></pre>
  
  <p>My Code for <b>RestAssured API</b>: Here I am Trying to make it generic by using Data Provider and reading it from excel.</p>
  
  <pre><code>@Test(dataProviderClass = &lt;packageName.className&gt;.class, dataProvider = "urlParameters")
  
  public void tc_008_using_BDD_keywords(final String readExcelData) {
  
      try {
          ValidatableResponse response = given()
                                         .when().get(url + "/{readExcelData}").then()
                  .contentType(ContentType.JSON);
          System.out.println(((ResponseBodyData) response).asString());
      } catch (Exception e) {
          System.out.println("e.printStackTrace()");
      }
  }
  </code></pre>
  
  <p>This is my <b>DataProvider</b>. I have written the logic for reading from the excel file and returning as Object [][] to @Test.</p>
  
  <pre><code>@DataProvider(name = "urlParameters")
  public static Object[][] createUrlParameters() throws IOException, ParseException {
  
      &lt;//Logic for reading Excel sheet containing 3 row and 1 column&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YCARV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YCARV.png" alt="enter image description here"></a></p>