API Automation using Rest Assured
REST API Test using Rest Assured This test will hit a simple Restful web service. Details of the Restful Web service are mentioned in the below table: Endpoint http://restapi.demoqa.com/utilities/weather/city/<City> HTTP method type : GET Comments : Here <City> means the city for which we are trying to retrieve the weather data. For e.g. if you want to know the weather conditions of Hyderabad, you would simple replace the <City> text with Hyderabad. The Restful resource URL for Hyderabad becomes: http://restapi.demoqa.com/utilities/weather/city/Hyderabad Response { “City”: “Hyderabad”, “Temperature”: “31.49 Degree celsius”, “Humidity”: “62 Percent”, “Weather Description”: “scattered clouds”, “Wind Speed”: “3.6 Km per hour”, “Wind Direction degree”: “270 Degree” } Why not just try to open http://restapi.demoqa.com/utilities/weather/city/Hyderabad ...
Comments
Post a Comment