Package tests.hotels

Class SearchHotelsTest

java.lang.Object
tests.BaseTest
tests.hotels.SearchHotelsTest

@Epic("Hotels Search and Booking") @Feature("Hotels Search") @Severity(NORMAL) public class SearchHotelsTest extends BaseTest
Test class for searching hotels by city code using Amadeus API. Demonstrates data-driven testing and custom assertion logging.
  • Constructor Details

    • SearchHotelsTest

      public SearchHotelsTest()
  • Method Details

    • testSearchHotelsByCityCode

      public void testSearchHotelsByCityCode(String cityCode)
      Searches hotels by city code and validates the IATA code in the response. Uses data-driven testing with a city code data provider.
      Parameters:
      cityCode - the IATA city code to search hotels for
    • getCityCodes

      @DataProvider(name="CityCodes") public Object[] getCityCodes()
      Provides a list of city codes for data-driven hotel search tests.
      Returns:
      array of IATA city codes