mardi 13 février 2018

Rest assured API showing null response, whenever i try to execute API

Below are the code snippet and please give me some help on this

@Test
public void VerifyCountries(){

//========================================================================================================================= // Create a Gson builder object

    Gson gson = new GsonBuilder().create();
    Country[] country;

    String url = com.Tecksystem_demo_Utility.URL.FixUrl+EndPointURL.country.getResourcePath();

      response= Webservices.Get(url);

==================================================================== Webservices method

public static Response Get(String uRI){
    RequestSpecification requestSpecification = RestAssured.given();
    requestSpecification.contentType(ContentType.JSON);
    Response response = requestSpecification.get(uRI);
    return response;
}

Aucun commentaire:

Enregistrer un commentaire